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