about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authormaralorn <mail@maralorn.de>2023-10-22 02:18:30 +0200
committerGitHub <noreply@github.com>2023-10-22 02:18:30 +0200
commitf8e6a54a9dfb3e7ad00598dac18babbf46e47057 (patch)
tree773346d9ae6180ea6933636ff61fce723fb31e83 /pkgs/development/haskell-modules
parentb0e44a6fa7a2a476ab9f09c091f6d86b65693224 (diff)
parent30a24a3bcdb7452ea8fe2d2d8d49fca569905333 (diff)
Merge pull request #243601 from nomeata/hackage-dont-report-broken
haskell.package-list: dont report broken packages to Hackage
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/package-list.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/package-list.nix b/pkgs/development/haskell-modules/package-list.nix
index 50daaf136231f..bde8daed6f355 100644
--- a/pkgs/development/haskell-modules/package-list.nix
+++ b/pkgs/development/haskell-modules/package-list.nix
@@ -10,12 +10,13 @@ let
     let
       version = pkg.version or "";
     in
-    lib.optionalString (isPvpVersion version)
+    lib.optionalString (isPvpVersion version && (pkg.meta.hydraPlatforms or null) != lib.platforms.none)
       ''"${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 (according to hydraPlatforms)
   # 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.
   ''