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

28 lines
703 B
Nix

{lib, stdenv, fetchurl, unzip}:
stdenv.mkDerivation rec {
pname = "premake";
version = "3.7";
src = fetchurl {
url = "mirror://sourceforge/sourceforge/premake/premake-src-${version}.zip";
sha256 = "b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5";
};
nativeBuildInputs = [ unzip ];
installPhase = ''
install -Dm755 bin/premake $out/bin/premake
'';
premake_cmd = "premake";
setupHook = ./setup-hook.sh;
meta = {
homepage = "https://premake.github.io/";
description = "Simple build configuration and project generation tool using lua";
mainProgram = "premake";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
};
}