summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorJoel Taylor <me@joelt.io>2014-05-29 09:46:53 -0700
committerJoel Taylor <me@joelt.io>2014-05-29 09:46:53 -0700
commitfdebea003e43e8df8ffc4c889331f5d28c36880e (patch)
tree0045ba30b20d5bf3801f5b4f8c3b177dc7b1c922 /pkgs/tools/security
parent1905e054c1b01f9bcd2a327326bdea9966457fbd (diff)
downloadnixlib-fdebea003e43e8df8ffc4c889331f5d28c36880e.tar
nixlib-fdebea003e43e8df8ffc4c889331f5d28c36880e.tar.gz
nixlib-fdebea003e43e8df8ffc4c889331f5d28c36880e.tar.bz2
nixlib-fdebea003e43e8df8ffc4c889331f5d28c36880e.tar.lz
nixlib-fdebea003e43e8df8ffc4c889331f5d28c36880e.tar.xz
nixlib-fdebea003e43e8df8ffc4c889331f5d28c36880e.tar.zst
nixlib-fdebea003e43e8df8ffc4c889331f5d28c36880e.zip
fix getopt path on darwin
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/pass/darwin-getopt.patch11
-rw-r--r--pkgs/tools/security/pass/default.nix2
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/tools/security/pass/darwin-getopt.patch b/pkgs/tools/security/pass/darwin-getopt.patch
new file mode 100644
index 000000000000..8cdcd67bc658
--- /dev/null
+++ b/pkgs/tools/security/pass/darwin-getopt.patch
@@ -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"
diff --git a/pkgs/tools/security/pass/default.nix b/pkgs/tools/security/pass/default.nix
index cf16e3477edf..505bdd2efc86 100644
--- a/pkgs/tools/security/pass/default.nix
+++ b/pkgs/tools/security/pass/default.nix
@@ -11,6 +11,8 @@ stdenv.mkDerivation rec {
     sha256 = "1d32y6k625pv704icmhg46zg02kw5zcyxscgljxgy8bb5wv4lv2j";
   };
 
+  patches = [ ./darwin-getopt.patch ];
+
   buildInputs = [ makeWrapper ];
 
   meta = with stdenv.lib; {