2017-03-13 08:34:55 +01:00
|
|
|
{ stdenv, fetchurl, m4, perl, gfortran, texlive, ffmpeg, tk, gnused_422
|
|
|
|
, imagemagick, liblapack, python, openssl, libpng
|
2015-09-18 15:56:05 +02:00
|
|
|
, which
|
2014-04-22 21:10:36 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-18 15:56:05 +02:00
|
|
|
name = "sage-6.8";
|
2014-04-22 21:10:36 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-08-29 14:46:51 +02:00
|
|
|
url = "http://old.files.sagemath.org/src-old/${name}.tar.gz";
|
2015-09-18 15:56:05 +02:00
|
|
|
sha256 = "102mrzzi215g1xn5zgcv501x9sghwg758jagx2jixvg1rj2jijj9";
|
2017-03-13 08:34:55 +01:00
|
|
|
|
2014-04-22 21:10:36 +02:00
|
|
|
};
|
|
|
|
|
2017-03-13 08:34:55 +01:00
|
|
|
buildInputs = [ m4 perl gfortran texlive.combined.scheme-basic ffmpeg gnused_422 tk imagemagick liblapack
|
|
|
|
python openssl libpng which ];
|
2015-09-18 15:56:05 +02:00
|
|
|
|
|
|
|
patches = [ ./spkg-singular.patch ./spkg-python.patch ./spkg-git.patch ];
|
2014-04-22 21:10:36 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-08-29 14:46:51 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2014-04-22 21:10:36 +02:00
|
|
|
preConfigure = ''
|
|
|
|
export SAGE_NUM_THREADS=$NIX_BUILD_CORES
|
2015-09-18 15:56:05 +02:00
|
|
|
export SAGE_ATLAS_ARCH=fast
|
|
|
|
mkdir -p $out/sageHome
|
|
|
|
export HOME=$out/sageHome
|
2016-08-29 14:46:51 +02:00
|
|
|
export CPPFLAGS="-P"
|
2014-04-22 21:10:36 +02:00
|
|
|
'';
|
|
|
|
|
2016-08-08 04:01:39 +02:00
|
|
|
preBuild = "patchShebangs build";
|
|
|
|
|
2015-09-18 15:56:05 +02:00
|
|
|
installPhase = ''DESTDIR=$out make install'';
|
|
|
|
|
2014-04-22 21:10:36 +02:00
|
|
|
meta = {
|
2014-11-02 20:55:02 +01:00
|
|
|
homepage = "http://www.sagemath.org";
|
|
|
|
description = "A free open source mathematics software system";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-03-30 11:35:36 +02:00
|
|
|
broken = true;
|
2014-04-22 21:10:36 +02:00
|
|
|
};
|
|
|
|
}
|