3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #2791 from joelteon/pass-osx

Fix getopt path on darwin for password-store
This commit is contained in:
Austin Seipp 2014-06-03 20:34:08 -05:00
commit d100b47c47
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,11 @@
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
index 1b76c33..fa40104 100644
--- a/src/platform/darwin.sh
+++ b/src/platform/darwin.sh
@@ -31,5 +31,5 @@ tmpdir() {
mount -t hfs -o noatime -o nobrowse "$ramdisk_dev" "$SECURE_TMPDIR" || exit 1
}
-GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || echo /usr/local)/bin/getopt"
+GETOPT="getopt"
SHRED="srm -f -z"

View file

@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
sha256 = "1d32y6k625pv704icmhg46zg02kw5zcyxscgljxgy8bb5wv4lv2j";
};
patches = [ ./darwin-getopt.patch ];
buildInputs = [ makeWrapper ];
meta = with stdenv.lib; {