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

37 lines
814 B
Nix
Raw Normal View History

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