2018-05-10 07:10:09 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, perl
|
|
|
|
, enableGui ? false, qt5
|
|
|
|
, enableJupyter ? false, boost, jsoncpp, openssl, zmqpp
|
|
|
|
}:
|
2010-08-09 22:58:21 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "yacas";
|
2020-07-08 19:25:49 +01:00
|
|
|
version = "1.9.1";
|
2010-08-09 22:58:21 +01:00
|
|
|
|
2018-05-10 07:10:09 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grzegorzmazur";
|
|
|
|
repo = "yacas";
|
|
|
|
rev = "v${version}";
|
2020-07-08 19:25:49 +01:00
|
|
|
sha256 = "0dqgqvsb6ggr8jb3ngf0jwfkn6xwj2knhmvqyzx3amc74yd3ckqx";
|
2010-08-09 22:58:21 +01:00
|
|
|
};
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-07 22:51:21 +00:00
|
|
|
|
2018-05-10 07:10:09 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_CYACAS_GUI=${if enableGui then "ON" else "OFF"}"
|
|
|
|
"-DENABLE_CYACAS_KERNEL=${if enableJupyter then "ON" else "OFF"}"
|
|
|
|
];
|
2010-08-09 22:58:21 +01:00
|
|
|
|
2018-05-10 07:10:09 +01:00
|
|
|
# Perl is only for the documentation
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [
|
|
|
|
] ++ stdenv.lib.optionals enableGui (with qt5; [ qtbase qtwebkit ])
|
|
|
|
++ stdenv.lib.optionals enableJupyter [ boost jsoncpp openssl zmqpp ]
|
|
|
|
;
|
2010-08-11 21:11:12 +01:00
|
|
|
|
2016-02-07 22:51:21 +00:00
|
|
|
meta = {
|
2018-05-10 07:10:09 +01:00
|
|
|
description = "Easy to use, general purpose Computer Algebra System";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.yacas.org/";
|
2018-05-10 07:10:09 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
broken = enableGui || enableJupyter;
|
2010-08-09 22:58:21 +01:00
|
|
|
};
|
|
|
|
}
|