about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrei Volt <andrei@avolt.net>2024-03-09 21:03:01 +0100
committerGitHub <noreply@github.com>2024-03-09 21:03:01 +0100
commit7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c (patch)
treef8ed25aa6b0904db2cd8326d5bcc7f89c3af0b6e
parent8a16f9a618b9aff6c2992f559500f62363635700 (diff)
downloadnixlib-7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c.tar
nixlib-7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c.tar.gz
nixlib-7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c.tar.bz2
nixlib-7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c.tar.lz
nixlib-7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c.tar.xz
nixlib-7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c.tar.zst
nixlib-7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c.zip
firefox_decrypt: refactor makeWrapperArgs for macOS support (#283821)
* firefox_decrypt: refactor makeWrapperArgs for macOS support
-rw-r--r--pkgs/tools/security/firefox_decrypt/default.nix8
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 57f1215ed817..ce41f07569fb 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 { };