Skip to content

Commit

Permalink
documentation: use feature test for docs generator
Browse files Browse the repository at this point in the history
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
  • Loading branch information
emilazy committed Jul 8, 2023
1 parent b06bab8 commit 2d20e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/documentation/default.nix
Original file line number Diff line number Diff line change
@@ -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";

0 comments on commit 2d20e86

Please sign in to comment.