2013-04-08 20:06:54 +01:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
|
|
|
let baseName = "premake";
|
|
|
|
version = "3.7";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-02-28 12:07:42 +00:00
|
|
|
url = "mirror://sourceforge/sourceforge/premake/${baseName}-src-${version}.zip";
|
2013-04-08 20:06:54 +01:00
|
|
|
sha256 = "b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [unzip];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 bin/premake $out/bin/premake
|
|
|
|
'';
|
|
|
|
|
2018-12-03 01:51:27 +00:00
|
|
|
premake_cmd = "premake";
|
2018-11-27 00:00:08 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2013-04-08 20:06:54 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://industriousone.com/premake;
|
|
|
|
description = "A simple build configuration and project generation tool using lua";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-04-08 20:06:54 +01:00
|
|
|
};
|
|
|
|
}
|