2021-01-15 13:21:58 +00:00
|
|
|
{lib, stdenv, fetchurl, gmp, mpir, cddlib}:
|
2016-10-10 18:35:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gfan";
|
2018-03-08 15:52:17 +00:00
|
|
|
version = "0.6.2";
|
2017-08-30 16:19:00 +00:00
|
|
|
|
2016-10-10 18:35:32 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://home.math.au.dk/jensen/software/gfan/gfan${version}.tar.gz";
|
2018-03-08 15:52:17 +00:00
|
|
|
sha256 = "02pihqb1lb76a0xbfwjzs1cd6ay3ldfxsm8dvsbl6qs3vkjxax56";
|
2016-10-10 18:35:32 +00:00
|
|
|
};
|
2017-08-30 16:19:00 +00:00
|
|
|
|
2020-10-19 00:00:00 +00:00
|
|
|
patches = [
|
|
|
|
./gfan-0.6.2-cddlib-prefix.patch
|
|
|
|
];
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
postPatch = lib.optionalString stdenv.cc.isClang ''
|
2018-08-14 04:15:36 +00:00
|
|
|
substituteInPlace Makefile --replace "-fno-guess-branch-probability" ""
|
|
|
|
'';
|
|
|
|
|
2021-02-16 11:48:46 +00:00
|
|
|
buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" "CXX=${stdenv.cc.targetPrefix}c++" ];
|
2021-01-24 09:19:10 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2018-08-14 04:15:36 +00:00
|
|
|
buildInputs = [ gmp mpir cddlib ];
|
2017-08-30 16:19:00 +00:00
|
|
|
|
2016-10-10 18:35:32 +00:00
|
|
|
meta = {
|
|
|
|
inherit version;
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "A software package for computing Gröbner fans and tropical varieties";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.gpl2 ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://home.math.au.dk/jensen/software/gfan/gfan.html";
|
2016-10-10 18:35:32 +00:00
|
|
|
};
|
|
|
|
}
|