1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/science/math/sage/default.nix

36 lines
927 B
Nix
Raw Normal View History

2014-04-22 20:10:36 +01:00
{ stdenv, fetchurl, m4, perl, gfortran, texLive, ffmpeg, tk
2015-09-18 14:56:05 +01:00
, imagemagick, liblapack, python, openssl, libpng
, which
2014-04-22 20:10:36 +01:00
}:
stdenv.mkDerivation rec {
2015-09-18 14:56:05 +01:00
name = "sage-6.8";
2014-04-22 20:10:36 +01:00
src = fetchurl {
2014-11-03 17:21:37 +00:00
url = "mirror://sagemath/${name}.tar.gz";
2015-09-18 14:56:05 +01:00
sha256 = "102mrzzi215g1xn5zgcv501x9sghwg758jagx2jixvg1rj2jijj9";
2014-04-22 20:10:36 +01:00
};
2015-09-18 14:56:05 +01:00
buildInputs = [ m4 perl gfortran texLive ffmpeg tk imagemagick liblapack
python openssl libpng which];
patches = [ ./spkg-singular.patch ./spkg-python.patch ./spkg-git.patch ];
2014-04-22 20:10:36 +01:00
enableParallelBuilding = true;
preConfigure = ''
export SAGE_NUM_THREADS=$NIX_BUILD_CORES
2015-09-18 14:56:05 +01:00
export SAGE_ATLAS_ARCH=fast
mkdir -p $out/sageHome
export HOME=$out/sageHome
2014-04-22 20:10:36 +01:00
'';
2015-09-18 14:56:05 +01:00
installPhase = ''DESTDIR=$out make install'';
2014-04-22 20:10:36 +01:00
meta = {
homepage = "http://www.sagemath.org";
description = "A free open source mathematics software system";
license = stdenv.lib.licenses.gpl2Plus;
2014-04-22 20:10:36 +01:00
};
}