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";
|
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-07 23:51:21 +01:00
|
|
|
|
2010-08-09 23:58:21 +02:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2016-02-07 23:51:21 +01:00
|
|
|
meta = {
|
2010-08-09 23:58:21 +02:00
|
|
|
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];
|
2016-09-01 19:39:33 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2010-08-09 23:58:21 +02:00
|
|
|
};
|
|
|
|
}
|