From 37a79e316a269724f848f4557d116a9a71c117bf Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sun, 2 Aug 2020 21:02:14 -0500 Subject: nss: set install name correctly (cherry picked from commit d0468f86e8e0fa59f6ee8fa493d68abc61facd98) --- nixpkgs/pkgs/development/libraries/nss/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nixpkgs/pkgs/development/libraries/nss') diff --git a/nixpkgs/pkgs/development/libraries/nss/default.nix b/nixpkgs/pkgs/development/libraries/nss/default.nix index 1bc934a65535..a504aae6a980 100644 --- a/nixpkgs/pkgs/development/libraries/nss/default.nix +++ b/nixpkgs/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"; -- cgit 1.4.1