2015-09-07 10:37:18 +01:00
|
|
|
{stdenv, fetchurl, yacc}:
|
2011-03-30 19:45:11 +01:00
|
|
|
|
2012-02-25 16:47:21 +00:00
|
|
|
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
|
|
|
|
|
2011-03-30 19:45:11 +01:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "jam-2.5";
|
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.perforce.com/jam/jam-2.5.tar;
|
|
|
|
sha256 = "04c6khd7gdkqkvx4h3nbz99lyz7waid4fd221hq5chcygyx1sj3i";
|
|
|
|
};
|
|
|
|
|
2015-09-07 10:37:18 +01:00
|
|
|
buildInputs = [ yacc ];
|
|
|
|
|
2011-03-30 19:45:11 +01:00
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2012-02-25 16:47:21 +00:00
|
|
|
cp ${bindir}/jam $out/bin
|
2011-03-30 19:45:11 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://public.perforce.com/wiki/Jam;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = stdenv.lib.licenses.free;
|
2011-03-30 19:45:11 +01:00
|
|
|
description = "Just Another Make";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-03-30 19:45:11 +01:00
|
|
|
};
|
|
|
|
}
|