diff options
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 1faaafae03..61f434efe6 100644 --- a/default.nix +++ b/default.nix @@ -75,6 +75,11 @@ stdenv.mkDerivation rec { (path: _: !elem (baseNameOf path) [".git" "result" "bin" "_build" "_build_ci"]) ./.; + preConfigure = '' + patchShebangs kernel/ + patchShebangs dev/tools/ + ''; + prefixKey = "-prefix "; buildFlags = [ "world" "byte" ] ++ optional buildDoc "doc-html"; @@ -82,11 +87,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" ]; |
