My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/tools/misc/premake/default.nix

33 lines
800 B

{ lib, stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
pname = "premake";
version = "4.3";
src = fetchurl {
url = "mirror://sourceforge/premake/premake-${version}-src.zip";
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;
meta = with lib; {
description = "A simple build configuration and project generation tool using lua";
homepage = "https://premake.github.io/";
license = lib.licenses.bsd3;
maintainers = [ maintainers.bjornfor ];
mainProgram = "premake4";
platforms = platforms.unix;
};
}