Author: raskin Date: Thu Apr 5 04:46:11 2012 New Revision: 33601 URL: https://nixos.org/websvn/nix/?rev=33601&sc=1
Log: Add packages to GAP Modified: nixpkgs/trunk/pkgs/applications/science/math/gap/default.nix Modified: nixpkgs/trunk/pkgs/applications/science/math/gap/default.nix ============================================================================== --- nixpkgs/trunk/pkgs/applications/science/math/gap/default.nix Wed Apr 4 23:00:35 2012 (r33600) +++ nixpkgs/trunk/pkgs/applications/science/math/gap/default.nix Thu Apr 5 04:46:11 2012 (r33601) @@ -1,5 +1,5 @@ x@{builderDefsPackage - + , pari ? null , ...}: builderDefsPackage (a : @@ -15,6 +15,9 @@ name="${baseName}-${version}"; url="ftp://ftp.gap-system.org/pub/gap/gap4/tar.gz/${baseName}${version}.tar.gz"; hash="0flap5lbkvpms3zznq1zwxyxyj0ax3fk7m24f3bvhvr37vyxnf40"; + pkgVer="2012_01_12-10_47_UTC"; + pkgURL="ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages-${pkgVer}.tar.bz2"; + pkgHash="0z9ncy1m5gvv4llkclxd1vpcgpb0b81a2pfmnhzvw8x708frhmnb"; }; in rec { @@ -23,6 +26,11 @@ sha256 = sourceInfo.hash; }; + pkgSrc = a.fetchurl { + url=sourceInfo.pkgURL; + sha256=sourceInfo.pkgHash; + }; + inherit (sourceInfo) name version; inherit buildInputs; @@ -34,6 +42,11 @@ cp -r . "$out/share/gap/build-dir" + tar xf "${pkgSrc}" -C "$out/share/gap/build-dir/pkg" + + ${if a.pari != null then + ''sed -e '2iexport PATH=$PATH:${pari}/bin' -i "$out/share/gap/build-dir/bin/gap.sh" '' + else ""} sed -e "/GAP_DIR=/aGAP_DIR='$out/share/gap/build-dir/'" -i "$out/share/gap/build-dir/bin/gap.sh" ln -s "$out/share/gap/build-dir/bin/gap.sh" "$out/bin" @@ -47,7 +60,7 @@ ]; platforms = with a.lib.platforms; linux; - license = "GPLv2+"; + license = "GPLv2"; homepage = "http://gap-system.org/"; }; }) x _______________________________________________ nix-commits mailing list nix-comm...@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-commits