nss: set install name correctly

This commit is contained in:
Matthew Bauer 2020-08-02 21:02:14 -05:00
parent 203538bd4f
commit d0468f86e8

View File

@ -54,6 +54,11 @@ in stdenv.mkDerivation rec {
patchFlags = [ "-p0" ]; 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" ]; outputs = [ "out" "dev" "tools" ];
preConfigure = "cd nss"; preConfigure = "cd nss";