nixpkgs/pkgs/development/tools/misc/premake/3.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

29 lines
705 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 = "A simple build configuration and project generation tool using lua";
mainProgram = "premake";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
};
}