Debian Codegraph @

dev/ci/nix/unicoq/default.nix

raw symbols SCIP
1 { stdenv, writeText, coq }:
2
3 let META = writeText "META" ''
4 archive(native) = "unicoq.cmxa"
5 plugin(native) = "unicoq.cmxs"
6 ''; in
7
8
9 stdenv.mkDerivation {
10 name = "coq${coq.coq-version}-unicoq-0.0-git";
11 src = fetchTarball https://github.com/unicoq/unicoq/archive/master.tar.gz;
12
13 patches = [ ./unicoq-num.patch ];
14
15 buildInputs = [ coq ] ++ (with coq.ocamlPackages; [ ocaml findlib camlp5 num ]);
16
17 configurePhase = "coq_makefile -f Make -o Makefile";
18 installFlags = [ "ROCQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
19
20 postInstall = ''
21 cp ${META} META
22 install -d $OCAMLFIND_DESTDIR
23 ln -s $out/lib/coq/${coq.coq-version}/user-contrib/Unicoq $OCAMLFIND_DESTDIR/
24 install -m 0644 META src/unicoq.a $OCAMLFIND_DESTDIR/Unicoq
25 '';
26 }