1{stdenv, fetchurl, yacc}:
2
3let
4 bindir = if stdenv.system == "i686-linux" then "bin.linuxx86"
5 else if stdenv.system == "x86_64-linux" then "bin.linux"
6 else throw "Unsupported platform by now";
7in
8
9stdenv.mkDerivation {
10 name = "jam-2.5";
11 src = fetchurl {
12 url = ftp://ftp.perforce.com/jam/jam-2.5.tar;
13 sha256 = "04c6khd7gdkqkvx4h3nbz99lyz7waid4fd221hq5chcygyx1sj3i";
14 };
15
16 buildInputs = [ yacc ];
17
18 installPhase = ''
19 mkdir -p $out/bin
20 cp ${bindir}/jam $out/bin
21 '';
22
23 meta = {
24 homepage = http://public.perforce.com/wiki/Jam;
25 license = stdenv.lib.licenses.free;
26 description = "Just Another Make";
27 };
28}