2017-03-19 04:58:21 +00:00
|
|
|
{ stdenv, fetchurl, yacc }:
|
2011-03-30 19:45:11 +01:00
|
|
|
|
2017-03-19 04:58:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-09-26 23:14:19 +01:00
|
|
|
name = "jam-2.6.1";
|
2012-02-25 16:47:21 +00:00
|
|
|
|
2011-03-30 19:45:11 +01:00
|
|
|
src = fetchurl {
|
2017-03-19 04:58:21 +00:00
|
|
|
url = "https://swarm.workshop.perforce.com/projects/perforce_software-jam/download/main/${name}.tar";
|
2019-09-26 23:14:19 +01:00
|
|
|
sha256 = "19xkvkpycxfsncxvin6yqrql3x3z9ypc1j8kzls5k659q4kv5rmc";
|
2011-03-30 19:45:11 +01:00
|
|
|
};
|
|
|
|
|
2017-03-19 04:58:21 +00:00
|
|
|
nativeBuildInputs = [ yacc ];
|
|
|
|
|
2017-07-23 01:36:55 +01:00
|
|
|
preConfigure = ''
|
|
|
|
unset AR
|
|
|
|
'';
|
|
|
|
|
2017-03-19 04:58:21 +00:00
|
|
|
buildPhase = ''
|
|
|
|
make jam0
|
|
|
|
./jam0 -j$NIX_BUILD_CORES -sBINDIR=$out/bin install
|
|
|
|
'';
|
2015-09-07 10:37:18 +01:00
|
|
|
|
2011-03-30 19:45:11 +01:00
|
|
|
installPhase = ''
|
2017-03-19 04:58:21 +00:00
|
|
|
mkdir -p $out/doc/jam
|
|
|
|
cp *.html $out/doc/jam
|
2011-03-30 19:45:11 +01:00
|
|
|
'';
|
|
|
|
|
2017-03-19 04:58:21 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://www.perforce.com/resources/documentation/jam;
|
|
|
|
license = licenses.free;
|
2011-03-30 19:45:11 +01:00
|
|
|
description = "Just Another Make";
|
2017-03-19 04:58:21 +00:00
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.unix;
|
2011-03-30 19:45:11 +01:00
|
|
|
};
|
|
|
|
}
|