@@ -230,7 +230,7 @@ with lib;
230
230
231
231
source-repository-packages-driver = mkOption {
232
232
type = types . attrs ;
233
- default = ( import ../libs/cabal.nix { inherit pkgs ; } ) . source-repository-packages config . source-repository-packages ;
233
+ default = ( import ../libs/cabal.nix { inherit pkgs ; } ) . source-repository-packages ( attrValues config . source-repository-packages ) ;
234
234
defaultText = literalMD ''
235
235
```
236
236
(import ../libs/cabal.nix { inherit pkgs; }).source-repository-packages config.source-repository-packages;
@@ -240,28 +240,21 @@ with lib;
240
240
} ;
241
241
242
242
source-repository-packages = mkOption {
243
- type = types . nullOr ( types . listOf ( types . either types . path types . attrs ) ) ;
244
- default = null ;
243
+ type = types . attrsOf ( types . either types . path types . attrs ) ;
244
+ default = { } ;
245
245
example = literalMD ''
246
246
```
247
- [
248
- (deps.obelisk + "/lib/executable-config/inject")
249
- (deps.obelisk + "/lib/executable-config/lookup")
250
- (deps.obelisk + "/lib/frontend")
251
- (deps.obelisk + "/lib/route")
252
- (deps.obelisk + "/lib/tabulation")
253
- { src = deps.obelisk + "/lib/asset/manifest"; condition = "!arch(javascript)"; }
254
- { src = deps.obelisk + "/lib/asset/serve-snap"; condition = "!arch(javascript)"; }
255
- { src = deps.obelisk + "/lib/backend"; condition = "!arch(javascript)"; }
256
- { src = deps.obelisk + "/lib/command"; condition = "!arch(javascript)"; }
257
- { src = deps.obelisk + "/lib/run"; condition = "!arch(javascript)"; }
258
- { src = deps.obelisk + "/lib/selftest"; condition = "!arch(javascript)"; }
259
- { src = deps.obelisk + "/lib/snap-extras"; condition = "!arch(javascript)"; }
260
-
261
- (deps.reflex-dom + "/reflex-dom")
262
- (deps.reflex-dom + "/reflex-dom-core")
263
- deps.reflex
264
- ]
247
+ {
248
+ obelisk-frontend = deps.obelisk + "/lib/frontend";
249
+ obelisk-backend = {
250
+ src = deps.obelisk + "/lib/backend";
251
+ condition = "!arch(javascript)";
252
+ };
253
+
254
+ reflex-dom = deps.reflex-dom + "/reflex-dom";
255
+ reflex-dom-core = deps.reflex-dom + "/reflex-dom-core";
256
+ reflex = deps.reflex;
257
+ }
265
258
```
266
259
'' ;
267
260
} ;
0 commit comments