2010-08-09 22:58:21 +01: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 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-07 22:51:21 +00:00
|
|
|
|
2010-08-09 22:58:21 +01:00
|
|
|
# Perl is only for the documentation
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2010-08-09 22:58:21 +01:00
|
|
|
|
|
|
|
patches = [ ./gcc43.patch ];
|
|
|
|
|
2010-08-11 21:11:12 +01: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 22:51:21 +00:00
|
|
|
meta = {
|
2010-08-09 22:58:21 +01:00
|
|
|
description = "Easy to use, general purpose Computer Algebra System";
|
|
|
|
homepage = http://yacas.sourceforge.net/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-08-09 22:58:21 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2016-09-01 18:39:33 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2010-08-09 22:58:21 +01:00
|
|
|
};
|
|
|
|
}
|