From 2d20e861112955cd2d102d0a0abf36d265001a5d Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 7 Jul 2023 01:30:20 +0100 Subject: [PATCH] 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 --- modules/documentation/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";