summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers/jam/default.nix
blob: 18cbe7731c001b3f5dcdd23c58c0d2d010407737 (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
{stdenv, fetchurl, yacc}:

let
  bindir = if stdenv.system == "i686-linux" then "bin.linuxx86"
    else if stdenv.system == "x86_64-linux" then "bin.linux"
    else throw "Unsupported platform by now";
in

stdenv.mkDerivation {
  name = "jam-2.5";
  src = fetchurl {
    url = ftp://ftp.perforce.com/jam/jam-2.5.tar;
    sha256 = "04c6khd7gdkqkvx4h3nbz99lyz7waid4fd221hq5chcygyx1sj3i";
  };

  buildInputs = [ yacc ];

  installPhase = ''
    mkdir -p $out/bin
    cp ${bindir}/jam $out/bin
  '';

  meta = {
    homepage = http://public.perforce.com/wiki/Jam;
    license = stdenv.lib.licenses.free;
    description = "Just Another Make";
    platforms = stdenv.lib.platforms.linux;
  };
}