File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 47
47
name = pkgs . lib . removePrefix "${ prefix } :" n ;
48
48
value = ( if cabal2nixComponents == null then { } else cabal2nixComponents . ${ collectionName } . ${ name } ) // {
49
49
buildable = true ;
50
- } // lookupDependencies hsPkgs ( c . depends ++ pkgs . lib . optional ( p ? components ) p . id ) c . exe-depends ;
50
+ } // lookupDependencies hsPkgs (
51
+ c . depends
52
+ # If plan.json uses a single unit for this package (build-type: Custom),
53
+ # then it will leave the package itself out of `c.depends` for the
54
+ # components of the package.
55
+ # Haskell.nix builds the components separately so we need
56
+ # to add the `library` component as a dependency.
57
+ ++ pkgs . lib . optional ( p ? components && p . components ? lib ) p . id
58
+ ) c . exe-depends ;
51
59
in { inherit name value ; }
52
60
) ) components ) ) ;
53
61
in
You can’t perform that action at this time.
0 commit comments