File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 18
18
else existing . ${ (builtins . head available ) . id } . components . ${ collectionName } . ${ name } ;
19
19
componentsWithPrefix = collectionName : prefix :
20
20
lib . listToAttrs ( lib . concatLists ( lib . mapAttrsToList ( n : available :
21
- lib . optional ( lib . hasPrefix "${ prefix } :" n && ( builtins . length available != 1 || ! builtins . elem ( builtins . head available ) [ "TargetNotBuildable" " TargetNotLocal"] ) ) (
21
+ lib . optional ( lib . hasPrefix "${ prefix } :" n && ( builtins . length available != 1 || ! builtins . elem ( builtins . head available ) [ "TargetNotLocal" ] ) ) (
22
22
let
23
23
name = lib . removePrefix "${ prefix } :" n ;
24
24
value = lookupComponent collectionName name available ;
45
45
( _ : d : pkgs . haskell-nix . haskellLib . check d )
46
46
( lib . filterAttrs ( _ : d : d . config . doCheck ) components . tests ) ) ) ;
47
47
} ;
48
+ buildableTargets = lib . filter ( x : x . available != [ ] ) (
49
+ lib . map ( x : x // { available = lib . filter ( n : n != "TargetNotBuildable" ) x . available ; } )
50
+ config . plan-json . targets ) ;
48
51
in {
49
52
options . hsPkgs = lib . mkOption {
50
53
type = lib . types . unspecified ;
63
66
components = err ;
64
67
checks = err ;
65
68
}
66
- else redirect existing packageName packageTargets ) ( builtins . groupBy ( x : x . pkg-name ) config . plan-json . targets ) ) config . preExistingPkgs
69
+ else redirect existing packageName packageTargets ) ( builtins . groupBy ( x : x . pkg-name ) buildableTargets ) ) config . preExistingPkgs
67
70
68
71
# Redirect for `${name}-${version}`
69
72
// builtins . mapAttrs ( packageNameAndVersion : packageTargets : redirect existing packageNameAndVersion packageTargets )
70
- ( builtins . groupBy ( x : "${ x . pkg-name } -${ x . pkg-version } " ) config . plan-json . targets ) ;
73
+ ( builtins . groupBy ( x : "${ x . pkg-name } -${ x . pkg-version } " ) buildableTargets ) ;
71
74
} ;
72
75
}
You can’t perform that action at this time.
0 commit comments