Merge pull request #24430 from winniequinn/premake5

premake5: init at 5.0.0pre.alpha.11
This commit is contained in:
Michael Raskin 2017-05-01 09:42:16 +02:00 committed by GitHub
commit c1a1e3a273
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ stdenv, fetchFromGitHub, CoreServices }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "premake-${version}";
version = "5.0.0pre.alpha.11";
src = fetchFromGitHub {
owner = "premake";
repo = "premake-core";
rev = "5dfb0238bc309df04819dd430def621ce854678d";
sha256 = "0k9xbqrnbwj0hnmdgcrwn70py1kiqvr10l42aw42xnlmdyg1sgsc";
};
buildInputs = optional stdenv.isDarwin [ CoreServices ];
patchPhase = optional stdenv.isDarwin ''
substituteInPlace premake5.lua \
--replace -mmacosx-version-min=10.4 -mmacosx-version-min=10.5
'';
buildPhase =
if stdenv.isDarwin then ''
make -f Bootstrap.mak osx
'' else ''
make -f Bootstrap.mak linux
'';
installPhase = ''
install -Dm755 bin/release/premake5 $out/bin/premake5
'';
meta = {
homepage = https://premake.github.io;
description = "A simple build configuration and project generation tool using lua";
license = stdenv.lib.licenses.bsd3;
platforms = platforms.darwin ++ platforms.linux;
};
}

View File

@ -6864,6 +6864,10 @@ with pkgs;
premake4 = callPackage ../development/tools/misc/premake { }; premake4 = callPackage ../development/tools/misc/premake { };
premake5 = callPackage ../development/tools/misc/premake/5.nix {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
premake = premake4; premake = premake4;
qtcreator = libsForQt5.callPackage ../development/qtcreator { }; qtcreator = libsForQt5.callPackage ../development/qtcreator { };