diff options
| author | Emily <vcs@emily.moe> | 2023-07-07 01:30:20 +0100 |
|---|---|---|
| committer | Emily <vcs@emily.moe> | 2023-07-08 21:04:34 +0100 |
| commit | 2d20e861112955cd2d102d0a0abf36d265001a5d (patch) | |
| tree | a17166da847b3a9d12616365f63b71613bd15eb2 /modules/documentation | |
| parent | b06bab83bdf285ea0ae3c8e145a081eb95959047 (diff) | |
documentation: use feature test for docs generator
This should be less brittle than the version-based check, although
arguably this kind of `lib.version` mismatch should break as early
as possible...
Fixes: #718
Diffstat (limited to 'modules/documentation')
| -rw-r--r-- | modules/documentation/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/documentation/default.nix b/modules/documentation/default.nix index 4a4bcdc..25165c9 100644 --- a/modules/documentation/default.nix +++ b/modules/documentation/default.nix @@ -54,7 +54,7 @@ let # TODO: Remove this when dropping 22.11 support. manual = realManual // - lib.optionalAttrs (lib.versionOlder lib.version "23.05-pre") rec { + lib.optionalAttrs (!pkgs.buildPackages ? nixos-render-docs) rec { optionsJSON = pkgs.writeTextFile { name = "options.json-stub"; destination = "/share/doc/darwin/options.json"; |
