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