diff options
| author | Enrico Tassi | 2018-10-10 12:59:11 +0200 |
|---|---|---|
| committer | Enrico Tassi | 2018-10-10 12:59:11 +0200 |
| commit | b4fd032e0a05533bab701125c4abcbf392c799c7 (patch) | |
| tree | d8e7b8b786e60066c1c5279f401bbc780edd7d65 /default.nix | |
| parent | 6b7d0df8c077f40c53cc69a7192bdcdb0b483343 (diff) | |
| parent | 41dcd52864a569d2a0305ce97ad335238a0bc17d (diff) | |
Merge PR #8602: [test-suite] Use ocamlfind to locate Coq libraries in unit tests.
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 1faaafae03..1cc74dc0d2 100644 --- a/default.nix +++ b/default.nix @@ -75,6 +75,8 @@ stdenv.mkDerivation rec { (path: _: !elem (baseNameOf path) [".git" "result" "bin" "_build" "_build_ci"]) ./.; + preConfigure = "patchShebangs kernel/"; + prefixKey = "-prefix "; buildFlags = [ "world" "byte" ] ++ optional buildDoc "doc-html"; @@ -82,11 +84,16 @@ stdenv.mkDerivation rec { installTargets = [ "install" "install-byte" ] ++ optional buildDoc "install-doc-html"; + createFindlibDestdir = !shell; + + postInstall = "ln -s $out/lib/coq $OCAMLFIND_DESTDIR/coq"; + inherit doInstallCheck; preInstallCheck = '' patchShebangs tools/ patchShebangs test-suite/ + export OCAMLPATH=$OCAMLFIND_DESTDIR:$OCAMLPATH ''; installCheckTarget = [ "check" ]; |
