From 088543e968f2000e88dd93398175b2f4874dacbe Mon Sep 17 00:00:00 2001 From: Cyril Cohen Date: Tue, 10 Dec 2024 00:04:58 +0100 Subject: [PATCH] coq: making sure coq master and 9.0 compile --- pkgs/applications/science/logic/coq/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/logic/coq/default.nix b/pkgs/applications/science/logic/coq/default.nix index c45ee7190e77f..b3ecd162c7378 100644 --- a/pkgs/applications/science/logic/coq/default.nix +++ b/pkgs/applications/science/logic/coq/default.nix @@ -228,7 +228,19 @@ self = stdenv.mkDerivation { mainProgram = "coqide"; }; }; in -if coqAtLeast "8.17" then self.overrideAttrs(_: { +if (coq-version == "dev") || (coqAtLeast "9.0") then self.overrideAttrs(_: { + buildPhase = '' + runHook preBuild + make dunestrap + dune build -p coq-core,rocq-core,coq,coqide-server${lib.optionalString buildIde ",coqide"} -j $NIX_BUILD_CORES + runHook postBuild + ''; + installPhase = '' + runHook preInstall + dune install --prefix $out coq-core rocq-core coq coqide-server${lib.optionalString buildIde " coqide"} + runHook postInstall + '';}) + else if coqAtLeast "8.17" then self.overrideAttrs(_: { buildPhase = '' runHook preBuild make dunestrap