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 4747 name = pkgs . lib . removePrefix "${ prefix } :" n ;
4848 value = ( if cabal2nixComponents == null then { } else cabal2nixComponents . ${ collectionName } . ${ name } ) // {
4949 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 ;
5159 in { inherit name value ; }
5260 ) ) components ) ) ;
5361 in
You can’t perform that action at this time.
0 commit comments