fondu: fix darwin build
This commit is contained in:
parent
ab6176ac5b
commit
b80a8e34c7
2 changed files with 10 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchurl }:
|
{ lib, stdenv, fetchurl, CoreServices }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "060102";
|
version = "060102";
|
||||||
|
@ -9,6 +9,12 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "152prqad9jszjmm4wwqrq83zk13ypsz09n02nrk1gg0fcxfm7fr2";
|
sha256 = "152prqad9jszjmm4wwqrq83zk13ypsz09n02nrk1gg0fcxfm7fr2";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postConfigure = lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace Makefile --replace /System/Library/Frameworks/CoreServices.framework/CoreServices "-framework CoreServices"
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
|
||||||
|
|
||||||
makeFlags = [ "DESTDIR=$(out)" ];
|
makeFlags = [ "DESTDIR=$(out)" ];
|
||||||
|
|
||||||
hardeningDisable = [ "fortify" ];
|
hardeningDisable = [ "fortify" ];
|
||||||
|
|
|
@ -4003,7 +4003,9 @@ with pkgs;
|
||||||
jdk = openjdk8;
|
jdk = openjdk8;
|
||||||
};
|
};
|
||||||
|
|
||||||
fondu = callPackage ../tools/misc/fondu { };
|
fondu = callPackage ../tools/misc/fondu {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||||
|
};
|
||||||
|
|
||||||
fpp = callPackage ../tools/misc/fpp { };
|
fpp = callPackage ../tools/misc/fpp { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue