sage: 6.1.1 -> 6.8

This commit is contained in:
Florent Becker
2015-09-22 09:01:33 +00:00
committed by Florent Becker
parent 0be672ced1
commit b860b106c5
4 changed files with 63 additions and 8 deletions
@@ -1,27 +1,32 @@
{ stdenv, fetchurl, m4, perl, gfortran, texLive, ffmpeg, tk
, imagemagick, liblapack
, imagemagick, liblapack, python, openssl, libpng
, which
}:
stdenv.mkDerivation rec {
name = "sage-6.1.1";
name = "sage-6.8";
src = fetchurl {
url = "mirror://sagemath/${name}.tar.gz";
sha256 = "0kbzs0l9q7y34jv3f8rd1c2mrjsjkdgaw6mfdwjlpg9g4gghmq5y";
sha256 = "102mrzzi215g1xn5zgcv501x9sghwg758jagx2jixvg1rj2jijj9";
};
buildInputs = [ m4 perl gfortran texLive ffmpeg tk imagemagick liblapack ];
buildInputs = [ m4 perl gfortran texLive ffmpeg tk imagemagick liblapack
python openssl libpng which];
patches = [ ./spkg-singular.patch ./spkg-python.patch ./spkg-git.patch ];
enableParallelBuilding = true;
preConfigure = ''
export SAGE_NUM_THREADS=$NIX_BUILD_CORES
sed -i 's/if ! [ -d "$HOME" ]/if [ -d "$HOME" ]/' src/bin/sage-env
'' + stdenv.lib.optionalString stdenv.isDarwin ''
sed -i "s/ld_version = try_run('ld -v')/ld_version = 'Apple'/" \
build/pkgs/atlas/configuration.py
export SAGE_ATLAS_ARCH=fast
mkdir -p $out/sageHome
export HOME=$out/sageHome
'';
installPhase = ''DESTDIR=$out make install'';
meta = {
homepage = "http://www.sagemath.org";
description = "A free open source mathematics software system";