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 Jul 21, 2024
1 parent 0c48cc0 commit e537c35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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,11 @@ stdenv.mkDerivation rec {

patches = [
./gfan-0.6.2-cddlib-prefix.patch
(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 e537c35

Please sign in to comment.