mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
fd78464de9
Adds a configure phase for packages using premake. premakeConfigurePhase runs the correct premake version for the premake you are using (see premake_cmd).
36 lines
832 B
Nix
36 lines
832 B
Nix
{ stdenv, fetchurl, unzip }:
|
|
|
|
let baseName = "premake";
|
|
version = "4.3";
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "${baseName}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/${baseName}/${baseName}-${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 stdenv.lib; {
|
|
homepage = http://industriousone.com/premake;
|
|
description = "A simple build configuration and project generation tool using lua";
|
|
license = stdenv.lib.licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|