nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 35 lines 832 B view raw
1{ stdenv, fetchurl, unzip }: 2 3let baseName = "premake"; 4 version = "4.3"; 5in 6 7stdenv.mkDerivation { 8 name = "${baseName}-${version}"; 9 10 src = fetchurl { 11 url = "mirror://sourceforge/${baseName}/${baseName}-${version}-src.zip"; 12 sha256 = "1017rd0wsjfyq2jvpjjhpszaa7kmig6q1nimw76qx3cjz2868lrn"; 13 }; 14 15 nativeBuildInputs = [ unzip ]; 16 17 buildPhase = '' 18 make -C build/gmake.unix/ 19 ''; 20 21 installPhase = '' 22 install -Dm755 bin/release/premake4 $out/bin/premake4 23 ''; 24 25 premake_cmd = "premake4"; 26 setupHook = ./setup-hook.sh; 27 28 meta = with stdenv.lib; { 29 homepage = http://industriousone.com/premake; 30 description = "A simple build configuration and project generation tool using lua"; 31 license = stdenv.lib.licenses.bsd3; 32 platforms = platforms.unix; 33 maintainers = [ maintainers.bjornfor ]; 34 }; 35}