diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index d566e4f66f9d7..e0d9ade4a2721 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1740,6 +1740,21 @@ with haskellLib; (appendPatches [ ./patches/pattern-arrows-add-fix-import.patch ]) ]; + # posix-waitpid - Fix CPid constructor import and version bounds + # Broken since 2011 (GHC 7.4+), marked broken in nixpkgs since 2016 + # The original package has no repo however there's a fork with the + # fix at https://github.com/GaloisInc/posix-waitpid + posix-waitpid = lib.pipe super.posix-waitpid [ + (overrideCabal (drv: { + postPatch = '' + substituteInPlace System/Posix/Waitpid.hs \ + --replace 'import System.Posix.Types (CPid)' \ + 'import System.Posix.Types (CPid(..))' + ''; + })) + doJailbreak + ]; + # 2024-03-19: Fix for mtl >= 2.3 cheapskate = lib.pipe super.cheapskate [ doJailbreak diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml index 4561394deeca7..966a7509a715e 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml @@ -4934,7 +4934,6 @@ broken-packages: - posix-acl # failure in job https://hydra.nixos.org/build/233222892 at 2023-09-02 - posix-filelock # failure in job https://hydra.nixos.org/build/252726822 at 2024-03-16 - posix-realtime # failure in job https://hydra.nixos.org/build/233191463 at 2023-09-02 - - posix-waitpid # failure in job https://hydra.nixos.org/build/233206551 at 2023-09-02 - postcodes # failure in job https://hydra.nixos.org/build/233247290 at 2023-09-02 - postgis-trivial # failure in job https://hydra.nixos.org/build/295096168 at 2025-04-22 - postgres-embedded # failure in job https://hydra.nixos.org/build/233246098 at 2023-09-02 diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 4c4a4078e2c0b..99b233b58c3e3 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -536784,8 +536784,6 @@ self: { ]; description = "Low-level wrapping of POSIX waitpid(2)"; license = lib.licenses.mit; - hydraPlatforms = lib.platforms.none; - broken = true; } ) { };