Skip to content

Commit

Permalink
premake5: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Dec 7, 2017
1 parent 6057d74 commit c9a03d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/tools/misc/premake/5.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, CoreServices }:
{ stdenv, fetchFromGitHub, Foundation, readline }:

with stdenv.lib;

Expand All @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -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;
Expand Down

0 comments on commit c9a03d9

Please sign in to comment.