@@ -424,26 +424,28 @@ in {
424
424
} ] ) ( packageNames coverageProject ) ) ;
425
425
426
426
# Flake package names that are flat and match the cabal component names.
427
- mkFlakePackages = haskellPackages : builtins . listToAttrs (
428
- lib . concatLists ( lib . mapAttrsToList ( packageName : package :
429
- builtins . groupBy
430
- ( c : c . passthru . identifier . component-id )
431
- ( ( lib . optional ( package . components ? library ) package . components . library )
432
- ++ package . components . sublibs
433
- ++ package . components . exes
434
- ++ package . components . tests
435
- ++ package . components . benchmarks )
436
- ) haskellPackages ) ) ;
427
+ mkFlakePackages = haskellPackages :
428
+ builtins . groupBy
429
+ ( c : c . passthru . identifier . component-id )
430
+ ( lib . concatMap ( package :
431
+ ( lib . optional ( package . components ? library ) package . components . library ) ++
432
+ ( lib . concatMap builtins . attrValues
433
+ [ package . components . sublibs
434
+ package . components . exes
435
+ package . components . tests
436
+ package . components . benchmarks ] ) )
437
+ ( builtins . attrValues haskellPackages ) ) ;
437
438
438
439
# Flake package names that are flat and match the cabal component names.
439
- mkFlakeApps = haskellPackages : builtins . listToAttrs (
440
- lib . concatLists ( lib . mapAttrsToList ( packageName : package :
441
- builtins . groupBy
442
- ( c : c . passthru . identifier . component-id )
443
- ( package . components . exes
444
- ++ package . components . tests
445
- ++ package . components . benchmarks )
446
- ) haskellPackages ) ) ;
440
+ mkFlakeApps = haskellPackages :
441
+ builtins . groupBy
442
+ ( c : c . passthru . identifier . component-id )
443
+ ( lib . concatMap ( package :
444
+ ( lib . concatMap builtins . attrValues
445
+ [ package . components . exes
446
+ package . components . tests
447
+ package . components . benchmarks ] ) )
448
+ ( builtins . attrValues haskellPackages ) ) ;
447
449
448
450
# Flatten the result of collectChecks or collectChecks' for use in flake `checks`
449
451
mkFlakeChecks = allChecks : builtins . listToAttrs (
0 commit comments