2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl, unzip}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "premake";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "3.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-02-10 20:34:41 +00:00
|
|
|
url = "mirror://sourceforge/sourceforge/premake/premake-src-${version}.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5";
|
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 bin/premake $out/bin/premake
|
|
|
|
'';
|
|
|
|
|
|
|
|
premake_cmd = "premake";
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
|
|
|
meta = {
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://premake.github.io/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A simple build configuration and project generation tool using lua";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "premake";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|