From 693cc5ffe409800801d9214f1a97e0bdba325c43 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Thu, 6 Feb 2025 14:36:44 +0100 Subject: [PATCH] haskell.packages.*.semaphore-compat: only test on GHC == 9.6.* semaphore-compat only supports unix >= 2.8.1.0 which is bundled with GHC >= 9.6. Packages for GHC < 9.6 that depend on semaphore-compat will need to overrideScope unix, probably. My current hope is that we can just avoid this whole issue or such packages only conditionally need semaphore-compat for ghc >= 9.6. --- pkgs/top-level/release-haskell.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/top-level/release-haskell.nix b/pkgs/top-level/release-haskell.nix index 4c44d6624fd3..3a6be7d93fe3 100644 --- a/pkgs/top-level/release-haskell.nix +++ b/pkgs/top-level/release-haskell.nix @@ -604,12 +604,8 @@ let hashable = released; primitive = released; semaphore-compat = [ - # Compiler < 9.8 don't have the semaphore-compat core package - compilerNames.ghc865Binary - compilerNames.ghc8107 - compilerNames.ghc902 - compilerNames.ghc928 - compilerNames.ghc948 + # Compiler < 9.8 don't have the semaphore-compat core package, but + # requires unix >= 2.8.1.0 which implies GHC >= 9.6 for us. compilerNames.ghc966 ]; weeder = lib.subtractLists [