actually fix coq 8.6
more/packages/ocaml.scm
134 | 134 | provers.") | |
135 | 135 | (license license:gpl2+))) | |
136 | 136 | ||
137 | + | (define-public ocaml4.02-camlp5 | |
138 | + | (package | |
139 | + | (inherit camlp5) | |
140 | + | (inputs | |
141 | + | `(("ocaml" ,ocaml-4.02))))) | |
142 | + | ||
137 | 143 | (define-public coq-8.6 | |
138 | 144 | (package | |
139 | 145 | (inherit coq) | |
… | |||
148 | 154 | (base32 | |
149 | 155 | "02nm5sn79hrb9fdmkhyclk80jydadf4jcafmr3idwr5h4z56qbms")))) | |
150 | 156 | (arguments | |
151 | - | `(#:phases | |
157 | + | `(#:ocaml ,ocaml-4.02 | |
158 | + | #:findlib ,ocaml4.02-findlib | |
159 | + | #:phases | |
152 | 160 | (modify-phases %standard-phases | |
153 | 161 | (replace 'configure | |
154 | 162 | (lambda* (#:key outputs #:allow-other-keys) | |
… | |||
163 | 171 | #t)) | |
164 | 172 | (replace 'build | |
165 | 173 | (lambda* (#:key inputs #:allow-other-keys) | |
166 | - | (substitute* "ide/ideutils.ml" | |
167 | - | (("Bytes.unsafe_to_string read_string") "read_string")) | |
168 | 174 | (invoke "make" "-j" (number->string | |
169 | 175 | (parallel-job-count)) | |
170 | - | (string-append | |
171 | - | "USERFLAGS=-I " | |
172 | - | (assoc-ref inputs "ocaml-num") | |
173 | - | "/lib/ocaml/site-lib") | |
174 | 176 | "world") | |
175 | 177 | #t)) | |
176 | 178 | (delete 'check) | |
… | |||
178 | 180 | (lambda _ | |
179 | 181 | (with-directory-excursion "test-suite" | |
180 | 182 | (invoke "make")) | |
181 | - | #t))))))) | |
183 | + | #t))))) | |
184 | + | (native-inputs '()) | |
185 | + | (inputs | |
186 | + | `(("lablgtk" ,ocaml4.02-lablgtk) | |
187 | + | ("python" ,python-2) | |
188 | + | ("camlp5" ,ocaml4.02-camlp5))))) | |
182 | 189 | ||
183 | 190 | (define-public coq-8.7 | |
184 | 191 | (package |