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
, 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 { };