Skip to content

Commit d3f35cb

Browse files
committed
Fix for cross compilation
1 parent 081da23 commit d3f35cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overlays/haskell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ final: prev: {
655655
else p.id;
656656
lookupDependency = hsPkgs: d:
657657
if by-id.${d}.component-name or "lib" == "lib"
658-
then hsPkgs.${to-key by-id.${d}}
658+
then hsPkgs.${to-key by-id.${d}} or hsPkgs.${by-id.${d}.pkg-name}
659659
else hsPkgs.${to-key by-id.${d}}.components.sublibs.${final.lib.removePrefix "lib:" by-id.${d}.component-name};
660660
lookupExeDependency = hsPkgs: d:
661661
# Try to lookup by ID, but if that fails use the name (currently a different plan is used by pkgsBuildBuild when cross compiling)

0 commit comments

Comments
 (0)