From 5cddaf9e1dbc9cda8d858a58445ce876531860a2 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Mon, 20 Apr 2026 11:17:11 +0100 Subject: [PATCH] haskellPackages.postgresql-types: unbreak, run unit tests postgresql-types ships a second `integration-tests` suite that requires testcontainers-postgresql and Docker; select just `unit-tests` via testTargets so Hydra can still run the hspec suite. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../haskell-modules/configuration-hackage2nix/broken.yaml | 1 - pkgs/development/haskell-modules/configuration-nix.nix | 3 +++ pkgs/development/haskell-modules/hackage-packages.nix | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml index b0cd127e5fc2..d3a55ec09527 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml @@ -4988,7 +4988,6 @@ broken-packages: - postgresql-tx-monad-logger # failure in job https://hydra.nixos.org/build/233227034 at 2023-09-02 - postgresql-tx-simple # failure in job https://hydra.nixos.org/build/233242850 at 2023-09-02 - postgresql-typed-lifted # failure in job https://hydra.nixos.org/build/233215141 at 2023-09-02 - - postgresql-types # failure in job https://hydra.nixos.org/build/326308328 at 2026-04-12 - postgrest-ws # failure in job https://hydra.nixos.org/build/233247807 at 2023-09-02 - postie # failure in job https://hydra.nixos.org/build/233259075 at 2023-09-02 - postmark-streams # failure in job https://hydra.nixos.org/build/233233210 at 2023-09-02 diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 4a08e51644ff..06f3f9204c76 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -1477,6 +1477,9 @@ builtins.intersectAttrs super { (dontCheckIf (!pkgs.postgresql.doInstallCheck || !self.testcontainers.doCheck)) ]; + # integration-tests suite needs docker/testcontainers; run only unit-tests. + postgresql-types = overrideCabal { testTargets = [ "unit-tests" ]; } super.postgresql-types; + users-postgresql-simple = lib.pipe super.users-postgresql-simple [ (addTestToolDepends [ pkgs.postgresql diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index aadc4db8eb79..90b040767a12 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -551480,8 +551480,6 @@ self: { doHaddock = false; description = "Precise PostgreSQL types representation and driver-agnostic codecs"; license = lib.meta.getLicenseFromSpdxId "MIT"; - hydraPlatforms = lib.platforms.none; - broken = true; } ) { };