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

28 lines
894 B
Nix
Raw Normal View History

2016-10-10 19:35:32 +01:00
{stdenv, fetchurl, gmp, mpir, cddlib}:
stdenv.mkDerivation rec {
pname = "gfan";
version = "0.6.2";
2017-08-30 17:19:00 +01:00
2016-10-10 19:35:32 +01:00
src = fetchurl {
url = "http://home.math.au.dk/jensen/software/gfan/gfan${version}.tar.gz";
sha256 = "02pihqb1lb76a0xbfwjzs1cd6ay3ldfxsm8dvsbl6qs3vkjxax56";
2016-10-10 19:35:32 +01:00
};
2017-08-30 17:19:00 +01:00
patchPhase = stdenv.lib.optionalString stdenv.cc.isClang ''
2018-08-14 05:15:36 +01:00
substituteInPlace Makefile --replace "-fno-guess-branch-probability" ""
'';
buildFlags = [ "CC=cc" "CXX=c++" "cddnoprefix=1" ];
installFlags = [ ''PREFIX=$(out)'' ];
buildInputs = [ gmp mpir cddlib ];
2017-08-30 17:19:00 +01:00
2016-10-10 19:35:32 +01:00
meta = {
inherit version;
description = ''A software package for computing Gröbner fans and tropical varieties'';
license = stdenv.lib.licenses.gpl2 ;
maintainers = [stdenv.lib.maintainers.raskin];
2018-08-14 05:15:36 +01:00
platforms = stdenv.lib.platforms.unix;
homepage = "http://home.math.au.dk/jensen/software/gfan/gfan.html";
2016-10-10 19:35:32 +01:00
};
}