Skip to content

Commit

Permalink
gfan: fix to pass sage doctests on clang
Browse files Browse the repository at this point in the history
This issue does not present at build time, but only in sage
doctests. See https://www.github.com/sagemath/sage/issues/25118
  • Loading branch information
Feyorsh committed Sep 2, 2024
1 parent dfd8a36 commit b9b4e09
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/applications/science/math/gfan/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{lib, stdenv, fetchurl, gmp, mpir, cddlib}:
{lib, stdenv, fetchpatch, fetchurl, gmp, mpir, cddlib}:
stdenv.mkDerivation rec {
pname = "gfan";
version = "0.6.2";
Expand All @@ -10,6 +10,12 @@ stdenv.mkDerivation rec {

patches = [
./gfan-0.6.2-cddlib-prefix.patch
] ++ lib.optionals (stdenv.cc.isClang) [
(fetchpatch {
name = "clang-fix-miscompilation.patch";
url = "https://raw.githubusercontent.com/sagemath/sage/eea1f59394a5066e9acd8ae39a90302820914ee3/build/pkgs/gfan/patches/nodel.patch";
sha256 = "sha256-RrncSgFyrBIk/Bwe3accxiJ2rpOSJKQ84cV/uBvQsDc=";
})
];

postPatch = lib.optionalString stdenv.cc.isClang ''
Expand Down

0 comments on commit b9b4e09

Please sign in to comment.