From 6e95ad3b2b49d5da92feb3c310286a650c349dd6 Mon Sep 17 00:00:00 2001 From: Reno Dakota Date: Thu, 2 Jan 2025 02:26:58 -0800 Subject: [PATCH] lcalc: workaround for vendored https://gitlab.com/sagemath/lcalc/-/issues/16 add -D_GLIBCXX_COMPLEX -D_LIBCPP_COMPLEX -D_LIBCPP___FWD_COMPLEX_H to prevent including system and use the vendored copy. --- pkgs/by-name/lc/lcalc/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/lc/lcalc/package.nix b/pkgs/by-name/lc/lcalc/package.nix index f81ea501270f..22f326219a47 100644 --- a/pkgs/by-name/lc/lcalc/package.nix +++ b/pkgs/by-name/lc/lcalc/package.nix @@ -19,6 +19,14 @@ stdenv.mkDerivation rec { hash = "sha256-RxWZ7T0I9zV7jUVnL6jV/PxEoU32KY7Q1UsOL5Lonuc="; }; + # workaround for vendored GCC 3.5 + # 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