2012-02-22 20:29:42 +00:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
|
|
|
let baseName = "premake";
|
2013-04-08 20:06:54 +01:00
|
|
|
version = "4.3";
|
2012-02-22 20:29:42 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-04-08 20:06:54 +01:00
|
|
|
url = "mirror://sourceforge/${baseName}/${baseName}-${version}-src.zip";
|
|
|
|
sha256 = "1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn";
|
2012-02-22 20:29:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [unzip];
|
|
|
|
|
2013-04-08 20:06:54 +01:00
|
|
|
buildPhase = ''
|
|
|
|
make -C build/gmake.unix/
|
|
|
|
'';
|
|
|
|
|
2012-02-22 20:29:42 +00:00
|
|
|
installPhase = ''
|
2013-04-08 20:06:54 +01:00
|
|
|
install -Dm755 bin/release/premake4 $out/bin/premake4
|
2012-02-22 20:29:42 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://industriousone.com/premake;
|
|
|
|
description = "A simple build configuration and project generation tool using lua";
|
2012-02-22 21:14:53 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2012-02-22 20:29:42 +00:00
|
|
|
};
|
|
|
|
}
|