about summary refs log tree commit diff
path: root/pkgs/development/coq-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2024-01-18 06:11:55 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2024-01-18 14:24:48 +0100
commit6088947f526c3f676ad292eab7c639c69694d1f2 (patch)
treec5716ba9f41992a5569d25aee386e7c0fd9f85a1 /pkgs/development/coq-modules
parented30e67bb0f336090c3ac32b5521d50bbce2738d (diff)
coqPackages.smtcoq.cvc4: fix build by building CLN in the same stdenv
Diffstat (limited to 'pkgs/development/coq-modules')
-rw-r--r--pkgs/development/coq-modules/smtcoq/cvc4.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/coq-modules/smtcoq/cvc4.nix b/pkgs/development/coq-modules/smtcoq/cvc4.nix
index 5b555cc8fc080..220c24a2b8301 100644
--- a/pkgs/development/coq-modules/smtcoq/cvc4.nix
+++ b/pkgs/development/coq-modules/smtcoq/cvc4.nix
@@ -3,6 +3,8 @@
 , python3
 }:
 
+let cln' = cln.override { gccStdenv = stdenv; }; in
+
 stdenv.mkDerivation rec {
   pname = "cvc4";
   version = "1.6";
@@ -15,7 +17,7 @@ stdenv.mkDerivation rec {
   # Build fails with GNUmake 4.4
   nativeBuildInputs = [ autoreconfHook gnumake42 pkg-config ];
   buildInputs = [ gmp swig libantlr3c boost python3 ]
-    ++ lib.optionals stdenv.isLinux [ cln ];
+    ++ lib.optionals stdenv.isLinux [ cln' ];
 
   configureFlags = [
     "--enable-language-bindings=c"