diff options
author | Väinö Järvelä <vaino.jarvela@reaktor.com> | 2018-02-20 12:12:24 +0200 |
---|---|---|
committer | Väinö Järvelä <vaino.jarvela@reaktor.com> | 2018-02-21 07:33:11 +0200 |
commit | aacd3e526799516e46e229e05ee25518063d3419 (patch) | |
tree | 1ef6fda72fa639ef8d99589bc08c8dd53059473e /pkgs/development/libraries/nss | |
parent | 2a99b51390e9f8b5dfd1629ff51c2951cb94f563 (diff) | |
download | nixpkgs-aacd3e526799516e46e229e05ee25518063d3419.tar nixpkgs-aacd3e526799516e46e229e05ee25518063d3419.tar.gz nixpkgs-aacd3e526799516e46e229e05ee25518063d3419.tar.bz2 nixpkgs-aacd3e526799516e46e229e05ee25518063d3419.tar.lz nixpkgs-aacd3e526799516e46e229e05ee25518063d3419.tar.xz nixpkgs-aacd3e526799516e46e229e05ee25518063d3419.tar.zst nixpkgs-aacd3e526799516e46e229e05ee25518063d3419.zip |
nss: link libraries with absolute paths on Darwin
Diffstat (limited to 'pkgs/development/libraries/nss')
-rw-r--r-- | pkgs/development/libraries/nss/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/libraries/nss/default.nix b/pkgs/development/libraries/nss/default.nix index 8d799e2c13a..a8f36af5df5 100644 --- a/pkgs/development/libraries/nss/default.nix +++ b/pkgs/development/libraries/nss/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, nspr, perl, zlib, sqlite }: +{ stdenv, fetchurl, nspr, perl, zlib, sqlite, fixDarwinDylibNames }: let @@ -16,7 +16,8 @@ in stdenv.mkDerivation rec { sha256 = "186x33wsk4mzjz7dzbn8p0py9a0nzkgzpfkdv4rlyy5gghv5vhd3"; }; - buildInputs = [ perl zlib sqlite ]; + buildInputs = [ perl zlib sqlite ] + ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames; propagatedBuildInputs = [ nspr ]; @@ -33,6 +34,10 @@ in stdenv.mkDerivation rec { patchFlags = "-p0"; + postPatch = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace nss/coreconf/Darwin.mk --replace '@executable_path/$(notdir $@)' "$out/lib/\$(notdir \$@)" + ''; + outputs = [ "out" "dev" "tools" ]; preConfigure = "cd nss"; |