on iko/ghcjs-patch-master help sign in
Exclude packages with no library from mixLibraries (#883)
commit800b536c97e58fe7e403b957941dd26ade0fe28f authorHamish Mackenzie <Hamish.Mackenzie@iohk.io> dateMon 19 Oct 2020, 01:50 (6 years ago) parent7cff00d
1 file changed+3−1
overlays/haskell.nix+3−1
overlays/haskell.nix+3−1
@@ -519,7 +519,9 @@ final: prev: {
519519 name = package.identifier.name + "-" + package.identifier.version;
520520 inherit (components) library;
521521 checks = final.lib.filter (final.lib.isDerivation) (final.lib.attrValues package'.checks);
522− mixLibraries = map (pkg: pkg.components.library) (final.lib.attrValues (haskellLib.selectProjectPackages project.hsPkgs));
522+ mixLibraries = final.lib.concatMap
523+ (pkg: final.lib.optional (pkg.components ? library) pkg.components.library)
524+ (final.lib.attrValues (haskellLib.selectProjectPackages project.hsPkgs));
523525 });
524526 }
525527 ) rawProject.hsPkgs