diff options
author | Dmitry Bogatov <git#v1@kaction.cc> | 2022-05-13 23:35:22 -0400 |
---|---|---|
committer | Yt <raphael@megzari.com> | 2022-05-29 00:19:34 -0400 |
commit | 64da60d311b10c2106dd2e1d05b58e20c6a9a8b3 (patch) | |
tree | be4ef48ebeed0d87eb939fe0232bc7f1d9fff7c4 /pkgs/tools/security/passage | |
parent | cf2457648325b44a8b18b62396c5855c50fe7f1a (diff) |
passage: init at unstable-2022-05-01
Diffstat (limited to 'pkgs/tools/security/passage')
-rw-r--r-- | pkgs/tools/security/passage/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/security/passage/default.nix b/pkgs/tools/security/passage/default.nix new file mode 100644 index 0000000000000..033b5e2028d1c --- /dev/null +++ b/pkgs/tools/security/passage/default.nix @@ -0,0 +1,44 @@ +{ lib, stdenv, fetchFromGitHub, makeBinaryWrapper, bash, age, git ? null +, xclip ? null }: + +stdenv.mkDerivation { + pname = "passage"; + version = "unstable-2022-05-01"; + + src = fetchFromGitHub { + owner = "FiloSottile"; + repo = "passage"; + rev = "1262d308f09db9b243513a428ab4b8fb1c30d31d"; + sha256 = "1val8wl9kzlxj4i1rrh2iiyf97w9akffvr0idvbkdb09hfzz4lz8"; + }; + + nativeBuildInputs = [ makeBinaryWrapper ]; + + extraPath = lib.makeBinPath [ age git xclip ]; + + # Using $0 is bad, it causes --help to mention ".passage-wrapped". + postInstall = '' + substituteInPlace $out/bin/passage --replace 'PROGRAM="''${0##*/}"' 'PROGRAM=passage' + wrapProgram $out/bin/passage --prefix PATH : $extraPath --argv0 $pname + ''; + + installFlags = [ "PREFIX=$(out)" "WITH_ALLCOMP=yes" ]; + + meta = with lib; { + description = "Stores, retrieves, generates, and synchronizes passwords securely"; + homepage = "https://github.com/FiloSottile/passage"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ kaction ]; + platforms = platforms.unix; + + longDescription = '' + passage is a fork of password-store (https://www.passwordstore.org) that uses + age (https://age-encryption.org) as a backend instead of GnuPG. + + It keeps passwords inside age(1) encrypted files inside a simple + directory tree and provides a series of commands for manipulating the + password store, allowing the user to add, remove, edit and synchronize + passwords. + ''; + }; +} |