nss: try to fix darwin build
This commit is contained in:
parent
6760ec6c40
commit
8f925208cd
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, nspr, perl, zlib, sqlite, fixDarwinDylibNames, buildPackages, ninja }:
|
{ stdenv, fetchurl, nspr, perl, zlib, sqlite, darwin, fixDarwinDylibNames, buildPackages, ninja }:
|
||||||
|
|
||||||
let
|
let
|
||||||
nssPEM = fetchurl {
|
nssPEM = fetchurl {
|
||||||
@ -19,7 +19,8 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
|
|
||||||
nativeBuildInputs = [ perl ninja (buildPackages.python3.withPackages (ps: with ps; [ gyp ])) ];
|
nativeBuildInputs = [ perl ninja (buildPackages.python3.withPackages (ps: with ps; [ gyp ])) ]
|
||||||
|
++ stdenv.lib.optional stdenv.isDarwin darwin.cctools;
|
||||||
|
|
||||||
buildInputs = [ zlib sqlite ]
|
buildInputs = [ zlib sqlite ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
||||||
@ -53,10 +54,6 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patchFlags = [ "-p0" ];
|
patchFlags = [ "-p0" ];
|
||||||
|
|
||||||
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
||||||
substituteInPlace nss/coreconf/Darwin.mk --replace '@executable_path/$(notdir $@)' "$out/lib/\$(notdir \$@)"
|
|
||||||
'';
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" "tools" ];
|
outputs = [ "out" "dev" "tools" ];
|
||||||
|
|
||||||
preConfigure = "cd nss";
|
preConfigure = "cd nss";
|
||||||
|
Loading…
Reference in New Issue
Block a user