on iko/ghcjs-patch-master help sign in
Exclude packages with no library from mixLibraries (#883)
800b536Hamish Mackenzie
overlays/haskell.nix+3−1
@@ -519,7 +519,9 @@ final: prev: {
519 name = package.identifier.name + "-" + package.identifier.version;
519 name = package.identifier.name + "-" + package.identifier.version;
520 inherit (components) library;
520 inherit (components) library;
521 checks = final.lib.filter (final.lib.isDerivation) (final.lib.attrValues package'.checks);
521 checks = final.lib.filter (final.lib.isDerivation) (final.lib.attrValues package'.checks);
522+ mixLibraries = final.lib.concatMap
523+ (pkg: final.lib.optional (pkg.components ? library) pkg.components.library)
522− mixLibraries = map (pkg: pkg.components.library) (final.lib.attrValues (haskellLib.selectProjectPackages project.hsPkgs));
524+ (final.lib.attrValues (haskellLib.selectProjectPackages project.hsPkgs));
523 });
525 });
524 }
526 }
525 ) rawProject.hsPkgs
527 ) rawProject.hsPkgs