diff options
author | Andrei Volt <andrei@avolt.net> | 2024-03-09 21:03:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-09 21:03:01 +0100 |
commit | 7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c (patch) | |
tree | f8ed25aa6b0904db2cd8326d5bcc7f89c3af0b6e | |
parent | 8a16f9a618b9aff6c2992f559500f62363635700 (diff) |
firefox_decrypt: refactor makeWrapperArgs for macOS support (#283821)
* firefox_decrypt: refactor makeWrapperArgs for macOS support
-rw-r--r-- | pkgs/tools/security/firefox_decrypt/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/security/firefox_decrypt/default.nix b/pkgs/tools/security/firefox_decrypt/default.nix index 57f1215ed8173..ce41f07569fb9 100644 --- a/pkgs/tools/security/firefox_decrypt/default.nix +++ b/pkgs/tools/security/firefox_decrypt/default.nix @@ -6,6 +6,7 @@ , wheel , nss , nix-update-script +, stdenv }: buildPythonApplication rec { @@ -26,7 +27,12 @@ buildPythonApplication rec { wheel ]; - makeWrapperArgs = [ "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ nss ]) ]; + makeWrapperArgs = [ + "--prefix" + (if stdenv.isDarwin then "DYLD_LIBRARY_PATH" else "LD_LIBRARY_PATH") + ":" + (lib.makeLibraryPath [ nss ]) + ]; passthru.updateScript = nix-update-script { }; |