nixpkgs/pkgs/development/tools/build-managers/jam/default.nix

37 lines
814 B
Nix
Raw Normal View History

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