diff options
| author | Vincent Laporte | 2019-01-28 15:00:04 +0000 |
|---|---|---|
| committer | Vincent Laporte | 2019-02-05 15:54:45 +0000 |
| commit | cb89f2f623e28ac6c23330cb1b37622f93780088 (patch) | |
| tree | 74b352579214f78e02371dcfd5189cf99e487933 /dev | |
| parent | d9afe70c9c65359b6eb827f5b30d84f24074efa1 (diff) | |
[Nix-CI] Fix Unicoq
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/ci/nix/unicoq/META | 2 | ||||
| -rw-r--r-- | dev/ci/nix/unicoq/default.nix | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/dev/ci/nix/unicoq/META b/dev/ci/nix/unicoq/META deleted file mode 100644 index 30dd8b5559..0000000000 --- a/dev/ci/nix/unicoq/META +++ /dev/null @@ -1,2 +0,0 @@ -archive(native) = "unicoq.cmxa" -plugin(native) = "unicoq.cmxs" diff --git a/dev/ci/nix/unicoq/default.nix b/dev/ci/nix/unicoq/default.nix index 36f40dbe33..54c67ac0fd 100644 --- a/dev/ci/nix/unicoq/default.nix +++ b/dev/ci/nix/unicoq/default.nix @@ -1,4 +1,10 @@ -{ stdenv, coq }: +{ stdenv, writeText, coq }: + +let META = writeText "META" '' + archive(native) = "unicoq.cmxa" + plugin(native) = "unicoq.cmxs" +''; in + stdenv.mkDerivation { name = "coq${coq.coq-version}-unicoq-0.0-git"; @@ -12,8 +18,9 @@ stdenv.mkDerivation { installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ]; postInstall = '' + cp ${META} META install -d $OCAMLFIND_DESTDIR ln -s $out/lib/coq/${coq.coq-version}/user-contrib/Unicoq $OCAMLFIND_DESTDIR/ - install -m 0644 ${./META} src/unicoq.a $OCAMLFIND_DESTDIR/Unicoq + install -m 0644 META src/unicoq.a $OCAMLFIND_DESTDIR/Unicoq ''; } |
