diff --git a/pkgs/applications/science/math/sage/sage.nix b/pkgs/applications/science/math/sage/sage.nix index 2cd6336675c3..227e4bbdbfdb 100644 --- a/pkgs/applications/science/math/sage/sage.nix +++ b/pkgs/applications/science/math/sage/sage.nix @@ -47,10 +47,11 @@ stdenv.mkDerivation rec { passthru = { tests = sage-tests; quicktest = sage-tests.override { longTests = false; timeLimit = 600; }; # as many tests as possible in ~10m - doc = sagedoc; lib = sage-with-env.env.lib; with-env = sage-with-env; kernelspec = jupyter-kernel-definition; + } // lib.optionalAttrs withDoc { + doc = sagedoc; }; meta = with lib; {