Merge pull request #15939 from ChrisJefferson/fix-gap

gap : 4.4.12 -> 4.8.3

+17 -18
+1
lib/maintainers.nix
··· 75 chaoflow = "Florian Friesdorf <flo@chaoflow.net>"; 76 chattered = "Phil Scott <me@philscotted.com>"; 77 choochootrain = "Hurshal Patel <hurshal@imap.cc>"; 78 christopherpoole = "Christopher Mark Poole <mail@christopherpoole.net>"; 79 cleverca22 = "Michael Bishop <cleverca22@gmail.com>"; 80 cmcdragonkai = "Roger Qiu <roger.qiu@matrix.ai>";
··· 75 chaoflow = "Florian Friesdorf <flo@chaoflow.net>"; 76 chattered = "Phil Scott <me@philscotted.com>"; 77 choochootrain = "Hurshal Patel <hurshal@imap.cc>"; 78 + chrisjefferson = "Christopher Jefferson <chris@bubblescope.net>"; 79 christopherpoole = "Christopher Mark Poole <mail@christopherpoole.net>"; 80 cleverca22 = "Michael Bishop <cleverca22@gmail.com>"; 81 cmcdragonkai = "Roger Qiu <roger.qiu@matrix.ai>";
+16 -18
pkgs/applications/science/math/gap/default.nix
··· 1 - { stdenv, fetchurl, pari ? null }: 2 3 let 4 baseName = "gap"; 5 - version = "4r4p12"; 6 7 - pkgVer = "2012_01_12-10_47_UTC"; 8 - pkgSrc = fetchurl { 9 - url = "ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages-${pkgVer}.tar.bz2"; 10 - sha256 = "0z9ncy1m5gvv4llkclxd1vpcgpb0b81a2pfmnhzvw8x708frhmnb"; 11 - }; 12 in 13 14 stdenv.mkDerivation rec { 15 name = "${baseName}-${version}"; 16 17 src = fetchurl { 18 - url = "ftp://ftp.gap-system.org/pub/gap/gap4/tar.gz/${baseName}${version}.tar.gz"; 19 - sha256 = "0flap5lbkvpms3zznq1zwxyxyj0ax3fk7m24f3bvhvr37vyxnf40"; 20 }; 21 22 - buildInputs = [ pari ]; 23 - 24 installPhase = '' 25 mkdir -p "$out/bin" "$out/share/gap/" 26 27 cp -r . "$out/share/gap/build-dir" 28 29 - tar xf "${pkgSrc}" -C "$out/share/gap/build-dir/pkg" 30 - 31 - ${if pari != null then 32 - ''sed -e '2iexport PATH=$PATH:${pari}/bin' -i "$out/share/gap/build-dir/bin/gap.sh" '' 33 - else ""} 34 sed -e "/GAP_DIR=/aGAP_DIR='$out/share/gap/build-dir/'" -i "$out/share/gap/build-dir/bin/gap.sh" 35 36 ln -s "$out/share/gap/build-dir/bin/gap.sh" "$out/bin" ··· 41 maintainers = with maintainers; 42 [ 43 raskin 44 ]; 45 - platforms = platforms.linux; 46 license = licenses.gpl2; 47 homepage = http://gap-system.org/; 48 - broken = true; 49 }; 50 }
··· 1 + { stdenv, fetchurl, m4, gmp }: 2 3 let 4 baseName = "gap"; 5 + version = "4r8p3"; 6 7 + pkgVer = "2016_03_19-22_17"; 8 in 9 10 stdenv.mkDerivation rec { 11 name = "${baseName}-${version}"; 12 13 src = fetchurl { 14 + url = "ftp://ftp.gap-system.org/pub/gap/gap48/tar.gz/${baseName}${version}_${pkgVer}.tar.gz"; 15 + sha256 = "1rmb0lj43avv456sjwb7ia3y0wwk5shlqylpkdwnnqpjnvjbnzv6"; 16 }; 17 18 + configureFlags = [ "--with-gmp=system" ]; 19 + buildInputs = [ m4 gmp ]; 20 + 21 + postBuild = '' 22 + pushd pkg 23 + bash ../bin/BuildPackages.sh 24 + popd 25 + ''; 26 + 27 installPhase = '' 28 mkdir -p "$out/bin" "$out/share/gap/" 29 30 cp -r . "$out/share/gap/build-dir" 31 32 sed -e "/GAP_DIR=/aGAP_DIR='$out/share/gap/build-dir/'" -i "$out/share/gap/build-dir/bin/gap.sh" 33 34 ln -s "$out/share/gap/build-dir/bin/gap.sh" "$out/bin" ··· 39 maintainers = with maintainers; 40 [ 41 raskin 42 + chrisjefferson 43 ]; 44 + platforms = platforms.all; 45 license = licenses.gpl2; 46 homepage = http://gap-system.org/; 47 }; 48 }