Skip to content

Commit

Permalink
coq: making sure coq master and 9.0 compile
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenCyril committed Dec 9, 2024
1 parent 314edfd commit 088543e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pkgs/applications/science/logic/coq/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 088543e

Please sign in to comment.