From 9d6c891e037d68c3b90ff11bcb0b5b94f1c4a2cd Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 13 Feb 2026 13:15:59 +0100 Subject: [PATCH] =?UTF-8?q?compcert:=203.16=20=E2=86=92=203.17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coq-modules/compcert/default.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/development/coq-modules/compcert/default.nix b/pkgs/development/coq-modules/compcert/default.nix index cea8a38b575e..3411863730c6 100644 --- a/pkgs/development/coq-modules/compcert/default.nix +++ b/pkgs/development/coq-modules/compcert/default.nix @@ -41,8 +41,8 @@ let with lib.versions; lib.switch coq.version [ { - case = range "8.15" "9.0"; - out = "3.16"; + case = range "8.15" "9.1"; + out = "3.17"; } { case = range "8.14" "8.20"; @@ -73,6 +73,7 @@ let "3.14".sha256 = "sha256-QXJMpp/BaPiK5okHeo2rcmXENToXKjB51UqljMHTDgw="; "3.15".sha256 = "sha256-QFTueGZd0hAWUj+c5GZL/AyNpfN4FuJiIzCICmwRXJ8="; "3.16".sha256 = "sha256-Ep8bcSFs3Cu+lV5qgo89JJU2vh4TTq66Or0c4evo3gM="; + "3.17".hash = "sha256-RRc39FUe2sHQdO/ybwA3B7o31qfxcUkgah6I20i0ElE="; }; strictDeps = true; @@ -316,6 +317,19 @@ let }) ]; } + { + cases = [ + (isGe "9.0") + (isEq "3.17") + ]; + out = [ + # Support for Coq 9.0.1 & Coq 9.1.1 + (fetchpatch { + url = "https://github.com/AbsInt/CompCert/commit/6e5d40fb028d787249cd897fe4a1b96420addb8b.patch"; + hash = "sha256-YBDsvhfup1IMc5GcW7BdsHUKGCv3A1eGIeb4Wal4x7A="; + }) + ]; + } ] [ ]; });