Skip to content

Commit 708c601

Browse files
committed
docs: enable on darwin
Now that sandbox issue has been fixed in nix. We can compile and serve docs.
1 parent 175b7a4 commit 708c601

File tree

1 file changed

+26
-33
lines changed

1 file changed

+26
-33
lines changed

docs/default.nix

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -100,41 +100,34 @@ let
100100
}).optionsJSON;
101101

102102
in
103-
lib.fix (
104-
self:
105-
{
106-
inherit options-json;
107-
inherit (pkgs) nixos-render-docs;
103+
lib.fix (self: {
104+
inherit options-json;
105+
inherit (pkgs) nixos-render-docs;
108106

109-
gfm-alerts-to-admonitions = pkgs.python3.pkgs.callPackage ./gfm-alerts-to-admonitions { };
107+
gfm-alerts-to-admonitions = pkgs.python3.pkgs.callPackage ./gfm-alerts-to-admonitions { };
110108

111-
man-docs = pkgs.callPackage ./man {
112-
inherit options-json;
113-
inherit (self) lib-docs;
114-
};
109+
man-docs = pkgs.callPackage ./man {
110+
inherit options-json;
111+
inherit (self) lib-docs;
112+
};
115113

116-
lib-docs = pkgs.callPackage ./lib {
117-
inherit nixvim lib;
118-
};
119-
}
120-
// lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
121-
# NuschtOS/search does not seem to work on darwin
122-
search = nuschtosSearch.packages.mkSearch {
123-
optionsJSON = options-json + "/share/doc/nixos/options.json";
124-
urlPrefix = "https://github.com/nix-community/nixvim/tree/main";
125-
title = "Nixvim options search";
126-
baseHref = "/";
127-
};
114+
lib-docs = pkgs.callPackage ./lib {
115+
inherit nixvim lib;
116+
};
128117

129-
# Do not check if documentation builds fine on darwin as it fails:
130-
# > sandbox-exec: pattern serialization length 69298 exceeds maximum (65535)
131-
docs = pkgs.callPackage ./mdbook {
132-
inherit evaledModules transformOptions;
133-
inherit (self) search lib-docs;
134-
};
118+
search = nuschtosSearch.packages.mkSearch {
119+
optionsJSON = options-json + "/share/doc/nixos/options.json";
120+
urlPrefix = "https://github.com/nix-community/nixvim/tree/main";
121+
title = "Nixvim options search";
122+
baseHref = "/";
123+
};
135124

136-
serve-docs = pkgs.callPackage ./server {
137-
inherit (self) docs;
138-
};
139-
}
140-
)
125+
docs = pkgs.callPackage ./mdbook {
126+
inherit evaledModules transformOptions;
127+
inherit (self) search lib-docs;
128+
};
129+
130+
serve-docs = pkgs.callPackage ./server {
131+
inherit (self) docs;
132+
};
133+
})

0 commit comments

Comments
 (0)