Skip to content

Commit

Permalink
lcalc: fix clang-19 build (NixOS#370176)
Browse files Browse the repository at this point in the history
  • Loading branch information
collares authored Jan 2, 2025
2 parents 27b7fc9 + 6e95ad3 commit 719b1e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/by-name/lc/lcalc/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ stdenv.mkDerivation rec {
hash = "sha256-RxWZ7T0I9zV7jUVnL6jV/PxEoU32KY7Q1UsOL5Lonuc=";
};

# workaround for vendored GCC 3.5 <complex>
# https://gitlab.com/sagemath/lcalc/-/issues/16
env.NIX_CFLAGS_COMPILE = toString [
"-D_GLIBCXX_COMPLEX"
"-D_LIBCPP_COMPLEX"
"-D_LIBCPP___FWD_COMPLEX_H"
];

nativeBuildInputs = [
autoreconfHook
gengetopt
Expand Down

0 comments on commit 719b1e4

Please sign in to comment.