diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-26 20:54:58 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-02-26 20:54:58 +0100 |
commit | 9dbeca2240591bf690b5bce6b8fb57a2521b6c80 (patch) | |
tree | a049cbac14d5cb314bd07ab720d39c0eaec5617d /pkgs | |
parent | 6cc50b29763a6afdbd4e375256a08be1d40765be (diff) | |
download | nixlib-9dbeca2240591bf690b5bce6b8fb57a2521b6c80.tar nixlib-9dbeca2240591bf690b5bce6b8fb57a2521b6c80.tar.gz nixlib-9dbeca2240591bf690b5bce6b8fb57a2521b6c80.tar.bz2 nixlib-9dbeca2240591bf690b5bce6b8fb57a2521b6c80.tar.lz nixlib-9dbeca2240591bf690b5bce6b8fb57a2521b6c80.tar.xz nixlib-9dbeca2240591bf690b5bce6b8fb57a2521b6c80.tar.zst nixlib-9dbeca2240591bf690b5bce6b8fb57a2521b6c80.zip |
pass: refactor, fix completions install
cc #23223
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/security/pass/default.nix | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/pkgs/tools/security/pass/default.nix b/pkgs/tools/security/pass/default.nix index 58a7cc30059a..62f1a3a05dd0 100644 --- a/pkgs/tools/security/pass/default.nix +++ b/pkgs/tools/security/pass/default.nix @@ -23,31 +23,9 @@ stdenv.mkDerivation rec { patches = stdenv.lib.optional stdenv.isDarwin ./no-darwin-getopt.patch; - buildInputs = [ makeWrapper ]; + nativeBuildInputs = [ makeWrapper ]; - meta = with stdenv.lib; { - description = "Stores, retrieves, generates, and synchronizes passwords securely"; - homepage = http://www.passwordstore.org/; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ lovek323 the-kenny fpletz ]; - platforms = platforms.unix; - - longDescription = '' - pass is a very simple password store that keeps passwords inside gpg2 - encrypted files inside a simple directory tree residing at - ~/.password-store. The pass utility provides a series of commands for - manipulating the password store, allowing the user to add, remove, edit, - synchronize, generate, and manipulate passwords. - ''; - }; - - preInstall = '' - mkdir -p "$out/share/bash-completion/completions" - mkdir -p "$out/share/zsh/site-functions" - mkdir -p "$out/share/fish/vendor_completions.d" - ''; - - installFlags = [ "PREFIX=$(out)" ]; + installFlags = [ "PREFIX=$(out)" "WITH_ALLCOMP=yes" ]; postInstall = '' # Install Emacs Mode. NOTE: We can't install the necessary @@ -85,4 +63,20 @@ stdenv.mkDerivation rec { wrapProgram $out/bin/passmenu \ --prefix PATH : "$out/bin:${wrapperPath}" ''; + + meta = with stdenv.lib; { + description = "Stores, retrieves, generates, and synchronizes passwords securely"; + homepage = http://www.passwordstore.org/; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ lovek323 the-kenny fpletz ]; + platforms = platforms.unix; + + longDescription = '' + pass is a very simple password store that keeps passwords inside gpg2 + encrypted files inside a simple directory tree residing at + ~/.password-store. The pass utility provides a series of commands for + manipulating the password store, allowing the user to add, remove, edit, + synchronize, generate, and manipulate passwords. + ''; + }; } |