premake5: fix build on darwin

This commit is contained in:
Orivej Desh 2017-12-07 09:41:46 +00:00
parent 6057d74d1c
commit c9a03d9b48
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, CoreServices }:
{ stdenv, fetchFromGitHub, Foundation, readline }:
with stdenv.lib;
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
sha256 = "1h3hr96pdz94njn4bg02ldcz0k5j1x017d8svc7fdyvl2b77nqzf";
};
buildInputs = optional stdenv.isDarwin [ CoreServices ];
buildInputs = optionals stdenv.isDarwin [ Foundation readline ];
patchPhase = optional stdenv.isDarwin ''
substituteInPlace premake5.lua \

View File

@ -7558,7 +7558,7 @@ with pkgs;
premake4 = callPackage ../development/tools/misc/premake { };
premake5 = callPackage ../development/tools/misc/premake/5.nix {
inherit (darwin.apple_sdk.frameworks) CoreServices;
inherit (darwin.apple_sdk.frameworks) Foundation;
};
premake = premake4;