2021-01-23 12:26:19 +00:00
|
|
|
{lib, stdenv, fetchurl, unzip}:
|
2013-04-08 19:06:54 +00:00
|
|
|
|
2022-02-06 20:45:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "premake";
|
2013-04-08 19:06:54 +00:00
|
|
|
version = "3.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-02-06 20:45:05 +00:00
|
|
|
url = "mirror://sourceforge/sourceforge/premake/premake-src-${version}.zip";
|
2013-04-08 19:06:54 +00:00
|
|
|
sha256 = "b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5";
|
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2013-04-08 19:06:54 +00:00
|
|
|
|
|
|
|
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 19:06:54 +00:00
|
|
|
meta = {
|
2022-01-03 15:53:12 +00:00
|
|
|
homepage = "https://premake.github.io/";
|
2013-04-08 19:06:54 +00:00
|
|
|
description = "A simple build configuration and project generation tool using lua";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.unix;
|
2013-04-08 19:06:54 +00:00
|
|
|
};
|
|
|
|
}
|