summary refs log tree commit diff
path: root/pkgs/development/tools/misc/premake/3.nix
blob: a630c0ced9e76e127b3069b6b7ef364de4ee2038 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{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;
  };
}