File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 24
24
value = lookupComponent collectionName name available ;
25
25
in { inherit name value ; }
26
26
) ) componentsByName ) ) ;
27
+ defaultTargetPackage = config . hsPkgs . ${ ( builtins . head (
28
+ # Use the package identified by the library component
29
+ componentsByName . lib or
30
+ # Or by the first component
31
+ componentsByName . ${ builtins . head ( builtins . attrNames componentsByName ) }
32
+ ) ) . id } ;
27
33
in rec {
28
34
isRedirect = true ;
29
35
identifier = rec { name = ( builtins . head packageTargets ) . pkg-name ; version = ( builtins . head packageTargets ) . pkg-version ; id = "${ name } -${ version } " ; } ;
35
41
checks = pkgs . recurseIntoAttrs ( builtins . mapAttrs
36
42
( _ : d : pkgs . haskell-nix . haskellLib . check d )
37
43
( lib . filterAttrs ( _ : d : d . config . doCheck ) components . tests ) ) ;
44
+ inherit ( defaultTargetPackage ) buildType setup ;
38
45
} ;
39
46
in {
40
47
hsPkgs =
You can’t perform that action at this time.
0 commit comments