lol

haskell: Only report non-broken packages to Hackage

Claiming that a hackage package is available in nixpkgs when we
explicitly mark it as broken is less helpful, so let's filter them out.

This changes the number of reported packages from 17137 to 10937.

Fixes #243512

+2 -1
+2 -1
pkgs/development/haskell-modules/package-list.nix
··· 10 let 11 version = pkg.version or ""; 12 in 13 - lib.optionalString (isPvpVersion version) 14 ''"${name}","${version}","http://hydra.nixos.org/job/nixpkgs/trunk/haskellPackages.${name}.x86_64-linux"''; 15 all-haskellPackages = builtins.toFile "all-haskellPackages" (lib.concatStringsSep "\n" (lib.filter (x: x != "") (lib.mapAttrsToList pkgLine haskellPackages))); 16 in 17 runCommand "hackage-package-list" { } 18 # This command will make a join between all packages on hackage and haskellPackages.*. 19 # It creates a valid csv file which can be uploaded to hackage.haskell.org. 20 # The call is wrapped in echo $(...) to trim trailing newline, which hackage requires. 21 ''
··· 10 let 11 version = pkg.version or ""; 12 in 13 + lib.optionalString (isPvpVersion version && !pkg.meta.broken) 14 ''"${name}","${version}","http://hydra.nixos.org/job/nixpkgs/trunk/haskellPackages.${name}.x86_64-linux"''; 15 all-haskellPackages = builtins.toFile "all-haskellPackages" (lib.concatStringsSep "\n" (lib.filter (x: x != "") (lib.mapAttrsToList pkgLine haskellPackages))); 16 in 17 runCommand "hackage-package-list" { } 18 # This command will make a join between all packages on hackage and haskellPackages.*. 19 + # It ignores packages marked as broken. 20 # It creates a valid csv file which can be uploaded to hackage.haskell.org. 21 # The call is wrapped in echo $(...) to trim trailing newline, which hackage requires. 22 ''