nixpkgs/pkgs/applications/science/math/ginac/default.nix

29 lines
718 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cln, pkg-config, readline, gmp, python }:
stdenv.mkDerivation rec {
2020-10-31 20:07:21 +00:00
name = "ginac-1.8.0";
src = fetchurl {
url = "${meta.homepage}/${name}.tar.bz2";
2020-10-31 20:07:21 +00:00
sha256 = "0l9byzfxq3f9az5pcdldnl95ws8mpirkqky46f973mvxi5541d24";
};
propagatedBuildInputs = [ cln ];
2021-01-15 13:21:58 +00:00
buildInputs = [ readline ] ++ lib.optional stdenv.isDarwin gmp;
nativeBuildInputs = [ pkg-config python ];
2017-07-13 18:34:45 +01:00
preConfigure = "patchShebangs ginsh";
2018-07-25 22:44:21 +01:00
configureFlags = [ "--disable-rpath" ];
meta = with lib; {
description = "GiNaC is Not a CAS";
homepage = "https://www.ginac.de/";
maintainers = with maintainers; [ lovek323 ];
2018-08-20 19:02:23 +01:00
license = licenses.gpl2;
platforms = platforms.all;
};
}