passage: fix getopt path on darwin
Not entirely sure what was wrong about the former approach tbh, but the difference is that this patch actually replaces the placeholder in the patch and builds a working executable on my m2 macbook air.
This commit is contained in:
parent
eb115bee68
commit
07f072968c
|
@ -7,6 +7,6 @@ index 9a1fda8..4f7ce3d 100644
|
|||
}
|
||||
|
||||
-GETOPT="$({ test -x /usr/local/opt/gnu-getopt/bin/getopt && echo /usr/local/opt/gnu-getopt; } || brew --prefix gnu-getopt 2>/dev/null || { command -v port &>/dev/null && echo /opt/local; } || echo /usr/local)/bin/getopt"
|
||||
+GETOPT="@GETOPT@"
|
||||
+GETOPT="@getopt@/bin/getopt"
|
||||
SHRED="srm -f -z"
|
||||
BASE64="openssl base64"
|
||||
|
|
|
@ -27,7 +27,7 @@ stdenv.mkDerivation {
|
|||
patches = [
|
||||
(substituteAll {
|
||||
src = ./darwin-getopt-path.patch;
|
||||
GETOPT = "${getopt}/bin/getopt";
|
||||
inherit getopt;
|
||||
})
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue