jam: 2.5 -> 2.6

This commit is contained in:
Orivej Desh 2017-03-19 04:58:21 +00:00
parent 0f4d515834
commit 3cb1faebc7
1 changed files with 21 additions and 18 deletions

View File

@ -1,29 +1,32 @@
{stdenv, fetchurl, yacc}: { stdenv, fetchurl, yacc }:
let stdenv.mkDerivation rec {
bindir = if stdenv.system == "i686-linux" then "bin.linuxx86" name = "jam-2.6";
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 { src = fetchurl {
url = ftp://ftp.perforce.com/jam/jam-2.5.tar; url = "https://swarm.workshop.perforce.com/projects/perforce_software-jam/download/main/${name}.tar";
sha256 = "04c6khd7gdkqkvx4h3nbz99lyz7waid4fd221hq5chcygyx1sj3i"; sha256 = "0j4r7xcjz15ksnnpjw56qi99q4lpjmx097pkwwkl1hq3hqml1zhn";
}; };
buildInputs = [ yacc ]; nativeBuildInputs = [ yacc ];
installPhase = '' buildPhase = ''
mkdir -p $out/bin make jam0
cp ${bindir}/jam $out/bin ./jam0 -j$NIX_BUILD_CORES -sBINDIR=$out/bin install
''; '';
meta = { installPhase = ''
homepage = http://public.perforce.com/wiki/Jam; mkdir -p $out/doc/jam
license = stdenv.lib.licenses.free; cp *.html $out/doc/jam
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = https://www.perforce.com/resources/documentation/jam;
license = licenses.free;
description = "Just Another Make"; description = "Just Another Make";
platforms = stdenv.lib.platforms.linux; maintainers = with maintainers; [ orivej ];
platforms = platforms.unix;
}; };
} }