mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
Merge pull request #196395 from viraptor/fondu-darwin
fondu: fix darwin build
This commit is contained in:
commit
d512720a35
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl }:
|
||||
{ lib, stdenv, fetchurl, CoreServices }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "060102";
|
||||
@ -9,6 +9,12 @@ stdenv.mkDerivation rec {
|
||||
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)" ];
|
||||
|
||||
hardeningDisable = [ "fortify" ];
|
||||
|
@ -4003,7 +4003,9 @@ with pkgs;
|
||||
jdk = openjdk8;
|
||||
};
|
||||
|
||||
fondu = callPackage ../tools/misc/fondu { };
|
||||
fondu = callPackage ../tools/misc/fondu {
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices;
|
||||
};
|
||||
|
||||
fpp = callPackage ../tools/misc/fpp { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user