about summary refs log tree commit diff
path: root/pkgs/development/tools/build-managers
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-03-19 04:58:21 +0000
committerOrivej Desh <orivej@gmx.fr>2017-03-19 04:58:21 +0000
commit3cb1faebc71b6ab74f489a71e91c6c05ff4d9870 (patch)
tree4908d0787f3f3c01d12c0af5b3962ffdfba8fafd /pkgs/development/tools/build-managers
parent0f4d515834ca8639daeab1982341d465e5778118 (diff)
downloadnixlib-3cb1faebc71b6ab74f489a71e91c6c05ff4d9870.tar
nixlib-3cb1faebc71b6ab74f489a71e91c6c05ff4d9870.tar.gz
nixlib-3cb1faebc71b6ab74f489a71e91c6c05ff4d9870.tar.bz2
nixlib-3cb1faebc71b6ab74f489a71e91c6c05ff4d9870.tar.lz
nixlib-3cb1faebc71b6ab74f489a71e91c6c05ff4d9870.tar.xz
nixlib-3cb1faebc71b6ab74f489a71e91c6c05ff4d9870.tar.zst
nixlib-3cb1faebc71b6ab74f489a71e91c6c05ff4d9870.zip
jam: 2.5 -> 2.6
Diffstat (limited to 'pkgs/development/tools/build-managers')
-rw-r--r--pkgs/development/tools/build-managers/jam/default.nix37
1 files changed, 20 insertions, 17 deletions
diff --git a/pkgs/development/tools/build-managers/jam/default.nix b/pkgs/development/tools/build-managers/jam/default.nix
index 18cbe7731c00..c0d152ee7a2f 100644
--- a/pkgs/development/tools/build-managers/jam/default.nix
+++ b/pkgs/development/tools/build-managers/jam/default.nix
@@ -1,29 +1,32 @@
-{stdenv, fetchurl, yacc}:
+{ stdenv, fetchurl, yacc }:
 
-let
-  bindir = if stdenv.system == "i686-linux" then "bin.linuxx86"
-    else if stdenv.system == "x86_64-linux" then "bin.linux"
-    else throw "Unsupported platform by now";
-in
+stdenv.mkDerivation rec {
+  name = "jam-2.6";
 
-stdenv.mkDerivation {
-  name = "jam-2.5";
   src = fetchurl {
-    url = ftp://ftp.perforce.com/jam/jam-2.5.tar;
-    sha256 = "04c6khd7gdkqkvx4h3nbz99lyz7waid4fd221hq5chcygyx1sj3i";
+    url = "https://swarm.workshop.perforce.com/projects/perforce_software-jam/download/main/${name}.tar";
+    sha256 = "0j4r7xcjz15ksnnpjw56qi99q4lpjmx097pkwwkl1hq3hqml1zhn";
   };
 
-  buildInputs = [ yacc ];
+  nativeBuildInputs = [ yacc ];
+
+  buildPhase = ''
+    make jam0
+    ./jam0 -j$NIX_BUILD_CORES -sBINDIR=$out/bin install
+  '';
 
   installPhase = ''
-    mkdir -p $out/bin
-    cp ${bindir}/jam $out/bin
+    mkdir -p $out/doc/jam
+    cp *.html $out/doc/jam
   '';
 
-  meta = {
-    homepage = http://public.perforce.com/wiki/Jam;
-    license = stdenv.lib.licenses.free;
+  enableParallelBuilding = true;
+
+  meta = with stdenv.lib; {
+    homepage = https://www.perforce.com/resources/documentation/jam;
+    license = licenses.free;
     description = "Just Another Make";
-    platforms = stdenv.lib.platforms.linux;
+    maintainers = with maintainers; [ orivej ];
+    platforms = platforms.unix;
   };
 }