2014-01-02 16:53:57 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2012-02-22 20:29:42 +00:00
|
|
|
|
|
|
|
let baseName = "premake";
|
2013-04-08 19:06:54 +00:00
|
|
|
version = "4.3";
|
2012-02-22 20:29:42 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-04-08 19:06:54 +00:00
|
|
|
url = "mirror://sourceforge/${baseName}/${baseName}-${version}-src.zip";
|
|
|
|
sha256 = "1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn";
|
2012-02-22 20:29:42 +00:00
|
|
|
};
|
|
|
|
|
2018-11-27 00:00:08 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2012-02-22 20:29:42 +00:00
|
|
|
|
2013-04-08 19:06:54 +00:00
|
|
|
buildPhase = ''
|
|
|
|
make -C build/gmake.unix/
|
|
|
|
'';
|
|
|
|
|
2012-02-22 20:29:42 +00:00
|
|
|
installPhase = ''
|
2013-04-08 19:06:54 +00:00
|
|
|
install -Dm755 bin/release/premake4 $out/bin/premake4
|
2012-02-22 20:29:42 +00:00
|
|
|
'';
|
|
|
|
|
2018-11-27 00:00:08 +00:00
|
|
|
premake_cmd = "premake4";
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2013-05-20 17:33:18 +00:00
|
|
|
meta = with stdenv.lib; {
|
2012-02-22 20:29:42 +00:00
|
|
|
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;
|
2018-11-27 00:00:08 +00:00
|
|
|
platforms = platforms.unix;
|
2014-01-02 16:53:57 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2012-02-22 20:29:42 +00:00
|
|
|
};
|
|
|
|
}
|