2021-03-25 14:30:07 +00:00
|
|
|
{ lib, stdenv, fetchurl, cln, pkg-config, readline, gmp, python3 }:
|
2012-06-09 13:09:41 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-10-31 20:07:21 +00:00
|
|
|
name = "ginac-1.8.0";
|
2012-06-09 13:09:41 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-09-07 23:59:45 +00:00
|
|
|
url = "${meta.homepage}/${name}.tar.bz2";
|
2020-10-31 20:07:21 +00:00
|
|
|
sha256 = "0l9byzfxq3f9az5pcdldnl95ws8mpirkqky46f973mvxi5541d24";
|
2012-06-09 13:09:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cln ];
|
2013-09-07 23:59:45 +00:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
buildInputs = [ readline ] ++ lib.optional stdenv.isDarwin gmp;
|
2012-06-09 13:09:41 +00:00
|
|
|
|
2021-03-25 14:30:07 +00:00
|
|
|
nativeBuildInputs = [ pkg-config python3 ];
|
|
|
|
|
|
|
|
strictDeps = true;
|
2017-07-13 17:34:45 +00:00
|
|
|
|
|
|
|
preConfigure = "patchShebangs ginsh";
|
2012-06-09 13:09:41 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--disable-rpath" ];
|
2012-06-09 13:09:41 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2012-06-09 13:09:41 +00:00
|
|
|
description = "GiNaC is Not a CAS";
|
2021-01-26 00:33:42 +00:00
|
|
|
homepage = "https://www.ginac.de/";
|
2017-03-27 17:11:17 +00:00
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
2018-08-20 18:02:23 +00:00
|
|
|
license = licenses.gpl2;
|
2013-09-07 23:59:45 +00:00
|
|
|
platforms = platforms.all;
|
2012-06-09 13:09:41 +00:00
|
|
|
};
|
|
|
|
}
|