aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorThéo Zimmermann2020-01-15 10:54:03 +0100
committerThéo Zimmermann2020-01-15 10:54:03 +0100
commita8cb0bb1cbdf304da81dc292c9fddf361207142e (patch)
treecdbb6e7637137879f956c00cf9b9f382e0e76752 /default.nix
parenta7e788403cae2c82bcb2b39f8576318a175ee788 (diff)
parentc8d2da3db29ada93ed46a68dd789ccf16f22401c (diff)
Merge PR #11401: [nix] Dune-2 and other improvements
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index cfadca54d2..174e199014 100644
--- a/default.nix
+++ b/default.nix
@@ -42,7 +42,6 @@ stdenv.mkDerivation rec {
buildInputs = [
hostname
python3 time # coq-makefile timing tools
- dune
]
++ (with ocamlPackages; [ ocaml findlib num ])
++ optionals buildIde [
@@ -67,6 +66,7 @@ stdenv.mkDerivation rec {
[ jq curl gitFull gnupg ] # Dependencies of the merging script
++ (with ocamlPackages; [ merlin ocp-indent ocp-index utop ocamlformat ]) # Dev tools
++ [ graphviz ] # Useful for STM debugging
+ ++ [ dune_2 ] # Maybe the next build system
);
src =
@@ -111,7 +111,7 @@ stdenv.mkDerivation rec {
setupHook = writeText "setupHook.sh" "
addCoqPath () {
if test -d \"$1/lib/coq/${coq-version}/user-contrib\"; then
- export COQPATH=\"$COQPATH\${COQPATH:+:}$1/lib/coq/${coq-version}/user-contrib/\"
+ export COQPATH=\"\${COQPATH-}\${COQPATH:+:}$1/lib/coq/${coq-version}/user-contrib/\"
fi
}