Fix pass on darwin
commitdf0016a8ce3ca9d3095eb5f08591f007f79db141
authorShea Levy <shea@shealevy.com>
dateSun 15 Feb 2015, 16:14 (12 years ago)
parent07bac41
pkgs/tools/security/pass/default.nix+2
@@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
1717 sha256 = "05bk3lrp5jwg0v338lvylp7glpliydzz4jf5pjr6k3kagrv3jyik";
1818 };
1919
20+ patches = if stdenv.isDarwin then [ ./no-darwin-getopt.patch ] else null;
21+
2022 buildInputs = [ makeWrapper ];
2123
2224 meta = with stdenv.lib; {
pkgs/tools/security/pass/no-darwin-getopt.patchnew file+9
@@ -0,0 +1,9 @@
1+diff -Naur password-store-1.6.5-orig/src/platform/darwin.sh password-store-1.6.5/src/platform/darwin.sh
2+--- password-store-1.6.5-orig/src/platform/darwin.sh 2015-01-28 16:43:02.000000000 +0000
3++++ password-store-1.6.5/src/platform/darwin.sh 2015-02-15 16:09:02.000000000 +0000
4+@@ -31,5 +31,4 @@
5+ mount -t hfs -o noatime -o nobrowse "$DARWIN_RAMDISK_DEV" "$SECURE_TMPDIR" || die "Error: could not mount filesystem on ramdisk."
6+ }
7+
8+-GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || { which port &>/dev/null && echo /opt/local; } || echo /usr/local)/bin/getopt"
9+ SHRED="srm -f -z"