![cmfwyp](/assets/img/avatar_default.png)
The Sage derivation had texLive, the old TeX Live packaging which is now marked as broken, as a build input. This replaces it by the current TeX Live packaging. However, the build remains broken. One of the problems can be solved by patching the hashbangs at the beginning of build scripts, but the build still gets stuck while building ncurses.
39 lines
1,005 B
Nix
39 lines
1,005 B
Nix
{ stdenv, fetchurl, m4, perl, gfortran, texlive, ffmpeg, tk
|
|
, imagemagick, liblapack, python, openssl, libpng
|
|
, which
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "sage-6.8";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sagemath/${name}.tar.gz";
|
|
sha256 = "102mrzzi215g1xn5zgcv501x9sghwg758jagx2jixvg1rj2jijj9";
|
|
};
|
|
|
|
buildInputs = [ m4 perl gfortran texlive.combined.scheme-basic 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
|
|
export SAGE_ATLAS_ARCH=fast
|
|
mkdir -p $out/sageHome
|
|
export HOME=$out/sageHome
|
|
'';
|
|
|
|
preBuild = "patchShebangs build";
|
|
|
|
installPhase = ''DESTDIR=$out make install'';
|
|
|
|
meta = {
|
|
broken = true;
|
|
homepage = "http://www.sagemath.org";
|
|
description = "A free open source mathematics software system";
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
};
|
|
}
|