From 7367cbd4e42b6513e6bc212ea7b32deeb0d5b76c Mon Sep 17 00:00:00 2001 From: Andrei Volt Date: Sat, 9 Mar 2024 21:03:01 +0100 Subject: [PATCH] firefox_decrypt: refactor makeWrapperArgs for macOS support (#283821) * firefox_decrypt: refactor makeWrapperArgs for macOS support --- pkgs/tools/security/firefox_decrypt/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 { };