Unverified Commit 719b1e4a authored by Mauricio Collares's avatar Mauricio Collares Committed by GitHub
Browse files

lcalc: fix clang-19 build (#370176)

parents 27b7fc99 6e95ad3b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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