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 = "4.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-02-10 20:34:41 +00:00
|
|
|
url = "mirror://sourceforge/premake/premake-${version}-src.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make -C build/gmake.unix/
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 bin/release/premake4 $out/bin/premake4
|
|
|
|
'';
|
|
|
|
|
|
|
|
premake_cmd = "premake4";
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A simple build configuration and project generation tool using lua";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://premake.github.io/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "premake4";
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|