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
This commit is contained in:
parent
1ca4c99df7
commit
75340d54b4
@ -10,12 +10,13 @@ let
|
||||
let
|
||||
version = pkg.version or "";
|
||||
in
|
||||
lib.optionalString (isPvpVersion version)
|
||||
lib.optionalString (isPvpVersion version && !pkg.meta.broken)
|
||||
''"${name}","${version}","http://hydra.nixos.org/job/nixpkgs/trunk/haskellPackages.${name}.x86_64-linux"'';
|
||||
all-haskellPackages = builtins.toFile "all-haskellPackages" (lib.concatStringsSep "\n" (lib.filter (x: x != "") (lib.mapAttrsToList pkgLine haskellPackages)));
|
||||
in
|
||||
runCommand "hackage-package-list" { }
|
||||
# This command will make a join between all packages on hackage and haskellPackages.*.
|
||||
# It ignores packages marked as broken.
|
||||
# It creates a valid csv file which can be uploaded to hackage.haskell.org.
|
||||
# The call is wrapped in echo $(...) to trim trailing newline, which hackage requires.
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user