diff options
author | Artturin <Artturin@artturin.com> | 2023-09-09 23:24:35 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-09-09 23:30:11 +0300 |
commit | cf3d29d63f7a0b372f0bc7ae460884e999ba9c35 (patch) | |
tree | 9b6a04c7a6b79823bc62747af0e7b8cb832895c6 | |
parent | 211a86d6c3b595d4f43e60be077599130f3053a8 (diff) | |
download | nixpkgs-cf3d29d63f7a0b372f0bc7ae460884e999ba9c35.tar nixpkgs-cf3d29d63f7a0b372f0bc7ae460884e999ba9c35.tar.gz nixpkgs-cf3d29d63f7a0b372f0bc7ae460884e999ba9c35.tar.bz2 nixpkgs-cf3d29d63f7a0b372f0bc7ae460884e999ba9c35.tar.lz nixpkgs-cf3d29d63f7a0b372f0bc7ae460884e999ba9c35.tar.xz nixpkgs-cf3d29d63f7a0b372f0bc7ae460884e999ba9c35.tar.zst nixpkgs-cf3d29d63f7a0b372f0bc7ae460884e999ba9c35.zip |
sage: If docs are not enabled then don't include a doc attribute
there should be no doc attribute if docs are not enabled the doc attribute is used in nixos/documentation.nix https://github.com/NixOS/nixpkgs/blob/adeb7629fc6ccf986ccc7013efc60d5e6d5269f1/nixos/modules/misc/documentation.nix#L342 the doc will still be built because the doc attribute exists
-rw-r--r-- | pkgs/applications/science/math/sage/sage.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/science/math/sage/sage.nix b/pkgs/applications/science/math/sage/sage.nix index 2cd6336675c..227e4bbdbfd 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; { |