diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2020-08-02 21:02:14 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2020-08-02 22:35:30 -0500 |
commit | d0468f86e8e0fa59f6ee8fa493d68abc61facd98 (patch) | |
tree | b2fe1469be44a3213e9ed81b56aba88b0be7f305 /pkgs/development/libraries/nss | |
parent | 203538bd4fae00adeecce82d3432258a0242b27d (diff) | |
download | nixpkgs-d0468f86e8e0fa59f6ee8fa493d68abc61facd98.tar nixpkgs-d0468f86e8e0fa59f6ee8fa493d68abc61facd98.tar.gz nixpkgs-d0468f86e8e0fa59f6ee8fa493d68abc61facd98.tar.bz2 nixpkgs-d0468f86e8e0fa59f6ee8fa493d68abc61facd98.tar.lz nixpkgs-d0468f86e8e0fa59f6ee8fa493d68abc61facd98.tar.xz nixpkgs-d0468f86e8e0fa59f6ee8fa493d68abc61facd98.tar.zst nixpkgs-d0468f86e8e0fa59f6ee8fa493d68abc61facd98.zip |
nss: set install name correctly
Diffstat (limited to 'pkgs/development/libraries/nss')
-rw-r--r-- | pkgs/development/libraries/nss/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/nss/default.nix b/pkgs/development/libraries/nss/default.nix index a7b014acc89..d8af8bac615 100644 --- a/pkgs/development/libraries/nss/default.nix +++ b/pkgs/development/libraries/nss/default.nix @@ -54,6 +54,11 @@ in stdenv.mkDerivation rec { patchFlags = [ "-p0" ]; + postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace nss/coreconf/Darwin.mk --replace '@executable_path/$(notdir $@)' "$out/lib/\$(notdir \$@)" + substituteInPlace nss/coreconf/config.gypi --replace "'DYLIB_INSTALL_NAME_BASE': '@executable_path'" "'DYLIB_INSTALL_NAME_BASE': '$out/lib'" + ''; + outputs = [ "out" "dev" "tools" ]; preConfigure = "cd nss"; |