depot/third_party/nixpkgs/pkgs/development/tools/misc/premake/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

32 lines
770 B
Nix

{ 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; {
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 ];
};
}