Skip to content

Commit f7f06b3

Browse files
committed
Library component may not have exe-depends
1 parent d91fcf0 commit f7f06b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

overlays/haskell.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ final: prev: {
662662
(hsPkgs.pkgsBuildBuild.${to-key by-id.${d}} or hsPkgs.pkgsBuildBuild.${by-id.${d}.pkg-name}).components.exes.${final.lib.removePrefix "exe:" by-id.${d}.component-name};
663663
getComponents = cabal2nixComponents: hsPkgs: p:
664664
let
665-
components = p.components or { ${p.component-name or "lib"} = { inherit (p) depends exe-depends; }; };
665+
components = p.components or { ${p.component-name or "lib"} = { inherit (p) depends; exe-depends = p.exe-depends or []; }; };
666666
componentsWithPrefix = collectionName: prefix:
667667
final.lib.listToAttrs (final.lib.concatLists (final.lib.mapAttrsToList (n: c:
668668
final.lib.optional (final.lib.hasPrefix "${prefix}:" n) (
@@ -737,7 +737,7 @@ final: prev: {
737737
sha256 = p.pkg-src-sha256;
738738
} // final.lib.optionalAttrs (p.pkg-src.type or "" == "local") {
739739
src = if final.lib.hasPrefix "/" p.pkg-src.path && !final.lib.hasPrefix "${callProjectResults.src.origSubDir or ""}/." p.pkg-src.path
740-
then __trace p.pkg-src.path p.pkg-src.path
740+
then p.pkg-src.path
741741
else callProjectResults.src + final.lib.removePrefix "${callProjectResults.src.origSubDir or ""}/." p.pkg-src.path;
742742
} // {
743743
flags = p.flags;

0 commit comments

Comments
 (0)