diff --git a/pkgs/applications/science/math/gfan/default.nix b/pkgs/applications/science/math/gfan/default.nix index 05f09e4aedb3..9a9a1ff762f1 100644 --- a/pkgs/applications/science/math/gfan/default.nix +++ b/pkgs/applications/science/math/gfan/default.nix @@ -2,17 +2,16 @@ stdenv.mkDerivation rec { name = "${pname}-${version}"; pname = "gfan"; - version = "0.5"; - # or fetchFromGitHub(owner,repo,rev) or fetchgit(rev) + version = "0.6"; + src = fetchurl { url = "http://home.math.au.dk/jensen/software/gfan/gfan${version}.tar.gz"; - sha256 = "0adk9pia683wf6kn6h1i02b3801jz8zn67yf39pl57md7bqbrsma"; + sha256 = "02d6dvzfwy0lnidfgf98052jfqwy285nfm1h5nnx7jbgic1nnpgz"; }; - preBuild = '' - sed -e 's@static int i;@//&@' -i app_minkowski.cpp - ''; - makeFlags = ''PREFIX=$(out)''; + + makeFlags = ''PREFIX=$(out) CC=cc CXX=c++ cddnoprefix=1''; buildInputs = [gmp mpir cddlib]; + meta = { inherit version; description = ''A software package for computing Gröbner fans and tropical varieties'';