···1010 let
1111 version = pkg.version or "";
1212 in
1313- lib.optionalString (isPvpVersion version && !pkg.meta.broken)
1313+ lib.optionalString (isPvpVersion version && (pkg.meta.hydraPlatforms or null) != lib.platforms.none)
1414 ''"${name}","${version}","http://hydra.nixos.org/job/nixpkgs/trunk/haskellPackages.${name}.x86_64-linux"'';
1515 all-haskellPackages = builtins.toFile "all-haskellPackages" (lib.concatStringsSep "\n" (lib.filter (x: x != "") (lib.mapAttrsToList pkgLine haskellPackages)));
1616in
1717runCommand "hackage-package-list" { }
1818 # This command will make a join between all packages on hackage and haskellPackages.*.
1919- # It ignores packages marked as broken.
1919+ # It ignores packages marked as broken (according to hydraPlatforms)
2020 # It creates a valid csv file which can be uploaded to hackage.haskell.org.
2121 # The call is wrapped in echo $(...) to trim trailing newline, which hackage requires.
2222 ''