depot/third_party/nixpkgs/pkgs/development/tools/misc/premake/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
798 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; {
description = "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;
};
}