2010-08-09 23:58:21 +02:00
|
|
|
{stdenv, fetchurl, perl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yacas-1.2.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://yacas.sourceforge.net/backups/${name}.tar.gz";
|
|
|
|
sha256 = "1dmafm3w0lm5w211nwkfzaid1rvvmgskz7k4500pjhgdczi5sd78";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Perl is only for the documentation
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ perl ];
|
2010-08-09 23:58:21 +02:00
|
|
|
|
|
|
|
patches = [ ./gcc43.patch ];
|
|
|
|
|
2010-08-11 22:11:12 +02:00
|
|
|
crossAttrs = {
|
|
|
|
# Trick to get host-built programs needed for the cross-build.
|
|
|
|
# If yacas had proper makefiles, this would not be needed.
|
|
|
|
preConfigure = ''
|
|
|
|
./configure
|
|
|
|
pushd src
|
|
|
|
make mkfastprimes
|
|
|
|
cp mkfastprimes ../..
|
|
|
|
popd
|
|
|
|
pushd manmake
|
|
|
|
make manripper removeduplicates
|
|
|
|
cp manripper removeduplicates ../..
|
|
|
|
popd
|
|
|
|
'';
|
|
|
|
preBuild = ''
|
|
|
|
cp ../mkfastprimes ../manripper ../removeduplicates src
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2010-08-09 23:58:21 +02:00
|
|
|
meta = {
|
|
|
|
description = "Easy to use, general purpose Computer Algebra System";
|
|
|
|
homepage = http://yacas.sourceforge.net/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-08-09 23:58:21 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; all;
|
|
|
|
};
|
|
|
|
}
|