1{
2 lib,
3 stdenv,
4 fetchurl,
5 unzip,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "premake";
10 version = "4.3";
11
12 src = fetchurl {
13 url = "mirror://sourceforge/premake/premake-${version}-src.zip";
14 sha256 = "1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn";
15 };
16
17 nativeBuildInputs = [ unzip ];
18
19 buildPhase = ''
20 make -C build/gmake.unix/
21 '';
22
23 installPhase = ''
24 install -Dm755 bin/release/premake4 $out/bin/premake4
25 '';
26
27 premake_cmd = "premake4";
28 setupHook = ./setup-hook.sh;
29
30 meta = with lib; {
31 description = "Simple build configuration and project generation tool using lua";
32 homepage = "https://premake.github.io/";
33 license = lib.licenses.bsd3;
34 maintainers = [ maintainers.bjornfor ];
35 mainProgram = "premake4";
36 platforms = platforms.unix;
37 };
38}