2495e3f88b
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
35 lines
818 B
Nix
35 lines
818 B
Nix
{ lib, 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 lib; {
|
|
homepage = "https://premake.github.io/";
|
|
description = "A simple build configuration and project generation tool using lua";
|
|
license = lib.licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.bjornfor ];
|
|
};
|
|
}
|