2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, yacc }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jam-2.6.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://swarm.workshop.perforce.com/projects/perforce_software-jam/download/main/${name}.tar";
|
|
|
|
sha256 = "19xkvkpycxfsncxvin6yqrql3x3z9ypc1j8kzls5k659q4kv5rmc";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ yacc ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
unset AR
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make jam0
|
|
|
|
./jam0 -j$NIX_BUILD_CORES -sBINDIR=$out/bin install
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/doc/jam
|
|
|
|
cp *.html $out/doc/jam
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.perforce.com/resources/documentation/jam";
|
|
|
|
license = licenses.free;
|
|
|
|
description = "Just Another Make";
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|