2014-04-22 20:10:36 +01:00
|
|
|
{ stdenv, fetchurl, m4, perl, gfortran, texLive, ffmpeg, tk
|
|
|
|
, imagemagick, liblapack
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "sage-6.1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://mirrors.xmission.com/sage/src/sage-6.1.1.tar.gz";
|
|
|
|
sha256 = "0kbzs0l9q7y34jv3f8rd1c2mrjsjkdgaw6mfdwjlpg9g4gghmq5y";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ m4 perl gfortran texLive ffmpeg tk imagemagick liblapack ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export SAGE_NUM_THREADS=$NIX_BUILD_CORES
|
|
|
|
sed -i 's/if ! [ -d "$HOME" ]/if [ -d "$HOME" ]/' src/bin/sage-env
|
2014-04-29 19:40:28 +01:00
|
|
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
2014-04-22 20:10:36 +01:00
|
|
|
sed -i "s/ld_version = try_run('ld -v')/ld_version = 'Apple'/" \
|
|
|
|
build/pkgs/atlas/configuration.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.scilab.org/;
|
|
|
|
description = "Scientific software package for numerical computations (Matlab lookalike)";
|
|
|
|
# see http://www.scilab.org/legal
|
|
|
|
license = "SciLab";
|
|
|
|
};
|
|
|
|
}
|