ansible-vault-pass-client: init at unstable-2022-04-21
This commit is contained in:
parent
482ed31625
commit
83e12b2eb4
2 changed files with 41 additions and 0 deletions
|
@ -4,6 +4,7 @@ let unstable = import <unstable> { inherit (pkgs) config; overlays = [ ]; }; in
|
|||
with import ../packages/override-utils.nix { inherit pkgs unstable; };
|
||||
|
||||
unstableUntil {
|
||||
ansible-vault-pass-client = any;
|
||||
apex = any;
|
||||
cavif = any;
|
||||
decompiler-mc = any;
|
||||
|
|
40
packages/ansible-vault-pass-client.nix
Normal file
40
packages/ansible-vault-pass-client.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ fetchFromGitHub
|
||||
, lib
|
||||
, stdenv
|
||||
, unstableGitUpdater
|
||||
|
||||
# Dependencies
|
||||
, gopass
|
||||
, python3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "ansible-vault-pass-client";
|
||||
version = "unstable-2022-04-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "me-vlad";
|
||||
repo = "ansible-vault-pass-client";
|
||||
rev = "14158aa7803ac93801979baf4c6cafd072610e14";
|
||||
hash = "sha256-wD7vGXydfiuCAPihAu67sgk1LJzhs/5Jz36h1I7RiAY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ansible-vault-pass-client \
|
||||
--replace "'pass'" "'${gopass}/bin/gopass'"
|
||||
'';
|
||||
|
||||
buildInputs = [ python3 ];
|
||||
|
||||
installPhase = ''
|
||||
install -D -t $out/bin/ ansible-vault-pass-client
|
||||
'';
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = {
|
||||
description = "A script to integrate Ansible Vault and pass or gopass";
|
||||
homepage = "https://github.com/me-vlad/ansible-vault-pass-client";
|
||||
license = lib.licenses.mit;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue