ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
30 lines
719 B
Nix
30 lines
719 B
Nix
{lib, stdenv, fetchurl, unzip}:
|
|
|
|
let baseName = "premake";
|
|
version = "3.7";
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "${baseName}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/sourceforge/premake/${baseName}-src-${version}.zip";
|
|
sha256 = "b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5";
|
|
};
|
|
|
|
buildInputs = [unzip];
|
|
|
|
installPhase = ''
|
|
install -Dm755 bin/premake $out/bin/premake
|
|
'';
|
|
|
|
premake_cmd = "premake";
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
meta = {
|
|
homepage = "http://industriousone.com/premake";
|
|
description = "A simple build configuration and project generation tool using lua";
|
|
license = lib.licenses.bsd3;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|