firefox_decrypt: refactor makeWrapperArgs for macOS support (#283821)

* firefox_decrypt: refactor makeWrapperArgs for macOS support
This commit is contained in:
Andrei Volt 2024-03-09 21:03:01 +01:00 committed by GitHub
parent 8a16f9a618
commit 7367cbd4e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,7 @@
, wheel , wheel
, nss , nss
, nix-update-script , nix-update-script
, stdenv
}: }:
buildPythonApplication rec { buildPythonApplication rec {
@ -26,7 +27,12 @@ buildPythonApplication rec {
wheel 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 { }; passthru.updateScript = nix-update-script { };