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

37 lines
810 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";
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 = "0j4r7xcjz15ksnnpjw56qi99q4lpjmx097pkwwkl1hq3hqml1zhn";
};
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;
license = licenses.free;
description = "Just Another Make";
2017-03-19 05:58:21 +01:00
maintainers = with maintainers; [ orivej ];
platforms = platforms.unix;
};
}