File tree Expand file tree Collapse file tree 5 files changed +29
-15
lines changed
.nix/coq-overlays/coq-elpi Expand file tree Collapse file tree 5 files changed +29
-15
lines changed Original file line number Diff line number Diff line change 10
10
{ case = "8.16" ; out = { version = "1.17.0" ; } ; }
11
11
{ case = "8.17" ; out = { version = "1.17.0" ; } ; }
12
12
{ case = "8.18" ; out = { version = "1.18.1" ; } ; }
13
- { case = "8.19" ; out = { version = "1.18.1" ; } ; }
14
13
{ case = "8.20" ; out = { version = "2.0.3" ; } ; }
15
14
] { } ) ;
16
15
in ( mkCoqDerivation {
@@ -78,6 +77,10 @@ in (mkCoqDerivation {
78
77
maintainers = [ lib . maintainers . cohencyril ] ;
79
78
license = lib . licenses . lgpl21Plus ;
80
79
} ;
80
+
81
+ preBuild = ''
82
+ make elpi/dune || true
83
+ '' ;
81
84
} ) . overrideAttrs ( o :
82
85
lib . optionalAttrs ( o . version != null
83
86
&& ( o . version == "dev" || lib . versions . isGe "2.2.0" o . version ) )
Original file line number Diff line number Diff line change 1
1
dune = dune $(1 ) $(DUNE_$(1 ) _FLAGS )
2
2
3
- all :
3
+ elpi/dune : elpi/dune.in
4
+ @rm -f $@
5
+ @echo " ; generated by make, do not edit" > $@
6
+ @if $$(coqc --version | grep -q "8.19\|8.20" ) ; then \
7
+ sed -e ' s/@@STDLIB_THEORY@@//' $< >> $@ ; \
8
+ else \
9
+ sed -e ' s/@@STDLIB_THEORY@@/(theories Stdlib)/' $< >> $@ ; \
10
+ fi
11
+ @chmod a-w $@
12
+
13
+ all : elpi/dune
4
14
$(call dune,build)
5
15
$(call dune,build) builtin-doc
6
16
.PHONY : all
7
17
8
- build-core :
18
+ build-core : elpi/dune
9
19
$(call dune,build) theories
10
20
$(call dune,build) builtin-doc
11
21
.PHONY : build-core
12
22
13
- build-apps :
23
+ build-apps : elpi/dune
14
24
$(call dune,build) $$(find apps -type d -name theories )
15
25
.PHONY : build-apps
16
26
17
- build :
27
+ build : elpi/dune
18
28
$(call dune,build) -p coq-elpi @install
19
29
$(call dune,build) builtin-doc
20
30
.PHONY : build
21
31
22
- test-core :
32
+ test-core : elpi/dune
23
33
$(call dune,runtest) tests
24
34
$(call dune,build) tests
25
35
.PHONY : test-core
26
36
27
- test-apps :
37
+ test-apps : elpi/dune
28
38
$(call dune,build) $$(find apps -type d -name tests )
29
39
.PHONY : test-apps
30
40
31
- test :
41
+ test : elpi/dune
32
42
$(call dune,runtest)
33
43
$(call dune,build) tests
34
44
$(call dune,build) $$(find apps -type d -name tests )
35
45
.PHONY : test
36
46
37
- examples :
47
+ examples : elpi/dune
38
48
$(call dune,build) examples
39
49
.PHONY : examples
40
50
56
66
$(call dune,clean)
57
67
.PHONY : clean
58
68
59
- install :
69
+ install : elpi/dune
60
70
$(call dune,install) coq-elpi
61
71
.PHONY : install
62
72
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ namespace tc {
93
93
if (tc.is-option-active tc.oTC-clauseNameShortName)
94
94
(Path = "")
95
95
(coq.gref->path Gr [Hd | Tl],
96
- if (Hd = "Coq") (Hd' = "Stdlib ") (Hd' = Hd),
96
+ if (Hd = "Coq") (Hd' = "Corelib ") (Hd' = Hd),
97
97
std.string.concat "." [Hd'|Tl] Path',
98
98
Path is Path' ^ ".tc-"),
99
99
% CAVEAT : Non-ascii caractars can't be part of a pred
Original file line number Diff line number Diff line change @@ -882,7 +882,7 @@ instances *)
882
882
Section prod_setoid.
883
883
Context `{Equiv A, Equiv B}.
884
884
Elpi Accumulate TC.Solver lp:{{
885
- shorten tc-Stdlib .Classes .RelationClasses.{tc-Equivalence}.
885
+ shorten tc-Corelib .Classes .RelationClasses.{tc-Equivalence}.
886
886
:after "lastHook"
887
887
tc-Equivalence A RA R :-
888
888
RA = {{@equiv _ (@prod_equiv _ _ _ _)}},
@@ -910,7 +910,7 @@ Section prod_setoid.
910
910
std.map L1 remove_equiv_prod_equiv L2.
911
911
remove_equiv_prod_equiv A A.
912
912
913
- shorten tc-Stdlib .Classes .Morphisms.{tc-Proper}.
913
+ shorten tc-Corelib .Classes .Morphisms.{tc-Proper}.
914
914
915
915
:after "lastHook"
916
916
tc-Proper A B C R :-
@@ -1043,7 +1043,7 @@ Elpi Accumulate TC.Solver lp:{{
1043
1043
std.map L1 remove_equiv_sum_equiv L2.
1044
1044
remove_equiv_sum_equiv A A.
1045
1045
1046
- shorten tc-Stdlib .Classes .Morphisms.{tc-Proper}.
1046
+ shorten tc-Corelib .Classes .Morphisms.{tc-Proper}.
1047
1047
:after "lastHook"
1048
1048
tc-Proper A B C R :-
1049
1049
B = {{ @respectful _ _ _ _ }},
Original file line number Diff line number Diff line change 1
1
(coq.theory
2
2
(name elpi_elpi) ; FIXME
3
- (package coq-elpi))
3
+ (package coq-elpi)
4
+ @@STDLIB_THEORY@@)
4
5
5
6
(rule
6
7
(target dummy.v)
You can’t perform that action at this time.
0 commit comments