1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 09:31:01 +00:00
nixpkgs/pkgs/development/tools/misc/premake/3.nix
Matthew Bauer a27c51f71f premake3: use premake3 -> premake
premake3 only has the "premake" executable. This is a little confusing
because premake4 and premake5 both have the version suffix.

Fixes #51744
2018-12-08 14:47:13 -06:00

31 lines
726 B
Nix

{stdenv, fetchurl, unzip}:
let baseName = "premake";
version = "3.7";
in
stdenv.mkDerivation {
name = "${baseName}-${version}";
src = fetchurl {
url = "mirror://sourceforge/sourceforge/premake/${baseName}-src-${version}.zip";
sha256 = "b59841a519e75d5b6566848a2c5be2f91455bf0cc6ae4d688fcbd4c40db934d5";
};
buildInputs = [unzip];
installPhase = ''
install -Dm755 bin/premake $out/bin/premake
'';
premake_cmd = "premake";
setupHook = ./setup-hook.sh;
meta = {
homepage = http://industriousone.com/premake;
description = "A simple build configuration and project generation tool using lua";
license = stdenv.lib.licenses.bsd3;
platforms = stdenv.lib.platforms.unix;
};
}