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