depot/third_party/nixpkgs/pkgs/development/tools/build-managers/jam/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

45 lines
936 B
Nix

{ lib, stdenv, fetchurl, bison }:
stdenv.mkDerivation rec {
pname = "jam";
version = "2.6.1";
src = fetchurl {
url = "https://swarm.workshop.perforce.com/projects/perforce_software-jam/download/main/${pname}-${version}.tar";
sha256 = "19xkvkpycxfsncxvin6yqrql3x3z9ypc1j8kzls5k659q4kv5rmc";
};
nativeBuildInputs = [ bison ];
preConfigure = ''
unset AR
'';
buildPhase = ''
runHook preBuild
make jam0
runHook postBuild
'';
installPhase = ''
runHook preInstall
./jam0 -j$NIX_BUILD_CORES -sBINDIR=$out/bin install
mkdir -p $out/doc/jam
cp *.html $out/doc/jam
runHook postInstall
'';
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://www.perforce.com/resources/documentation/jam";
license = licenses.free;
description = "Just Another Make";
maintainers = with maintainers; [ orivej ];
platforms = platforms.unix;
};
}