pass: 1.6.5 -> 1.7
This commit is contained in:
@@ -1,28 +1,27 @@
|
||||
{ stdenv, fetchurl
|
||||
, coreutils, gnused, getopt, pwgen, git, tree, gnupg, which, procps
|
||||
{ stdenv, lib, fetchurl
|
||||
, coreutils, gnused, getopt, git, tree, gnupg, which, procps, qrencode
|
||||
, makeWrapper
|
||||
|
||||
, xclip ? null, xdotool ? null, dmenu ? null
|
||||
, x11Support ? !stdenv.isDarwin
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
assert x11Support -> xclip != null
|
||||
&& xdotool != null
|
||||
&& dmenu != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.6.5";
|
||||
version = "1.7";
|
||||
name = "password-store-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://git.zx2c4.com/password-store/snapshot/${name}.tar.xz";
|
||||
sha256 = "05bk3lrp5jwg0v338lvylp7glpliydzz4jf5pjr6k3kagrv3jyik";
|
||||
sha256 = "002mw7j0m33bw483rllzhcf41wp3ixka8yma6kqrfaj57jyw66hn";
|
||||
};
|
||||
|
||||
patches =
|
||||
[ ./program-name.patch
|
||||
./set-correct-program-name-for-sleep.patch
|
||||
] ++ stdenv.lib.optional stdenv.isDarwin ./no-darwin-getopt.patch;
|
||||
patches = stdenv.lib.optional stdenv.isDarwin ./no-darwin-getopt.patch;
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
@@ -30,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
description = "Stores, retrieves, generates, and synchronizes passwords securely";
|
||||
homepage = http://www.passwordstore.org/;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ lovek323 the-kenny ];
|
||||
maintainers = with maintainers; [ lovek323 the-kenny fpletz ];
|
||||
platforms = platforms.unix;
|
||||
|
||||
longDescription = ''
|
||||
@@ -56,10 +55,8 @@ stdenv.mkDerivation rec {
|
||||
# himself.
|
||||
mkdir -p "$out/share/emacs/site-lisp"
|
||||
cp "contrib/emacs/password-store.el" "$out/share/emacs/site-lisp/"
|
||||
|
||||
${if x11Support then ''
|
||||
cp "contrib/dmenu/passmenu" "$out/bin/"
|
||||
'' else ""}
|
||||
'' + optionalString x11Support ''
|
||||
cp "contrib/dmenu/passmenu" "$out/bin/"
|
||||
'';
|
||||
|
||||
wrapperPath = with stdenv.lib; makeBinPath ([
|
||||
@@ -68,16 +65,16 @@ stdenv.mkDerivation rec {
|
||||
git
|
||||
gnupg
|
||||
gnused
|
||||
pwgen
|
||||
tree
|
||||
which
|
||||
qrencode
|
||||
] ++ stdenv.lib.optional stdenv.isLinux procps
|
||||
++ ifEnable x11Support [ dmenu xclip xdotool ]);
|
||||
|
||||
postFixup = ''
|
||||
# Fix program name in --help
|
||||
substituteInPlace $out/bin/pass \
|
||||
--replace "\$program" "pass"
|
||||
--replace 'PROGRAM="''${0##*/}"' "PROGRAM=pass"
|
||||
|
||||
# Ensure all dependencies are in PATH
|
||||
wrapProgram $out/bin/pass \
|
||||
|
||||
Reference in New Issue
Block a user