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
|
|
|
};
|
|
|
|
|
2014-01-02 16:53:57 +00:00
|
|
|
buildInputs = [ 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
|
|
|
'';
|
|
|
|
|
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;
|
2013-05-20 17:33:18 +00:00
|
|
|
platforms = platforms.linux;
|
2014-01-02 16:53:57 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2012-02-22 20:29:42 +00:00
|
|
|
};
|
|
|
|
}
|