-
-
Save cole-h/6f0eee3ac18180a8275deb288c4651d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/c49gjg232ivv0gjq3505jb0bw2nw0fn3-password-store-1.7.4.tar.xz | |
source root is password-store-1.7.4 | |
setting SOURCE_DATE_EPOCH to timestamp 1623430146 of file password-store-1.7.4/tests/t0500-find.sh | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources | |
applying patch /nix/store/q61l6anrvv4qjw2mjv1lby7z2ij3px6s-set-correct-program-name-for-sleep.patch | |
patching file src/platform/cygwin.sh | |
patching file src/platform/darwin.sh | |
applying patch /nix/store/sg9qz439fx55m7y3z76lja6v6gg38a5p-extension-dir.patch | |
patching file Makefile | |
patching file src/password-store.sh | |
Hunk #1 succeeded at 676 (offset 20 lines). | |
patching script interpreter paths in tests | |
tests/t0500-find.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/t0400-grep.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/t0300-reencryption.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/t0200-edit-tests.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/t0100-insert-tests.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/t0060-rm-tests.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/t0050-mv-tests.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/t0020-show-tests.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/t0010-generate-tests.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/t0001-sanity-checks.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
tests/fake-editor-change-password.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash" | |
@nix { "action": "setPhase", "phase": "configurePhase" } | |
configuring | |
no configure script, doing nothing | |
@nix { "action": "setPhase", "phase": "buildPhase" } | |
building | |
build flags: SHELL=/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash | |
Password store is a shell script, so there is nothing to do. Try "make install" instead. | |
@nix { "action": "setPhase", "phase": "installPhase" } | |
installing | |
install flags: SHELL=/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash PREFIX=\$\(out\) WITH_ALLCOMP=yes install | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/man' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/man/man1' | |
'man/pass.1' -> '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/man/man1/pass.1' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/bash-completion' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/bash-completion/completions' | |
'src/completion/pass.bash-completion' -> '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/bash-completion/completions/pass' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/zsh' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/zsh/site-functions' | |
'src/completion/pass.zsh-completion' -> '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/zsh/site-functions/_pass' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/fish' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/fish/vendor_completions.d' | |
'src/completion/pass.fish-completion' -> '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/share/fish/vendor_completions.d/pass.fish' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/lib' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/lib/password-store' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/lib/password-store/extensions' | |
install: creating directory '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/bin/' | |
'src/.pass' -> '/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/bin/pass' | |
@nix { "action": "setPhase", "phase": "fixupPhase" } | |
post-installation fixup | |
[33m[resholve context][0m : changing directory to /nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4 | |
[33m[resholve context][0m RESHOLVE_LORE=/nix/store/avsf1a2jlm6v24zchgqf2hgi7pc9yng1-more-binlore | |
[33m[resholve context][0m RESHOLVE_EXECER='cannot:/nix/store/ck2b73k3af1pcjm2dfsy5myg2cl5k13j-gnupg-2.2.27/bin/gpg cannot:/nix/store/m5kp2jhiga25ynk3iq61f4psaqixg7ib-git-2.32.0/bin/git' | |
[33m[resholve context][0m RESHOLVE_FIX='$BASE64:base64 $GETOPT:getopt $GPG:gpg' | |
[33m[resholve context][0m RESHOLVE_INPUTS=/nix/store/klwhsp6f58mqkil6aq59zcj4k7zgcqix-gnused-4.8/bin:/nix/store/ck2b73k3af1pcjm2dfsy5myg2cl5k13j-gnupg-2.2.27/bin:/nix/store/937f5738d2frws07ixcpg5ip176pfss1-coreutils-8.32/bin:/nix/store/0x9jarl0x22kr496qivdyq4kg931b1jw-getopt-1.1.6/bin:/nix/store/lqs934kypamxh5fc55d15sv88jl0wbwa-which-2.21/bin:/nix/store/m5kp2jhiga25ynk3iq61f4psaqixg7ib-git-2.32.0/bin:/nix/store/aggfj36xik83sf1hp8rsfsxxdilxpz9m-gnugrep-3.6/bin:/nix/store/aa4zln9ih27zqf5mncdaxq1sp89wps40-findutils-4.7.0/bin | |
[33m[resholve context][0m RESHOLVE_INTERPRETER=/nix/store/x0dcb2rxlzf32g0ddfkqqz1sfcyx4yay-bash-4.4-p23/bin/bash | |
[33m[resholve context][0m RESHOLVE_KEEP='$EDITOR $copy_cmd $paste_cmd source:$extension' | |
[33m[resholve context][0m resholve --overwrite bin/pass | |
IFS=";" eval 'GPG_RECIPIENTS+=( $group )' # http://unix.stackexchange.com/a/92190 | |
^ | |
/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/bin/pass:127: FEEDBACK WANTED: Letting quoted 'eval' through for now. | |
https://github.com/abathur/resholve/issues/2 | |
IFS="," eval 'echo "Search Terms: $*"' | |
^ | |
/nix/store/xmbav907gjjzzrq4vrryvr8p2s7wh3j5-password-store-1.7.4/bin/pass:414: FEEDBACK WANTED: Letting quoted 'eval' through for now. | |
https://github.com/abathur/resholve/issues/2 | |
Traceback (most recent call last): | |
File "/nix/store/99nhgkxl1sphp0j3jq7m12ah6hiad96v-resholve-0.6.0-rc.1/bin/.resholve-wrapped", line 4301, in <module> | |
sys.exit(punshow()) | |
File "/nix/store/99nhgkxl1sphp0j3jq7m12ah6hiad96v-resholve-0.6.0-rc.1/bin/.resholve-wrapped", line 964, in punshow | |
resolve_cmdlikes() | |
File "/nix/store/99nhgkxl1sphp0j3jq7m12ah6hiad96v-resholve-0.6.0-rc.1/bin/.resholve-wrapped", line 2740, in resolve_cmdlikes | |
cmdlike.resolve() | |
File "/nix/store/99nhgkxl1sphp0j3jq7m12ah6hiad96v-resholve-0.6.0-rc.1/bin/.resholve-wrapped", line 2712, in resolve | |
self._resolve_invocations(solution) | |
File "/nix/store/99nhgkxl1sphp0j3jq7m12ah6hiad96v-resholve-0.6.0-rc.1/bin/.resholve-wrapped", line 2677, in _resolve_invocations | |
source.look_for_external_sub_execution(self.name, cmd_object) | |
File "/nix/store/99nhgkxl1sphp0j3jq7m12ah6hiad96v-resholve-0.6.0-rc.1/bin/.resholve-wrapped", line 3523, in look_for_external_sub_execution | |
subcmd.words[0].parts[0].val, | |
IndexError: list index out of range |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pkgs/tools/security/pass/default.nix b/pkgs/tools/security/pass/default.nix | |
index 7468b5dcc8d..fee88228cca 100644 | |
--- a/pkgs/tools/security/pass/default.nix | |
+++ b/pkgs/tools/security/pass/default.nix | |
@@ -1,27 +1,40 @@ | |
-{ stdenv, lib, pkgs, fetchurl, buildEnv | |
-, coreutils, findutils, gnugrep, gnused, getopt, git, tree, gnupg, openssl | |
-, which, procps , qrencode , makeWrapper, pass, symlinkJoin | |
- | |
-, xclip ? null, xdotool ? null, dmenu ? null | |
-, x11Support ? !stdenv.isDarwin , dmenuSupport ? (x11Support || waylandSupport) | |
-, waylandSupport ? false, wl-clipboard ? null | |
-, ydotool ? null, dmenu-wayland ? null | |
- | |
-# For backwards-compatibility | |
+{ stdenv | |
+, lib | |
+, pkgs | |
+, fetchurl | |
+, buildEnv | |
+, coreutils | |
+, findutils | |
+, gnugrep | |
+, gnused | |
+, getopt | |
+, git | |
+, tree | |
+, gnupg | |
+, openssl | |
+, which | |
+, procps | |
+, qrencode | |
+, makeWrapper | |
+, pass | |
+, symlinkJoin | |
+ | |
+, xclip ? null | |
+, xdotool ? null | |
+, dmenu ? null | |
+, x11Support ? !stdenv.isDarwin | |
+, dmenuSupport ? (x11Support || waylandSupport) | |
+, waylandSupport ? false | |
+, wl-clipboard ? null | |
+, ydotool ? null | |
+, dmenu-wayland ? null | |
+ | |
+ # For backwards-compatibility | |
, tombPluginSupport ? false | |
-}: | |
- | |
-with lib; | |
- | |
-assert x11Support -> xclip != null; | |
-assert waylandSupport -> wl-clipboard != null; | |
- | |
-assert dmenuSupport -> x11Support || waylandSupport; | |
-assert dmenuSupport && x11Support | |
- -> dmenu != null && xdotool != null; | |
-assert dmenuSupport && waylandSupport | |
- -> dmenu-wayland != null && ydotool != null; | |
+, resholvePackage | |
+, bash | |
+}: | |
let | |
passExtensions = import ./extensions { inherit pkgs; }; | |
@@ -30,10 +43,11 @@ let | |
let | |
selected = [ pass ] ++ extensions passExtensions | |
++ lib.optional tombPluginSupport passExtensions.tomb; | |
- in buildEnv { | |
+ in | |
+ buildEnv { | |
name = "pass-extensions-env"; | |
paths = selected; | |
- buildInputs = [ makeWrapper ] ++ concatMap (x: x.buildInputs) selected; | |
+ buildInputs = [ makeWrapper ] ++ lib.concatMap (x: x.buildInputs) selected; | |
postBuild = '' | |
files=$(find $out/bin/ -type f -exec readlink -f {} \;) | |
@@ -54,12 +68,12 @@ let | |
}; | |
in | |
-stdenv.mkDerivation rec { | |
+resholvePackage rec { | |
version = "1.7.4"; | |
pname = "password-store"; | |
src = fetchurl { | |
- url = "https://git.zx2c4.com/password-store/snapshot/${pname}-${version}.tar.xz"; | |
+ url = "https://git.zx2c4.com/password-store/snapshot/${pname}-${version}.tar.xz"; | |
sha256 = "1h4k6w7g8pr169p5w9n6mkdhxl3pw51zphx7www6pvgjb7vgmafg"; | |
}; | |
@@ -77,42 +91,65 @@ stdenv.mkDerivation rec { | |
# dependencies (s.el) here. The user has to do this themselves. | |
mkdir -p "$out/share/emacs/site-lisp" | |
cp "contrib/emacs/password-store.el" "$out/share/emacs/site-lisp/" | |
- '' + optionalString dmenuSupport '' | |
+ '' + lib.optionalString dmenuSupport '' | |
cp "contrib/dmenu/passmenu" "$out/bin/" | |
''; | |
- wrapperPath = with lib; makeBinPath ([ | |
- coreutils | |
- findutils | |
- getopt | |
- git | |
- gnugrep | |
- gnupg | |
- gnused | |
- tree | |
- which | |
- qrencode | |
- procps | |
- ] ++ optional stdenv.isDarwin openssl | |
- ++ optional x11Support xclip | |
- ++ optional waylandSupport wl-clipboard | |
- ++ optionals (waylandSupport && dmenuSupport) [ ydotool dmenu-wayland ] | |
- ++ optionals (x11Support && dmenuSupport) [ xdotool dmenu ] | |
- ); | |
+ solutions = { | |
+ pass = { | |
+ scripts = [ "bin/pass" ]; | |
+ interpreter = "${bash}/bin/bash"; | |
+ inputs = [ | |
+ gnused | |
+ gnupg | |
+ coreutils | |
+ getopt | |
+ which | |
+ git | |
+ gnugrep | |
+ findutils | |
+ ]; | |
+ fix = { | |
+ "$GPG" = [ "gpg" ]; | |
+ "$BASE64" = [ "base64" ]; | |
+ "$GETOPT" = [ "getopt" ]; | |
+ }; | |
+ keep = { | |
+ "$paste_cmd" = true; # dynamic, depends on user env | |
+ "$copy_cmd" = true; # dynamic, depends on user env | |
+ "$EDITOR" = true; # dynamic, depends on user env | |
+ source = [ "$extension" ]; # internal, for pass extensions | |
+ }; | |
+ execer = [ | |
+ "cannot:${gnupg}/bin/gpg" | |
+ "cannot:${git}/bin/git" | |
+ ]; | |
+ }; | |
+ }; | |
+ | |
+ # wrapperPath = with lib; makeBinPath ([ | |
+ # coreutils | |
+ # findutils | |
+ # getopt | |
+ # git | |
+ # gnugrep | |
+ # gnupg | |
+ # gnused | |
+ # tree | |
+ # which | |
+ # qrencode | |
+ # procps | |
+ # ] ++ optional stdenv.isDarwin openssl | |
+ # ++ optional x11Support xclip | |
+ # ++ optional waylandSupport wl-clipboard | |
+ # ++ optionals (waylandSupport && dmenuSupport) [ ydotool dmenu-wayland ] | |
+ # ++ optionals (x11Support && dmenuSupport) [ xdotool dmenu ] | |
+ # ); | |
postFixup = '' | |
# Fix program name in --help | |
substituteInPlace $out/bin/pass \ | |
--replace 'PROGRAM="''${0##*/}"' "PROGRAM=pass" | |
- | |
- # Ensure all dependencies are in PATH | |
- wrapProgram $out/bin/pass \ | |
- --prefix PATH : "${wrapperPath}" | |
- '' + lib.optionalString dmenuSupport '' | |
- # We just wrap passmenu with the same PATH as pass. It doesn't | |
- # need all the tools in there but it doesn't hurt either. | |
- wrapProgram $out/bin/passmenu \ | |
- --prefix PATH : "$out/bin:${wrapperPath}" | |
''; | |
# Turn "check" into "installcheck", since we want to test our pass, | |
@@ -152,10 +189,10 @@ stdenv.mkDerivation rec { | |
meta = with lib; { | |
description = "Stores, retrieves, generates, and synchronizes passwords securely"; | |
- homepage = "https://www.passwordstore.org/"; | |
- license = licenses.gpl2Plus; | |
+ homepage = "https://www.passwordstore.org/"; | |
+ license = licenses.gpl2Plus; | |
maintainers = with maintainers; [ lovek323 fpletz tadfisher globin ma27 ]; | |
- platforms = platforms.unix; | |
+ platforms = platforms.unix; | |
longDescription = '' | |
pass is a very simple password store that keeps passwords inside gpg2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv | |
, lib | |
, pkgs | |
, fetchurl | |
, buildEnv | |
, coreutils | |
, findutils | |
, gnugrep | |
, gnused | |
, getopt | |
, git | |
, tree | |
, gnupg | |
, openssl | |
, which | |
, procps | |
, qrencode | |
, makeWrapper | |
, pass | |
, symlinkJoin | |
, xclip ? null | |
, xdotool ? null | |
, dmenu ? null | |
, x11Support ? !stdenv.isDarwin | |
, dmenuSupport ? (x11Support || waylandSupport) | |
, waylandSupport ? false | |
, wl-clipboard ? null | |
, ydotool ? null | |
, dmenu-wayland ? null | |
# For backwards-compatibility | |
, tombPluginSupport ? false | |
, resholvePackage | |
, bash | |
}: | |
let | |
passExtensions = import ./extensions { inherit pkgs; }; | |
env = extensions: | |
let | |
selected = [ pass ] ++ extensions passExtensions | |
++ lib.optional tombPluginSupport passExtensions.tomb; | |
in | |
buildEnv { | |
name = "pass-extensions-env"; | |
paths = selected; | |
buildInputs = [ makeWrapper ] ++ lib.concatMap (x: x.buildInputs) selected; | |
postBuild = '' | |
files=$(find $out/bin/ -type f -exec readlink -f {} \;) | |
if [ -L $out/bin ]; then | |
rm $out/bin | |
mkdir $out/bin | |
fi | |
for i in $files; do | |
if ! [ "$(readlink -f "$out/bin/$(basename $i)")" = "$i" ]; then | |
ln -sf $i $out/bin/$(basename $i) | |
fi | |
done | |
wrapProgram $out/bin/pass \ | |
--set SYSTEM_EXTENSION_DIR "$out/lib/password-store/extensions" | |
''; | |
}; | |
in | |
resholvePackage rec { | |
version = "1.7.4"; | |
pname = "password-store"; | |
src = fetchurl { | |
url = "https://git.zx2c4.com/password-store/snapshot/${pname}-${version}.tar.xz"; | |
sha256 = "1h4k6w7g8pr169p5w9n6mkdhxl3pw51zphx7www6pvgjb7vgmafg"; | |
}; | |
patches = [ | |
./set-correct-program-name-for-sleep.patch | |
./extension-dir.patch | |
] ++ lib.optional stdenv.isDarwin ./no-darwin-getopt.patch; | |
nativeBuildInputs = [ makeWrapper ]; | |
installFlags = [ "PREFIX=$(out)" "WITH_ALLCOMP=yes" ]; | |
postInstall = '' | |
# Install Emacs Mode. NOTE: We can't install the necessary | |
# dependencies (s.el) here. The user has to do this themselves. | |
mkdir -p "$out/share/emacs/site-lisp" | |
cp "contrib/emacs/password-store.el" "$out/share/emacs/site-lisp/" | |
'' + lib.optionalString dmenuSupport '' | |
cp "contrib/dmenu/passmenu" "$out/bin/" | |
''; | |
solutions = { | |
pass = { | |
scripts = [ "bin/pass" ]; | |
interpreter = "${bash}/bin/bash"; | |
inputs = [ | |
gnused | |
gnupg | |
coreutils | |
getopt | |
which | |
git | |
gnugrep | |
findutils | |
]; | |
fix = { | |
"$GPG" = [ "gpg" ]; | |
"$BASE64" = [ "base64" ]; | |
"$GETOPT" = [ "getopt" ]; | |
}; | |
keep = { | |
"$paste_cmd" = true; # dynamic, depends on user env | |
"$copy_cmd" = true; # dynamic, depends on user env | |
"$EDITOR" = true; # dynamic, depends on user env | |
source = [ | |
"$extension" # internal, for pass extensions | |
]; | |
}; | |
execer = [ | |
"cannot:${gnupg}/bin/gpg" | |
"cannot:${git}/bin/git" | |
]; | |
}; | |
}; | |
# wrapperPath = with lib; makeBinPath ([ | |
# coreutils | |
# findutils | |
# getopt | |
# git | |
# gnugrep | |
# gnupg | |
# gnused | |
# tree | |
# which | |
# qrencode | |
# procps | |
# ] ++ optional stdenv.isDarwin openssl | |
# ++ optional x11Support xclip | |
# ++ optional waylandSupport wl-clipboard | |
# ++ optionals (waylandSupport && dmenuSupport) [ ydotool dmenu-wayland ] | |
# ++ optionals (x11Support && dmenuSupport) [ xdotool dmenu ] | |
# ); | |
postFixup = '' | |
# Fix program name in --help | |
substituteInPlace $out/bin/pass \ | |
--replace 'PROGRAM="''${0##*/}"' "PROGRAM=pass" | |
''; | |
# Turn "check" into "installcheck", since we want to test our pass, | |
# not the one before the fixup. | |
postPatch = '' | |
patchShebangs tests | |
substituteInPlace src/password-store.sh \ | |
--replace "@out@" "$out" | |
# the turning | |
sed -i -e 's@^PASS=.*''$@PASS=$out/bin/pass@' \ | |
-e 's@^GPGS=.*''$@GPG=${gnupg}/bin/gpg2@' \ | |
-e '/which gpg/ d' \ | |
tests/setup.sh | |
'' + lib.optionalString stdenv.isDarwin '' | |
# 'pass edit' uses hdid, which is not available from the sandbox. | |
rm -f tests/t0200-edit-tests.sh | |
rm -f tests/t0010-generate-tests.sh | |
rm -f tests/t0020-show-tests.sh | |
rm -f tests/t0050-mv-tests.sh | |
rm -f tests/t0100-insert-tests.sh | |
rm -f tests/t0300-reencryption.sh | |
rm -f tests/t0400-grep.sh | |
''; | |
doCheck = false; | |
doInstallCheck = true; | |
installCheckInputs = [ git ]; | |
installCheckTarget = "test"; | |
passthru = { | |
extensions = passExtensions; | |
withExtensions = env; | |
}; | |
meta = with lib; { | |
description = "Stores, retrieves, generates, and synchronizes passwords securely"; | |
homepage = "https://www.passwordstore.org/"; | |
license = licenses.gpl2Plus; | |
maintainers = with maintainers; [ lovek323 fpletz tadfisher globin ma27 ]; | |
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. | |
''; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hehe. I gave this a try, but it looks like it uses a different source for darwin, so it fell over at a slightly different place. Software. :)