File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 67
67
selectedComponents =
68
68
lib . filter isSelectedComponent ( lib . attrValues transitiveDependenciesComponents ) ;
69
69
70
+ allHsPkgsComponents = lib . concatMap haskellLib . getAllComponents ( builtins . attrValues hsPkgs ) ;
71
+
70
72
# Given a list of `depends`, removes those which are selected components
71
73
removeSelectedInputs =
72
74
lib . filter ( input : ! ( isSelectedComponent input ) ) ;
105
107
systemInputs = removeSelectedInputs ( uniqueWithName allSystemInputs ) ;
106
108
107
109
nativeBuildInputs = removeSelectedInputs
108
- ( lib . concatMap ( c : c . executableToolDepends ) selectedComponents ) ;
110
+ ( uniqueWithName ( lib . concatMap ( c : c . executableToolDepends )
111
+ # When not using `exactDeps` cabal may try to build arbitrary dependencies
112
+ # so in this case we need to provide the build tools for all of hsPkgs:
113
+ ( if exactDeps then selectedComponents else allHsPkgsComponents ) ) ) ;
109
114
110
115
# Set up a "dummy" component to use with ghcForComponent.
111
116
component = {
You can’t perform that action at this time.
0 commit comments