@@ -100,41 +100,34 @@ let
100
100
} ) . optionsJSON ;
101
101
102
102
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 ;
108
106
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 { } ;
110
108
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
+ } ;
115
113
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
+ } ;
128
117
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
+ } ;
135
124
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