aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Laporte2018-04-19 08:56:24 +0000
committerVincent Laporte2018-04-19 08:56:24 +0000
commit8e5e3290777be3b3c72ee42649dbebcf4a1cb8d4 (patch)
tree5c97a122ee6cd28275e93ac7191235bce55b7317
parent7a9e508e600479e69c5eb82b1ad00979ad76e4a0 (diff)
parent53794457f39ff07a59c4a1229180bd64c18631c1 (diff)
Merge PR #7287: [default.nix] Build doc with nix-build.
-rw-r--r--default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index 26c6e4b901..0b47942748 100644
--- a/default.nix
+++ b/default.nix
@@ -32,6 +32,7 @@
}:
with pkgs;
+with stdenv.lib;
stdenv.mkDerivation rec {
@@ -61,8 +62,7 @@ stdenv.mkDerivation rec {
] else []) ++ (if doCheck then
# Test-suite dependencies
- let inherit (stdenv.lib) versionAtLeast optional; in
- /* ncurses is required to build an OCaml REPL */
+ # ncurses is required to build an OCaml REPL
optional (!versionAtLeast ocaml.version "4.07") ncurses
++ [
python
@@ -90,6 +90,10 @@ stdenv.mkDerivation rec {
prefixKey = "-prefix ";
+ buildFlags = optionals buildDoc [ "world" "sphinx" ];
+
+ installTargets = [ "install" ] ++ optional buildDoc "install-doc-sphinx";
+
inherit doCheck;
}