Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{lib, stdenv, fetchurl, unzip}:
2
3stdenv.mkDerivation rec {
4 pname = "premake";
5 version = "3.7";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/sourceforge/premake/premake-src-${version}.zip";
9 sha256 = "b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5";
10 };
11
12 nativeBuildInputs = [ unzip ];
13
14 installPhase = ''
15 install -Dm755 bin/premake $out/bin/premake
16 '';
17
18 premake_cmd = "premake";
19 setupHook = ./setup-hook.sh;
20
21 meta = {
22 homepage = "https://premake.github.io/";
23 description = "A simple build configuration and project generation tool using lua";
24 license = lib.licenses.bsd3;
25 platforms = lib.platforms.unix;
26 };
27}