@@ -4,6 +4,15 @@ let
44 mkContrib = import ./mk-contrib.nix;
55 all = import ./all.nix;
66 overrides = {
7+ Additions = self: {
8+ patchPhase = ''
9+ for p in binary_strat dicho_strat generation log2_implementation shift
10+ do
11+ substituteInPlace $p.v \
12+ --replace 'Require Import Euclid.' 'Require Import Coq.Arith.Euclid.'
13+ done
14+ '';
15+ };
716 BDDs = self: {
817 buildInputs = self.buildInputs ++ [ contribs.IntMap ];
918 patchPhase = ''
@@ -13,6 +22,7 @@ let
1322 32d30
1423 < extraction
1524 EOF
25+ coq_makefile -f Make -o Makefile
1626 '';
1727 postInstall = ''
1828 mkdir -p $out/bin
@@ -25,6 +35,7 @@ let
2535 17d16
2636 < rauzy/algorithme1/extraction
2737 EOF
38+ coq_makefile -f Make -o Makefile
2839 '';
2940 postInstall = ''
3041 mkdir -p $out/bin
@@ -38,6 +49,7 @@ let
3849 2d1
3950 < -R ../QArithSternBrocot QArithSternBrocot
4051 EOF
52+ coq_makefile -f Make -o Makefile
4153 '';
4254 };
4355 CoRN = self: {
@@ -47,7 +59,9 @@ let
4759 2d1
4860 < -R ../MathClasses/ MathClasses
4961 EOF
62+ coq_makefile -f Make -o Makefile.coq
5063 '';
64+ enableParallelBuilding = true;
5165 installFlags = self.installFlags + " -f Makefile.coq";
5266 };
5367 Counting = self: {
@@ -70,6 +84,7 @@ let
7084 < -I ../Counting/src
7185 < -R ../Counting/theories Counting
7286 EOF
87+ coq_makefile -f Make -o Makefile
7388 '';
7489 };
7590 FingerTree = self: {
@@ -78,6 +93,22 @@ let
7893 21d20
7994 < extraction
8095 EOF
96+ coq_makefile -f Make -o Makefile
97+ '';
98+ };
99+ FOUnify = self: {
100+ patchPhase = ''
101+ patch Make <<EOF
102+ 8c8
103+ < -custom "\$(CAMLOPTLINK) -pp '\$(CAMLBIN)\$(CAMLP4)o' -o unif unif.mli unif.ml main.ml" unif.ml unif
104+ ---
105+ > -custom "\$(CAMLOPTLINK) -pp 'camlp5o' -o unif unif.mli unif.ml main.ml" unif.ml unif
106+ EOF
107+ coq_makefile -f Make -o Makefile
108+ '';
109+ postInstall = ''
110+ mkdir -p $out/bin
111+ cp unif $out/bin/
81112 '';
82113 };
83114 Goedel = self: {
@@ -85,8 +116,9 @@ let
85116 patchPhase = ''
86117 patch Make <<EOF
87118 2d1
88− < -R ../../Eindhoven/Pocklington Pocklington
119+ < -R ../../Eindhoven/Pocklington Pocklington
89120 EOF
121+ coq_makefile -f Make -o Makefile
90122 '';
91123 };
92124 Graphs = self: {
@@ -96,6 +128,7 @@ let
96128 2d1
97129 < -R ../../Cachan/IntMap IntMap
98130 EOF
131+ coq_makefile -f Make -o Makefile
99132 '';
100133 postInstall = ''
101134 mkdir -p $out/bin
@@ -110,6 +143,7 @@ let
110143 2d1
111144 < -R ../../Sophia-Antipolis/Algebra/ Algebra
112145 EOF
146+ coq_makefile -f Make -o Makefile
113147 '';
114148 };
115149 Markov = self: { configurePhase = "coq_makefile -o Makefile -R . Markov markov.v"; };
@@ -129,6 +163,7 @@ let
129163 < -R ../../Sophia-Antipolis/Algebra Algebra
130164 < -R ../../Nijmegen/LinAlg LinAlg
131165 EOF
166+ coq_makefile -f Make -o Makefile
132167 '';
133168 };
134169 PTSF = self: {
@@ -138,6 +173,7 @@ let
138173 1d0
139174 < -R ../../Paris/PTSATR/ PTSATR
140175 EOF
176+ coq_makefile -f Make -o Makefile
141177 '';
142178 };
143179 RelationExtraction = self: {
@@ -146,6 +182,20 @@ let
146182 31d30
147183 < test
148184 EOF
185+ coq_makefile -f Make -o Makefile
186+ '';
187+ };
188+ Semantics = self: {
189+ patchPhase = ''
190+ patch Make <<EOF
191+ 18a19
192+ > interp.mli
193+ EOF
194+ '';
195+ configurePhase = ''
196+ coq_makefile -f Make -o Makefile
197+ make extract_interpret.vo
198+ rm -f str_little.ml.d
149199 '';
150200 };
151201 SMC = self: {
@@ -155,12 +205,13 @@ let
155205 2d1
156206 < -R ../../Cachan/IntMap IntMap
157207 EOF
208+ coq_makefile -f Make -o Makefile
158209 '';
159210 };
160211 Ssreflect = self: {
161212 patchPhase = ''
162213 substituteInPlace Makefile \
163− --replace "/bin/mkdir" "mkdir"
214+ --replace "/bin/mkdir" "mkdir"
164215 '';
165216 };
166217 Stalmarck = self: {
@@ -173,6 +224,7 @@ let
173224 2d1
174225 < -R ../ZornsLemma ZornsLemma
175226 EOF
227+ coq_makefile -f Make -o Makefile
176228 '';
177229 };
178230 TreeAutomata = self: {
@@ -182,6 +234,7 @@ let
182234 2d1
183235 < -R ../../Cachan/IntMap IntMap
184236 EOF
237+ coq_makefile -f Make -o Makefile
185238 '';
186239 };
187240 };