Skip to content

Commit 15fdb27

Browse files
proux01vbgl
authored andcommitted
coq: align rocq-core version on overrides
1 parent 4ed6f0c commit 15fdb27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkgs/applications/science/logic/coq/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ let
9595
self = stdenv.mkDerivation {
9696
pname = "coq";
9797
inherit (fetched) version src;
98+
exact-version = args.version;
9899

99100
passthru = {
100101
inherit coq-version;
@@ -233,7 +234,8 @@ self = stdenv.mkDerivation {
233234
}; in
234235
if coqAtLeast "8.21" then self.overrideAttrs(o: {
235236
# coq-core is now a shim for rocq
236-
propagatedBuildInputs = o.propagatedBuildInputs ++ [ rocq-core ];
237+
propagatedBuildInputs = o.propagatedBuildInputs
238+
++ [ (rocq-core.override { version = o.exact-version; }) ];
237239
buildPhase = ''
238240
runHook preBuild
239241
dune build -p coq-core,coqide-server${lib.optionalString buildIde ",rocqide"} -j $NIX_BUILD_CORES

0 commit comments

Comments
 (0)