2021-01-17 00:15:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, perl
|
2020-04-24 23:36:52 +00:00
|
|
|
, enableGui ? false, qt5
|
|
|
|
, enableJupyter ? false, boost, jsoncpp, openssl, zmqpp
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yacas";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "1.9.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grzegorzmazur";
|
|
|
|
repo = "yacas";
|
|
|
|
rev = "v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "0dqgqvsb6ggr8jb3ngf0jwfkn6xwj2knhmvqyzx3amc74yd3ckqx";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DENABLE_CYACAS_GUI=${if enableGui then "ON" else "OFF"}"
|
|
|
|
"-DENABLE_CYACAS_KERNEL=${if enableJupyter then "ON" else "OFF"}"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Perl is only for the documentation
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [
|
2021-01-17 00:15:33 +00:00
|
|
|
] ++ lib.optionals enableGui (with qt5; [ qtbase qtwebkit ])
|
|
|
|
++ lib.optionals enableJupyter [ boost jsoncpp openssl zmqpp ]
|
2020-04-24 23:36:52 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Easy to use, general purpose Computer Algebra System";
|
|
|
|
homepage = "http://www.yacas.org/";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
broken = enableGui || enableJupyter;
|
|
|
|
};
|
|
|
|
}
|