3
0
Fork 0
forked from mirrors/nixpkgs

sage: fix build

closes #17842
This commit is contained in:
Robin Gloster 2016-08-29 12:46:51 +00:00
parent b981fe2095
commit 005a147f92
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -7,7 +7,7 @@ stdenv.mkDerivation rec {
name = "sage-6.8";
src = fetchurl {
url = "mirror://sagemath/${name}.tar.gz";
url = "http://old.files.sagemath.org/src-old/${name}.tar.gz";
sha256 = "102mrzzi215g1xn5zgcv501x9sghwg758jagx2jixvg1rj2jijj9";
};
@ -18,11 +18,14 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
hardeningDisable = [ "format" ];
preConfigure = ''
export SAGE_NUM_THREADS=$NIX_BUILD_CORES
export SAGE_ATLAS_ARCH=fast
mkdir -p $out/sageHome
export HOME=$out/sageHome
export CPPFLAGS="-P"
'';
preBuild = "patchShebangs build";
@ -30,7 +33,6 @@ stdenv.mkDerivation rec {
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;