# COMMON OVERRIDES FOR THE HASKELL PACKAGE SET IN NIXPKGS # # This file contains haskell package overrides that are shared by all # haskell package sets provided by nixpkgs and distributed via the official # NixOS hydra instance. # # Overrides that would also make sense for custom haskell package sets not provided # as part of nixpkgs and that are specific to Nix should go in configuration-nix.nix # # See comment at the top of configuration-nix.nix for more information about this # distinction. { pkgs, haskellLib }: self: super: let inherit (pkgs) fetchpatch lib; inherit (lib) throwIfNot versionOlder; warnAfterVersion = ver: pkg: lib.warnIf (lib.versionOlder ver super.${pkg.pname}.version ) "override for haskellPackages.${pkg.pname} may no longer be needed" pkg; in with haskellLib; # To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. { # Make sure that Cabal_* can be built as-is Cabal_3_10_3_0 = doDistribute ( super.Cabal_3_10_3_0.override { Cabal-syntax = self.Cabal-syntax_3_10_3_0; } ); Cabal_3_12_1_0 = doDistribute ( super.Cabal_3_12_1_0.override { Cabal-syntax = self.Cabal-syntax_3_12_1_0; } ); Cabal_3_14_2_0 = overrideCabal (drv: { # Revert increased lower bound on unix since we have backported # the required patch to all GHC bundled versions of unix. postPatch = drv.postPatch or "" + '' substituteInPlace Cabal.cabal --replace-fail "unix >= 2.8.6.0" "unix >= 2.6.0.0" ''; }) ( doDistribute ( super.Cabal_3_14_2_0.override { Cabal-syntax = self.Cabal-syntax_3_14_2_0; } ) ); Cabal_3_16_1_0 = overrideCabal (drv: { # Revert increased lower bound on unix since we have backported # the required patch to all GHC bundled versions of unix. postPatch = drv.postPatch or "" + '' substituteInPlace Cabal.cabal --replace-fail "unix >= 2.8.6.0" "unix >= 2.6.0.0" ''; }) ( doDistribute ( super.Cabal_3_16_1_0.override { Cabal-syntax = self.Cabal-syntax_3_16_1_0; } ) ); # Needs matching version of Cabal Cabal-hooks = super.Cabal-hooks.override { Cabal = self.Cabal_3_16_1_0; }; # Needs Cabal>=3.14 cabal-lenses = super.cabal-lenses.override { Cabal = self.Cabal_3_14_2_0; }; # cabal-install needs most recent versions of Cabal and Cabal-syntax, # so we need to put some extra work for non-latest GHCs inherit ( let # !!! Use cself/csuper inside for the actual overrides cabalInstallOverlay = cself: csuper: lib.optionalAttrs (lib.versionOlder csuper.ghc.version "9.14") { Cabal = cself.Cabal_3_16_1_0; Cabal-syntax = cself.Cabal-syntax_3_16_1_0; }; in { cabal-install = let cabal-install = super.cabal-install.overrideScope cabalInstallOverlay; scope = cabal-install.scope; in # Some dead code is not properly eliminated on aarch64-darwin, leading # to bogus references to some dependencies. overrideCabal ( old: lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin && pkgs.stdenv.hostPlatform.isAarch64) { postInstall = '' ${old.postInstall or ""} remove-references-to -t ${scope.HTTP} "$out/bin/.cabal-wrapped" # if we don't override Cabal, it is taken from ghc's core libs remove-references-to -t ${ if scope.Cabal != null then scope.Cabal else scope.ghc } "$out/bin/.cabal-wrapped" ''; } ) cabal-install; cabal-install-solver = super.cabal-install-solver.overrideScope cabalInstallOverlay; cabal2nix-unstable = super.cabal2nix-unstable.overrideScope cabalInstallOverlay; distribution-nixpkgs-unstable = super.distribution-nixpkgs-unstable.overrideScope cabalInstallOverlay; hackage-db-unstable = super.hackage-db-unstable.overrideScope cabalInstallOverlay; } ) cabal-install cabal-install-solver cabal2nix-unstable distribution-nixpkgs-unstable hackage-db-unstable ; # Stack uses pure nix-shells for certain operations including HTTPS requests # This patch makes stack add pkgs.cacert, so the certificate DB is available. # https://github.com/commercialhaskell/stack/pull/6854 krank:ignore-line stack = appendPatches [ (pkgs.fetchpatch { name = "stack-add-cacert-to-pure-shells.patch"; url = "https://github.com/commercialhaskell/stack/commit/e869263cbd84a9e59ce1fa467e82993c8e7fb1dd.patch"; hash = "sha256-O7GaNgcGBY6m6GHqVtejqOu2HCWWKWXARPnr/upT1RQ="; includes = [ "src/Stack/Nix.hs" ]; }) ] ( overrideCabal (drv: { # Stack's source files use CRLF prePatch = '' ${drv.prePatch or ""} sed -i -e 's/\r$//' src/Stack/Nix.hs ''; }) super.stack ); # Extensions wants a specific version of Cabal for its list of Haskell # language extensions. extensions = doJailbreak ( super.extensions.override { Cabal = if versionOlder self.ghc.version "9.10" then self.Cabal_3_12_1_0 else # use GHC bundled version # N.B. for GHC >= 9.12, extensions needs to be upgraded null; } ); # First to upgrade to lsp >= 2.8 while HLS hasn't yet had a compatible release futhark = super.futhark.override { lsp = self.lsp_2_8_0_0; lsp-test = overrideCabal (old: { testTargets = [ "tests" "func-test" ]; }) ( self.lsp-test_0_18_0_0.override { lsp = self.lsp_2_8_0_0; lsp-types = self.lsp-types_2_4_0_0; } ); lsp-types = self.lsp-types_2_4_0_0; }; ####################################### ### HASKELL-LANGUAGE-SERVER SECTION ### ####################################### inherit ( let hls_overlay = lself: lsuper: { # For fourmolu 0.18 and ormolu 0.7.7 Cabal-syntax = lself.Cabal-syntax_3_14_2_0; Cabal = lself.Cabal_3_14_2_0; # Jailbreaking cabal-install-parsers to make it pick Cabal 3.14 instead of 3.12. cabal-install-parsers = doJailbreak lsuper.cabal-install-parsers; # Need a newer version of extensions to be compatible with the newer Cabal extensions = doJailbreak lself.extensions_0_1_1_0; # For most ghc versions, we overrideScope Cabal in the configuration-ghc-???.nix, # because some packages, like ormolu, need a newer Cabal version. # ghc-paths is special because it depends on Cabal for building # its Setup.hs, and therefor declares a Cabal dependency, but does # not actually use it as a build dependency. # That means ghc-paths can just use the ghc included Cabal version, # without causing package-db incoherence and we should do that because # otherwise we have different versions of ghc-paths # around which have the same abi-hash, which can lead to confusions and conflicts. ghc-paths = lsuper.ghc-paths.override { Cabal = null; }; }; in lib.mapAttrs (_: pkg: pkg.overrideScope hls_overlay) ( super // { # Work around test suite not finding executable due to https://github.com/haskell/cabal/issues/11598 fourmolu = appendPatches [ (pkgs.fetchpatch { name = "fourmolu-absolute-build-tool-paths.patch"; url = "https://github.com/fourmolu/fourmolu/commit/9217bc926ab80d20b815f0486be2184db07df4fc.patch"; hash = "sha256-ANzuKy5WfWCGZ7HFVBpTtuyUqzFfef/xR/v1KiyJEX4="; }) ] super.fourmolu; # HLS 2.11: Too strict bound on Diff 1.0. haskell-language-server = lib.pipe super.haskell-language-server [ dontCheck ( if versionOlder self.ghc.version "9.10" || versionOlder "9.11" self.ghc.version then addBuildDepends [ self.apply-refact self.hlint self.refact ] else lib.id ) ]; } ) ) hlint fourmolu ormolu haskell-language-server hls-plugin-api ghcide lsp-types ; # For -f-auto see cabal.project in haskell-language-server. ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser ( disableCabalFlag "auto" super.ghc-lib-parser-ex ); # Work around test suite not finding executable due to https://github.com/haskell/cabal/issues/11598 cabal-add = appendPatches [ (pkgs.fetchpatch { name = "cabal-add-absolute-build-tool-paths.patch"; url = "https://github.com/Bodigrim/cabal-add/commit/3b94b0175c294c2d0a30b6d8da3f56189216816c.patch"; hash = "sha256-4Nbro9Gl+RC78yprO8fYG/IWS7QvJPd0dKqSZb5jq9k="; }) ] super.cabal-add; ########################################### ### END HASKELL-LANGUAGE-SERVER SECTION ### ########################################### # network < 3.2.8 # bound only required when running under WINE: https://github.com/haskell/network/issues/604 iserv-proxy = doJailbreak super.iserv-proxy; # Test ldap server test/ldap.js is missing from sdist # https://github.com/supki/ldap-client/issues/18 ldap-client-og = dontCheck super.ldap-client-og; # Support for template-haskell >= 2.16 language-haskell-extract = appendPatch (pkgs.fetchpatch { url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/language-haskell-extract-0.2.4.patch"; sha256 = "0w4y3v69nd3yafpml4gr23l94bdhbmx8xky48a59lckmz5x9fgxv"; }) (doJailbreak super.language-haskell-extract); vector = overrideCabal (old: { # vector-doctest seems to be broken when executed via ./Setup test testTargets = [ "vector-tests-O0" "vector-tests-O2" ]; # inspection-testing doesn't work on all archs & ABIs doCheck = super.vector.doCheck && !self.inspection-testing.meta.broken; }) super.vector; # https://github.com/lspitzner/data-tree-print/issues/4 data-tree-print = doJailbreak super.data-tree-print; # Test suite hangs on 32bit. Unclear if this is a bug or not, but if so, then # it has been present in past versions as well. # https://github.com/haskell-unordered-containers/unordered-containers/issues/491 unordered-containers = if pkgs.stdenv.hostPlatform.is32bit then dontCheck super.unordered-containers else super.unordered-containers; aeson = # aeson's test suite includes some tests with big numbers that fail on 32bit # https://github.com/haskell/aeson/issues/1060 dontCheckIf pkgs.stdenv.hostPlatform.is32bit # Deal with infinite and NaN values generated by QuickCheck-2.14.3 super.aeson; time-compat = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "-p" (lib.concatStringsSep "&&" [ # Precision tests often fail in VMs: # https://github.com/haskellari/time-compat/issues/31 "!/getCurrentTime/" "!/taiClock/" ]) ]; }) super.time-compat; # 2023-06-28: Test error: https://hydra.nixos.org/build/225565149 orbits = dontCheck super.orbits; # 2025-02-10: Too strict bounds on tasty-quickcheck < 0.11 tasty-discover = doJailbreak super.tasty-discover; # 2025-02-10: Too strict bounds on tasty < 1.5 tasty-hunit-compat = doJailbreak super.tasty-hunit-compat; # Makes cross-compilation hang # https://github.com/composewell/streamly/issues/2840 streamly-core = overrideCabal (drv: { postPatch = '' substituteInPlace src/Streamly/Internal/Data/Array/Stream.hs \ --replace-fail '{-# INLINE splitAtArrayListRev #-}' "" ''; }) super.streamly-core; # Work around tasty >= 1.5.4 parallelism breaking the test suite criterion = appendPatches [ (pkgs.fetchpatch { name = "criterion-tasty-1.5.4.patch"; url = "https://github.com/haskell/criterion/commit/d555422d1779434432489efbc19d75011226c3e6.patch"; hash = "sha256-VRSfdzT/mzdRSMQmmIeycuChvRN/VDhYsHJQb0bRMaA="; }) ] super.criterion; # Avoid rebinding to the same port with tasty >= 1.5.4 parallelism # https://github.com/lpeterse/haskell-socket/pull/73 socket = appendPatches [ (pkgs.fetchpatch { name = "socket-tasty-1.5.4.patch"; url = "https://github.com/lpeterse/haskell-socket/commit/a2687d9f1a60cfb72f85962c501a68d110ed6de0.patch"; hash = "sha256-21qkRFnRF6nuM1BILps8o5A/QvaVQ6SkKxO0u2goXos="; }) ] super.socket; # https://github.com/flip111/haskell-socket-unix/issues/1 socket-unix = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "-j1" ]; }) super.socket-unix; # Expected failures are fixed as of GHC-9.10, # but the tests haven't been updated yet. # https://github.com/ocharles/weeder/issues/198 weeder = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "-p" "!/wrong/" ]; }) super.weeder; # Test suite doesn't find necessary test files when compiling # https://github.com/yesodweb/shakespeare/issues/294 shakespeare = dontCheck super.shakespeare; # Work around -Werror failures until a more permanent solution is released # https://github.com/haskell-cryptography/HsOpenSSL/issues/88 # https://github.com/haskell-cryptography/HsOpenSSL/issues/93 # https://github.com/haskell-cryptography/HsOpenSSL/issues/95 HsOpenSSL = appendConfigureFlags [ "--ghc-option=-optc=-Wno-error=incompatible-pointer-types" ] super.HsOpenSSL; # https://github.com/rethab/bindings-dsl/issues/46 bindings-libcddb = appendConfigureFlags [ "--ghc-option=-optc=-Wno-error=incompatible-pointer-types" ] super.bindings-libcddb; # https://github.com/ocramz/hdf5-lite/issues/3 hdf5-lite = appendConfigureFlags [ "--ghc-option=-optc=-Wno-error=implicit-function-declaration" ] super.hdf5-lite; # https://github.com/awkward-squad/termbox/issues/5 termbox-bindings-c = appendConfigureFlags [ "--ghc-option=-optc=-Wno-error=implicit-function-declaration" ] super.termbox-bindings-c; # There are numerical tests on random data, that may fail occasionally lapack = dontCheck super.lapack; # fpr-calc test suite depends on random >= 1.3 # see https://github.com/IntersectMBO/lsm-tree/issues/797 bloomfilter-blocked = lib.warnIf (lib.versionAtLeast self.random.version "1.3") "haskellPackages.bloomfilter-blocked: dontCheck can potentially be removed" dontCheck super.bloomfilter-blocked; # Missing files necessary for test suite compilation # https://github.com/brandonchinn178/kdl-hs/issues/33 kdl-hs = dontCheck super.kdl-hs; # support for transformers >= 0.6 lifted-base = appendPatch (fetchpatch { url = "https://github.com/basvandijk/lifted-base/commit/6b61483ec7fd0d5d5d56ccb967860d42740781e8.patch"; sha256 = "sha256-b29AVDiEMcShceRJyKEauK/411UkOh3ME9AnKEYvcEs="; }) super.lifted-base; leveldb-haskell = overrideCabal (drv: { version = "2024-05-05-unstable"; # Fix tests on mtl ≥ 2.3 # https://github.com/kim/leveldb-haskell/pull/42 src = pkgs.fetchFromGitHub { owner = "kim"; repo = "leveldb-haskell"; rev = "3a505f3a7de0f5d14463538d7c2c9a9881a60eb9"; sha256 = "sha256-okUn5ZuWcj8vPr0GWXvO1LygNCrDfttkDaUoOt+FLA0="; }; }) super.leveldb-haskell; # 2025-08-08: Allow QuickCheck >= 2.15 in selective's test-suite # https://github.com/snowleopard/selective/pull/81 selective = doJailbreak super.selective; # 2025-09-03: Allow QuickCheck >= 2.15 # https://github.com/sw17ch/data-clist/pull/28 data-clist = doJailbreak super.data-clist; # 2025-09-20: Allow QuickCheck >= 2.15 # https://github.com/raehik/binrep/issues/14 binrep = warnAfterVersion "1.1.0" (doJailbreak super.binrep); # Test suite can't be built with GHC 9.10, incorrect lower bound on t-h # https://codeberg.org/noiioiu/comonad-coactions/issues/1#issuecomment-14082215 comonad-coactions = dontCheck (doJailbreak super.comonad-coactions); # doctests don't evaluate properly # https://github.com/morphismtech/distributors/issues/23 distributors = dontCheck super.distributors; # Test files missing from sdist # https://github.com/sol/ghc-bench/issues/81 ghc-bench = dontCheck super.ghc-bench; # Needs QuickCheck >= 2.16 # https://github.com/input-output-hk/io-sim/issues/248 io-sim = dontCheck super.io-sim; # Test suites broken by hakyll 4.16, but lib is still okay # https://github.com/LaurentRDC/hakyll-images/issues/14 hakyll-images = dontCheck super.hakyll-images; # 2024-06-23: Hourglass is archived and had its last commit 6 years ago. # Patch is needed to add support for time 1.10, which is only used in the tests # https://github.com/vincenthz/hs-hourglass/pull/56 # Jailbreak is needed because a hackage revision added the (correct) time <1.10 bound. hourglass = doJailbreak ( appendPatches [ (pkgs.fetchpatch { name = "hourglass-pr-56.patch"; url = "https://github.com/vincenthz/hs-hourglass/commit/cfc2a4b01f9993b1b51432f0a95fa6730d9a558a.patch"; sha256 = "sha256-gntZf7RkaR4qzrhjrXSC69jE44SknPDBmfs4z9rVa5Q="; }) ] super.hourglass ); # Arion's test suite needs a Nixpkgs, which is cumbersome to do from Nixpkgs # itself. For instance, pkgs.path has dirty sources and puts a huge .git in the # store. Testing is done upstream. arion-compose = dontCheck super.arion-compose; # Don't call setEnv in parallel in the test suite (which leads to flaky failures) env-extra = appendPatches [ (pkgs.fetchpatch { name = "env-extra-no-parallel-setenv.patch"; url = "https://github.com/d12frosted/env-extra/commit/4fcbc031b210e71e4243fcfe7c48d381e2f51d78.patch"; sha256 = "sha256-EbXk+VOmxMJAMCMTXpTiW8fkbNI9za7f1alzCeaJaV4="; excludes = [ "package.yaml" ]; }) ] super.env-extra; # This used to be a core package provided by GHC, but then the compiler # dropped it. We define the name here to make sure that old packages which # depend on this library still evaluate (even though they won't compile # successfully with recent versions of the compiler). bin-package-db = null; # waiting for release: https://github.com/jwiegley/c2hsc/issues/41 c2hsc = appendPatch (fetchpatch { url = "https://github.com/jwiegley/c2hsc/commit/490ecab202e0de7fc995eedf744ad3cb408b53cc.patch"; sha256 = "1c7knpvxr7p8c159jkyk6w29653z5yzgjjqj11130bbb8mk9qhq7"; }) super.c2hsc; # https://github.com/agrafix/superbuffer/issues/4 # Too strict bounds on bytestring < 0.12 superbuffer = doJailbreak super.superbuffer; # Infinite recursion with test enabled. # 2025-02-14: Too strict bounds on attoparsec < 0.14 attoparsec-varword = doJailbreak (dontCheck super.attoparsec-varword); # Fix t_iter test which fails randomly, but frequently. No upstream feedback so far. # https://github.com/haskell/attoparsec/issues/232 attoparsec = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "-p" "$0!=\"tests.buf.t_iter\"" ]; }) super.attoparsec; attoparsec-isotropic = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "-p" "$0!=\"tests.leftToRight.buf.t_iter\"" ]; }) super.attoparsec-isotropic; # These packages (and their reverse deps) cannot be built with profiling enabled. ghc-heap-view = lib.pipe super.ghc-heap-view [ disableLibraryProfiling (warnAfterVersion "0.6.4.1") # 2025-09-18: Too strict bounds on base < 4.20 doJailbreak ]; ghc-datasize = disableLibraryProfiling super.ghc-datasize; ghc-vis = disableLibraryProfiling super.ghc-vis; # 2025-09-20: Too strict upper bound on base (<4.20) # https://github.com/phadej/regression-simple/issues/13 regression-simple = doJailbreak super.regression-simple; # Fix 32bit struct being used for 64bit syscall on 32bit platforms # https://github.com/haskellari/lukko/issues/15 lukko = appendPatches [ (fetchpatch { name = "lukko-ofd-locking-32bit.patch"; url = "https://github.com/haskellari/lukko/pull/32/commits/4e69ffad996c3771f50017b97375af249dd17c85.patch"; sha256 = "0n8vig48irjz0jckc20dzc23k16fl5hznrc0a81y02ms72msfwi1"; }) ] super.lukko; # Relax version constraints (network < 3.2, text < 2.1) # https://github.com/essandess/adblock2privoxy/pull/43 adblock2privoxy = doJailbreak super.adblock2privoxy; # 2025-07-15: Relax version constraints (network < 3.2) # Fixed upstream, but unreleased: https://github.com/fumieval/mason/pull/14 mason = (warnAfterVersion "0.2.6") (doJailbreak super.mason); # Missing test file https://gitlab.com/dpwiz/hs-jpeg-turbo/-/issues/1 jpeg-turbo = dontCheck super.jpeg-turbo; JuicyPixels-jpeg-turbo = dontCheck super.JuicyPixels-jpeg-turbo; # Repo is archived, package is abandoned: https://github.com/haskell-foundation/foundation basement = appendPatches [ # Fixes compilation for basement on i686 # https://github.com/haskell-foundation/foundation/pull/573 (fetchpatch { name = "basement-i686-ghc-9.4.patch"; url = "https://github.com/haskell-foundation/foundation/pull/573/commits/38be2c93acb6f459d24ed6c626981c35ccf44095.patch"; sha256 = "17kz8glfim29vyhj8idw8bdh3id5sl9zaq18zzih3schfvyjppj7"; stripLen = 1; }) ./patches/basement-add-cast.patch # Fixes compilation on windows ./patches/basement-ghcjs.patch # Fixes compilation on ghcjs ] super.basement; # Repo is archived, package is abandoned: https://github.com/haskell-foundation/foundation # Fixes compilation on ghcjs foundation = appendPatch ./patches/foundation-ghcjs.patch super.foundation; # Fixes compilation of memory with GHC >= 9.4 on 32bit platforms # https://github.com/vincenthz/hs-memory/pull/99 memory = appendPatches [ (fetchpatch { name = "memory-i686-ghc-9.4.patch"; url = "https://github.com/vincenthz/hs-memory/pull/99/commits/2738929ce15b4c8704bbbac24a08539b5d4bf30e.patch"; sha256 = "196rj83iq2k249132xsyhbbl81qi1j23h9pa6mmk6zvxpcf63yfw"; }) ] super.memory; # Depends on outdated deps hedgehog < 1.4, doctest < 0.12 for tests # As well as deepseq < 1.5 (so it forbids GHC 9.8) hw-fingertree = doJailbreak super.hw-fingertree; # Test suite is slow and sometimes comes up with counter examples. # Upstream is aware (https://github.com/isovector/nspace/issues/1), # if it's a bug, at least doesn't seem to be nixpkgs-specific. nspace = dontCheck super.nspace; # Unreleased commits relaxing bounds on various dependencies gitit = appendPatches [ (fetchpatch { name = "gitit-allow-hoauth2-2.14.patch"; url = "https://github.com/jgm/gitit/commit/58a226c48b37f076ccc1b94ad88a9ffc05f983cc.patch"; sha256 = "1fvfzbas18vsv9qvddp6g82hy9hdgz34n51w6dpkd7cm4sl07pjv"; }) (fetchpatch { name = "gitit-allow-pandoc-3.6.patch"; url = "https://github.com/jgm/gitit/commit/c57c790fa0db81d383f22901a0db4ffe90f1bfcc.patch"; sha256 = "0nbzxyc9gkhkag1fhv3qmw5zgblhbz0axrlsismrcvdzr28amii8"; }) (fetchpatch { name = "gitit-allow-zlib-0.7-network-3.2.patch"; url = "https://github.com/jgm/gitit/commit/efaee62bc32c558e618ad34458fa2ef85cb8eb1e.patch"; sha256 = "1ghky3afnib56w102mh09cz2alfyq743164mnjywwfl6a6yl6i5h"; }) (pkgs.fetchpatch { name = "gitit-pandoc-3.7.patch"; url = "https://github.com/jgm/gitit/commit/211631ffdd8b520f368220e5cfbd8d64a28b43b6.patch"; hash = "sha256-eVjwiGNfEKmeamsUfTNCxJm7OJ7N9xuYHfFllwtwRi0="; }) (pkgs.fetchpatch { name = "gitit-xml-conduit-1.10.patch"; url = "https://github.com/jgm/gitit/commit/88d1a91795e08ea573d50f4f24e2e1c5d6da5002.patch"; hash = "sha256-LrP51+Uxp1VPKrDkIhVlm3kSAnYkodiENtLbWHxV3B4="; }) ] super.gitit; # Cut off infinite recursion via test suites: # # tasty-quickcheck-0.11.1 (test) -> regex-tdfa-1.3.2.4 (test) -> doctest-parallel-0.4 # -> ghc-exactprint-1.10.0.0 -> extra-1.8 -> quickcheck-instances-0.3.33 (test) # -> uuid-types-1.0.6 (test) -> tasty-quickcheck-0.11.1 # # tasty-quickcheck is probably the least risky test suite to disable. tasty-quickcheck = dontCheck super.tasty-quickcheck; # https://github.com/schuelermine/ret/issues/3 ret = doJailbreak super.ret; # base < 4.19 # The latest release on hackage has an upper bound on containers which # breaks the build, though it works with the version of containers present # and the upper bound doesn't exist in code anymore: # > https://github.com/roelvandijk/numerals numerals = doJailbreak (dontCheck super.numerals); # Bound on containers is too strict but jailbreak doesn't work with conditional flags # https://github.com/NixOS/jailbreak-cabal/issues/24 containers-unicode-symbols = overrideCabal { postPatch = '' substituteInPlace containers-unicode-symbols.cabal \ --replace 'containers >= 0.5 && < 0.6.5' 'containers' ''; } super.containers-unicode-symbols; # Test file not included on hackage numerals-base = dontCheck (doJailbreak super.numerals-base); # This test keeps being aborted because it runs too quietly for too long Lazy-Pbkdf2 = if pkgs.stdenv.hostPlatform.isi686 then dontCheck super.Lazy-Pbkdf2 else super.Lazy-Pbkdf2; # check requires mysql server mysql-simple = dontCheck super.mysql-simple; # Requires file-io >= 0.2 if using OsPath flag (which we want for GHC >= 9.10) git-annex = lib.pipe (super.git-annex.override { file-io = self.file-io_0_2_0; }) [ (overrideCabal (drv: { # Hackage tarball only includes what is supported by `cabal install git-annex`, # but we want e.g. completions as well. See # https://web.archive.org/web/20160724083703/https://git-annex.branchable.com/bugs/bash_completion_file_is_missing_in_the_6.20160527_tarball_on_hackage/ # or git-annex @ 3571b077a1244330cc736181ee04b4d258a78476 doc/bugs/bash_completion_file_is_missing* src = pkgs.fetchgit { name = "git-annex-${super.git-annex.version}-src"; url = "git://git-annex.branchable.com/"; tag = super.git-annex.version; sha256 = "sha256-9DHaOZplSGuUQufra/hMdpykztbKKjDfu1Rp9zUs+tg="; # delete android and Android directories which cause issues on # darwin (case insensitive directory). Since we don't need them # during the build process, we can delete it to prevent a hash # mismatch on darwin. postFetch = '' rm -r $out/doc/?ndroid* ''; }; patches = drv.patches or [ ] ++ [ # Prevent .desktop files from being installed to $out/usr/share. # TODO(@sternenseemann): submit upstreamable patch resolving this # (this should be possible by also taking PREFIX into account). ./patches/git-annex-no-usr-prefix.patch ]; postPatch = '' substituteInPlace Makefile \ --replace-fail 'InstallDesktopFile $(PREFIX)/bin/git-annex' \ 'InstallDesktopFile git-annex' ''; # Work around race condition in test suite exposed by tasty-1.5.4 # TODO(@sternenseemann): make testFlags arg usable with git-annex preCheck = '' ${drv.preCheck or ""} appendToVar checkFlags -j1 ''; })) ]; # Fix test trying to access /home directory shell-conduit = overrideCabal (drv: { postPatch = "sed -i s/home/tmp/ test/Spec.hs"; }) super.shell-conduit; # No maintenance planned until eventual removal # https://github.com/NixOS/nixfmt/issues/340#issuecomment-3315920564 nixfmt = doJailbreak super.nixfmt; # Too strict upper bounds on turtle and text # https://github.com/awakesecurity/nix-deploy/issues/35 nix-deploy = doJailbreak super.nix-deploy; call-stack = appendPatches [ # Fixes test suites with GHC >= 9.10 (pkgs.fetchpatch { name = "call-stack-tests-normalize-pkg-name.patch"; url = "https://github.com/sol/call-stack/commit/cbbee23ce309d18201951e16a8b6d30b57e2bdf9.patch"; sha256 = "sha256-xkdjf8zXW+UMxot2Z8WYYmvAJsT+VGKXWGt19mZZwCg="; includes = [ "test/Data/CallStackSpec.hs" ]; }) ] super.call-stack; # Too strict upper bound on algebraic-graphs # https://github.com/awakesecurity/nix-graph/issues/5 nix-graph = doJailbreak super.nix-graph; # Pass in `pkgs.nix` for the required tools. This means that overriding # them sort of works, but only if you override all instances. nix-paths = if with pkgs.stdenv; buildPlatform.canExecute hostPlatform then super.nix-paths.override { nix-build = pkgs.nix; nix-env = pkgs.nix; nix-hash = pkgs.nix; nix-instantiate = pkgs.nix; nix-store = pkgs.nix; } else # When cross-compiling, nix-paths won't be able to detect # the path to the (host) tools at build time from PATH, # so we instruct it to check at runtime. enableCabalFlag "allow-relative-paths" ( super.nix-paths.override { nix-build = null; nix-env = null; nix-hash = null; nix-instantiate = null; nix-store = null; } ); # Fix `mv` not working on directories turtle = appendPatches [ (pkgs.fetchpatch { name = "turtle-fix-mv.patch"; url = "https://github.com/Gabriella439/turtle/commit/b3975531f8d6345da54b005f226adab095085865.patch"; sha256 = "sha256-EqvMQpRz/7hbY6wJ0xG8Ou6oKhwWdpjzBv+NPW6tnSY="; includes = [ "src/Turtle/Prelude.hs" ]; }) ] super.turtle; # Allow inspection-testing >= 0.6 in test suite algebraic-graphs = appendPatch (pkgs.fetchpatch2 { name = "algebraic-graphs-0.7-allow-inspection-testing-0.6.patch"; url = "https://github.com/snowleopard/alga/commit/d4e43fb42db05413459fb2df493361d5a666588a.patch"; hash = "sha256-feGEuALVJ0Zl8zJPIfgEFry9eH/MxA0Aw7zlDq0PC/s="; }) super.algebraic-graphs; inspection-testing = overrideCabal (drv: { broken = with pkgs.stdenv.hostPlatform; # Relies on DWARF <-> register mappings in GHC, not available for every arch & ABI # (check dwarfReturnRegNo in compiler/GHC/CmmToAsm/Dwarf/Constants.hs, that's where ppc64 elfv1 gives up) !(isx86 || (isPower64 && isAbiElfv2) || isAarch64) # We compile static with -fexternal-interpreter which is incompatible with plugins || (isStatic && lib.versionAtLeast self.ghc.version "9.10"); }) super.inspection-testing; # Too strict bounds on filepath, hpsec, tasty, tasty-quickcheck, transformers # https://github.com/illia-shkroba/pfile/issues/3 pfile = doJailbreak super.pfile; # Overly strict bounds on postgresql-simple (< 0.7), tasty (< 1.5) and tasty-quickcheck (< 0.11) # https://github.com/tdammers/migrant/pull/5 migrant-core = doJailbreak super.migrant-core; migrant-sqlite-simple = doJailbreak super.migrant-sqlite-simple; migrant-hdbc = doJailbreak super.migrant-hdbc; migrant-postgresql-simple = doJailbreak super.migrant-postgresql-simple; # 2025-09-03: jailbreak for base 4.20 and hashable 1.5 # https://github.com/typeclasses/ascii-case/pulls/1 ascii-case = lib.pipe super.ascii-case [ (warnAfterVersion "1.0.1.4") doJailbreak ]; # 2025-12-11: Too strict bound on containers (<0.7) # https://github.com/byteverse/disjoint-containers/pull/15 disjoint-containers = doJailbreak super.disjoint-containers; # Test suite doesn't compile with 9.6 # https://github.com/sebastiaanvisser/fclabels/issues/45 # Doesn't compile with 9.8 at all # https://github.com/sebastiaanvisser/fclabels/issues/46 fclabels = if lib.versionOlder self.ghc.version "9.8" then dontCheck super.fclabels else dontDistribute (markBroken super.fclabels); # Bounds on base are too strict. Upstream is no longer maintained: # https://github.com/phadej/regex-applicative-text/issues/13 krank:ignore-line regex-applicative-text = doJailbreak super.regex-applicative-text; # Tests require a Kafka broker running locally haskakafka = dontCheck super.haskakafka; # https://github.com/itchyny/qhs/issues/8 qhs = overrideSrc { version = "0.4.3"; src = pkgs.fetchzip { url = "mirror://hackage/qhs-0.4.3/qhs-0.4.3.tar.gz"; sha256 = "191015m47qdxzi8w5pvadgv95g8vk7v2gr76jzfgglyjy6zhb5wb"; }; } (warnAfterVersion "0.4.2" super.qhs); # Fix build with time >= 1.10 while retaining compat with time < 1.9 mbox = appendPatch ./patches/mbox-time-1.10.patch ( overrideCabal { editedCabalFile = null; revision = null; } super.mbox ); # https://github.com/techtangents/ablist/issues/1 ABList = dontCheck super.ABList; inline-c-cpp = overrideCabal (drv: { postPatch = (drv.postPatch or "") + '' substituteInPlace inline-c-cpp.cabal --replace "-optc-std=c++11" "" ''; }) super.inline-c-cpp; # Too strict upper bound on unicode-transforms # ipa = doJailbreak super.ipa; # Test suite depends on source code being available simple-affine-space = dontCheck super.simple-affine-space; # These packages try to execute non-existent external programs. cmaes = dontCheck super.cmaes; # http://hydra.cryp.to/build/498725/log/raw filestore = dontCheck super.filestore; squeal-postgresql = dontCheck super.squeal-postgresql; snowball = dontCheck super.snowball; sophia = dontCheck super.sophia; test-sandbox = dontCheck super.test-sandbox; texrunner = dontCheck super.texrunner; wai-middleware-hmac = dontCheck super.wai-middleware-hmac; xmlgen = dontCheck super.xmlgen; wai-cors = dontCheck super.wai-cors; # Needs QuickCheck >= 2.16, but Stackage is currently on 2.15 integer-logarithms = lib.warnIf (lib.versionAtLeast super.QuickCheck.version "2.16") "override for haskellPackages.integer-logarithms may no longer be needed" (dontCheck super.integer-logarithms); # Apply patch fixing an incorrect QuickCheck property which occasionally causes false negatives # https://github.com/Philonous/xml-picklers/issues/5 xml-picklers = appendPatch (pkgs.fetchpatch { name = "xml-picklers-fix-prop-xp-attribute.patch"; url = "https://github.com/Philonous/xml-picklers/commit/887e5416b5e61c589cadf775d82013eb87751ea2.patch"; sha256 = "sha256-EAyTVkAqCvJ0lRD0+q/htzBJ8iD5qP47j5i2fKhRrlw="; }) super.xml-picklers; pandoc-crossref = lib.pipe super.pandoc-crossref [ # https://github.com/lierdakil/pandoc-crossref/issues/492 doJailbreak # We are still using pandoc == 3.7.* (appendPatch ( lib.warnIf (lib.versionAtLeast self.pandoc.version "3.8") "haskellPackages.pandoc-crossref: remove revert of pandoc-3.8 patch" pkgs.fetchpatch { name = "pandoc-crossref-revert-pandoc-3.8-highlight.patch"; url = "https://github.com/lierdakil/pandoc-crossref/commit/b0c35a59d5a802f6525407bfeb31699ffd0b4671.patch"; hash = "sha256-MIITL9Qr3+1fKf1sTwHzXPcYTt3YC+vr9CpMgqsBXlc="; revert = true; } )) ]; pandoc = overrideCabal (drv: { patches = drv.patches or [ ] ++ [ # Adjust test fixtures for djot >= 0.1.2.3, patch extracted from unrelated change. (pkgs.fetchpatch { name = "pandoc-djot-0.1.2.3.patch"; url = "https://github.com/jgm/pandoc/commit/643712ca70b924c0edcc059699aa1ee42234be34.patch"; hash = "sha256-khDkb1PzC0fTaWTq3T04UvgoI+XefOJMaTV1d3Du8BU="; includes = [ "test/djot-reader.native" ]; }) # Adjust tests for skylighting-format-blaze-html >= 0.1.2 (pkgs.fetchpatch { name = "pandoc-skylighting-format-blaze-html-0.1.2.patch"; url = "https://github.com/jgm/pandoc/commit/cab682ba58f2eb7e940d1af508e196ff6b1c1112.patch"; hash = "sha256-lpddKGa8xs+Lhi62HhBgV04fUq2kkippA1xX2/b2ukM="; includes = [ "test/Tests/Writers/HTML.hs" ]; }) # Resolve test suite race condition(s) due to tasty >= 1.5.4 and # inDirectory, https://github.com/jgm/pandoc/issues/11566 krank:ignore-line (pkgs.fetchpatch { name = "pandoc-tests-fix-race-condition.patch"; url = "https://github.com/jgm/pandoc/commit/134296c54145ef8ea7de523774837055239e0b3d.patch"; hash = "sha256-s3v6ukoVZm8cvh9mAp0U+cQDT3p8QSu1F0oQD4Ks9F8="; }) ]; }) super.pandoc; # Too strict upper bound on data-default-class (< 0.2) # https://github.com/stackbuilders/dotenv-hs/issues/203 dotenv = doJailbreak super.dotenv; # 2022-01-29: Tests require package to be in ghc-db. aeson-schemas = dontCheck super.aeson-schemas; # Too strict bounds on transformers and resourcet # https://github.com/alphaHeavy/lzma-conduit/issues/23 krank:ignore-line lzma-conduit = doJailbreak super.lzma-conduit; # 2020-06-05: HACK: does not pass own build suite - `dontCheck` # 2024-01-15: too strict bound on free < 5.2 hnix = doJailbreak super.hnix; # 2025-09-13: too strict bound on algebraic-graphs hnix-store-core = warnAfterVersion "0.6.1.0" (doJailbreak super.hnix-store-core); # hnix doesn't support hnix-store-core >= 0.8: https://github.com/haskell-nix/hnix/pull/1112 hnix-store-core_0_8_0_0 = doDistribute super.hnix-store-core_0_8_0_0; hnix-store-db = super.hnix-store-db.override { hnix-store-core = self.hnix-store-core_0_8_0_0; }; hnix-store-json = super.hnix-store-json.override { hnix-store-core = self.hnix-store-core_0_8_0_0; }; hnix-store-readonly = super.hnix-store-readonly.override { hnix-store-core = self.hnix-store-core_0_8_0_0; }; hnix-store-remote_0_7_0_0 = doDistribute ( super.hnix-store-remote_0_7_0_0.override { hnix-store-core = self.hnix-store-core_0_8_0_0; } ); hnix-store-tests = super.hnix-store-tests.override { hnix-store-core = self.hnix-store-core_0_8_0_0; }; # Fails for non-obvious reasons while attempting to use doctest. focuslist = dontCheck super.focuslist; # ships broken Setup.hs https://github.com/facebook/Haxl/issues/165 # https://github.com/facebook/Haxl/pull/164 haxl = overrideCabal (drv: { postPatch = '' ${drv.postPatch or ""} rm Setup.hs ''; # non-deterministic failure https://github.com/facebook/Haxl/issues/85 # doesn't compile with text-2.1.2 in <2.5.1.2 doCheck = false; }) super.haxl; # Disable test suites to fix the build. acme-year = dontCheck super.acme-year; # http://hydra.cryp.to/build/497858/log/raw binary-search = dontCheck super.binary-search; bloodhound = dontCheck super.bloodhound; # https://github.com/plow-technologies/quickcheck-arbitrary-template/issues/10 command-qq = dontCheck super.command-qq; # http://hydra.cryp.to/build/499042/log/raw crc = dontCheck super.crc; # https://github.com/MichaelXavier/crc/issues/2 directory-layout = dontCheck super.directory-layout; ed25519 = dontCheck super.ed25519; fb = dontCheck super.fb; # needs credentials for Facebook friday-juicypixels = dontCheck super.friday-juicypixels; # tarball missing test/rgba8.png github-rest = dontCheck super.github-rest; # test suite needs the network gitlib-cmdline = dontCheck super.gitlib-cmdline; hackport = dontCheck super.hackport; hedis = dontCheck super.hedis; hlibgit2 = disableHardening [ "format" ] super.hlibgit2; hs2048 = dontCheck super.hs2048; # 2025-02-11: Too strict bounds on bytestring hsexif = doJailbreak (dontCheck super.hsexif); hspec-server = dontCheck super.hspec-server; HTF = overrideCabal (orig: { # The scripts in scripts/ are needed to build the test suite. preBuild = "patchShebangs --build scripts"; # test suite doesn't compile with aeson >= 2.0 # https://github.com/skogsbaer/HTF/issues/114 doCheck = false; }) super.HTF; http-link-header = dontCheck super.http-link-header; # non deterministic failure https://hydra.nixos.org/build/75041105 influxdb = dontCheck super.influxdb; integer-roots = dontCheck super.integer-roots; # requires an old version of smallcheck, will be fixed in > 1.0 itanium-abi = dontCheck super.itanium-abi; language-slice = dontCheck super.language-slice; # Group of libraries by same upstream maintainer for interacting with # Telegram messenger. Bit-rotted a bit since 2020. tdlib = appendPatch (fetchpatch { # https://github.com/poscat0x04/tdlib/pull/3 url = "https://github.com/poscat0x04/tdlib/commit/8eb9ecbc98c65a715469fdb8b67793ab375eda31.patch"; hash = "sha256-vEI7fTsiafNGBBl4VUXVCClW6xKLi+iK53fjcubgkpc="; }) (doJailbreak super.tdlib); tdlib-types = doJailbreak super.tdlib-types; tdlib-gen = doJailbreak super.tdlib-gen; # https://github.com/poscat0x04/language-tl/pull/1 language-tl = doJailbreak super.language-tl; ldap-client = dontCheck super.ldap-client; matplotlib = dontCheck super.matplotlib; modular-arithmetic = dontCheck super.modular-arithmetic; # tests require a very old Glob (0.7.*) opaleye = dontCheck super.opaleye; os-release = dontCheck super.os-release; parameterized = dontCheck super.parameterized; # https://github.com/louispan/parameterized/issues/2 persistent-redis = dontCheck super.persistent-redis; posix-pty = dontCheck super.posix-pty; # https://github.com/merijn/posix-pty/issues/12 postgresql-binary = dontCheck super.postgresql-binary; # needs a running postgresql server pwstore-cli = dontCheck super.pwstore-cli; quantities = dontCheck super.quantities; # https://github.com/LeventErkok/sbv/pull/772#issuecomment-3930657736 # SBV requires a multitude of external tools, some not packaged with nixpkgs # for tests to pass, users may only want to use one or two of tools. # maintainer recomends disabling tests sbv = dontCheck super.sbv; sdl2 = dontCheck super.sdl2; # the test suite needs an x server shadowsocks = dontCheck super.shadowsocks; sourcemap = dontCheck super.sourcemap; tar = dontCheck super.tar; # https://hydra.nixos.org/build/25088435/nixlog/2 (fails only on 32-bit) tpdb = dontCheck super.tpdb; ua-parser = dontCheck super.ua-parser; unagi-chan = dontCheck super.unagi-chan; # Test in question times out on Hydra builders. grisette = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "-t" "!mrgAsum/semantics" ]; }) super.grisette; # Allow template-haskell 2.22 # https://github.com/well-typed/ixset-typed/pull/23 ixset-typed = appendPatches [ (fetchpatch { name = "ixset-typed-template-haskell-2.21.patch"; url = "https://github.com/well-typed/ixset-typed/commit/085cccbaa845bff4255028ed5ff71402e98a953a.patch"; sha256 = "1cz30dmby3ff3zcnyz7d2xsqls7zxmzig7bgzy2gfa24s3sa32jg"; }) (fetchpatch { name = "ixset-typed-template-haskell-2.22.patch"; url = "https://github.com/well-typed/ixset-typed/commit/0d699386eab5c4f6aa53e4de41defb460acbbd99.patch"; sha256 = "04lbfvaww05czhnld674c9hm952f94xpicf08hby8xpksfj7rs41"; }) ] ( overrideCabal { editedCabalFile = null; revision = null; } super.ixset-typed ); # https://github.com/bos/snappy/issues/1 # https://github.com/bos/snappy/pull/10 snappy = dontCheck super.snappy; # 2026-04-07: jailbreak for time 1.15 # https://github.com/mchav/snappy-hs/issues/2 snappy-hs = doJailbreak super.snappy-hs; # https://github.com/joeyadams/haskell-stm-delay/issues/3 stm-delay = dontCheck super.stm-delay; # Skip test that checks a race condition between stm and stm-queue stm-queue = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "--skip" "/Data.Queue/behaves faster than TQueue in its worst case/" ]; }) super.stm-queue; # Missing module. rematch = dontCheck super.rematch; # https://github.com/tcrayford/rematch/issues/5 # Package exists only to be example of documentation, yet it has restrictive # "base" dependency. haddock-cheatsheet = doJailbreak super.haddock-cheatsheet; # This packages compiles 4+ hours on a fast machine. That's just unreasonable. CHXHtml = dontDistribute super.CHXHtml; # Avoid "QuickCheck >=2.3 && <2.10" dependency we cannot fulfill in lts-11.x. test-framework = dontCheck super.test-framework; # Test suite won't compile against tasty-hunit 0.10.x. binary-parsers = dontCheck super.binary-parsers; # https://github.com/ndmitchell/shake/issues/804 shake = dontCheck super.shake; # Missing file in source distribution: # - https://github.com/karun012/doctest-discover/issues/22 # - https://github.com/karun012/doctest-discover/issues/23 # # When these are fixed the following needs to be enabled again: # # # Depends on itself for testing # doctest-discover = addBuildTool super.doctest-discover # (if pkgs.stdenv.buildPlatform != pkgs.stdenv.hostPlatform # then self.buildHaskellPackages.doctest-discover # else dontCheck super.doctest-discover); doctest-discover = dontCheck super.doctest-discover; # Known issue with nondeterministic test suite failure # https://github.com/nomeata/tasty-expected-failure/issues/21 tasty-expected-failure = dontCheck super.tasty-expected-failure; # https://github.com/kkardzis/curlhs/issues/6 curlhs = dontCheck super.curlhs; # curl 7.87.0 introduces a preprocessor typechecker of sorts which fails on # incorrect usages of curl_easy_getopt and similar functions. Presumably # because the wrappers in curlc.c don't use static values for the different # arguments to curl_easy_getinfo, it complains and needs to be disabled. # https://github.com/GaloisInc/curl/issues/28 curl = appendConfigureFlags [ "--ghc-option=-DCURL_DISABLE_TYPECHECK" ] super.curl; # 2026-02-19: too strict bounds on bytestring (<0.11) and text (<2) # https://github.com/theam/require/pull/31 require = doJailbreak super.require; # 2022-03-19: Testsuite is failing: https://github.com/puffnfresh/haskell-jwt/issues/2 jwt = dontCheck super.jwt; # 2024-03-10: Getting the test suite to run requires a correctly crafted GHC_ENVIRONMENT variable. graphql-client = dontCheck super.graphql-client; # Make elisp files available at a location where people expect it. hindent = ( overrideCabal (drv: { # We cannot easily byte-compile these files, unfortunately, because they # depend on a new version of haskell-mode that we don't have yet. postInstall = '' local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" ) mkdir -p $data/share/emacs ln -s $lispdir $data/share/emacs/site-lisp ''; }) super.hindent ); # https://github.com/basvandijk/concurrent-extra/issues/12 concurrent-extra = dontCheck super.concurrent-extra; # Too strict bounds on bytestring (<0.12) on the test suite # https://github.com/emilypi/Base32/issues/24 base32 = doJailbreak super.base32; # * The standard libraries are compiled separately. # * We need a few patches from master to fix compilation with # updated dependencies which can be # removed when the next idris release comes around. idris = lib.pipe super.idris [ dontCheck doJailbreak (appendPatch (fetchpatch { name = "idris-bumps.patch"; url = "https://github.com/idris-lang/Idris-dev/compare/c99bc9e4af4ea32d2172f873152b76122ee4ee14...cf78f0fb337d50f4f0dba235b6bbe67030f1ff47.patch"; hash = "sha256-RCMIRHIAK1PCm4B7v+5gXNd2buHXIqyAxei4bU8+eCk="; })) (self.generateOptparseApplicativeCompletions [ "idris" ]) ]; # https://hydra.nixos.org/build/42769611/nixlog/1/raw # note: the library is unmaintained, no upstream issue dataenc = doJailbreak super.dataenc; # Test suite occasionally runs for 1+ days on Hydra. distributed-process-tests = dontCheck super.distributed-process-tests; # https://github.com/mulby/diff-parse/issues/9 diff-parse = doJailbreak super.diff-parse; # No upstream issue tracker hspec-expectations-pretty-diff = dontCheck super.hspec-expectations-pretty-diff; # The tests spuriously fail libmpd = dontCheck super.libmpd; # https://github.com/xu-hao/namespace/issues/1 namespace = doJailbreak super.namespace; # https://github.com/danidiaz/streaming-eversion/issues/1 streaming-eversion = dontCheck super.streaming-eversion; # https://github.com/danidiaz/tailfile-hinotify/issues/2 tailfile-hinotify = doJailbreak (dontCheck super.tailfile-hinotify); # 2025-09-01: Merged patch from upstream to fix bounds: optics = appendPatch (fetchpatch { name = "optics-fix-inspection-testing-bound"; url = "https://github.com/well-typed/optics/commit/d16b1ac5476c89cc94fb108fe1be268791affca6.patch"; sha256 = "sha256-w0L/EXSWRQkCkFnvXYel0BNgQQhxn6zATkD3GZS5gz8="; relative = "optics"; }) super.optics; # 2025-02-10: Too strict bounds on text < 2.1 digestive-functors-blaze = doJailbreak super.digestive-functors-blaze; # Too strict bound on QuickCheck <2.15 hgmp = doJailbreak super.hgmp; # Z3 removed aliases for boolean types in 4.12 inherit ( let fixZ3 = appendConfigureFlags [ "--hsc2hs-option=-DZ3_Bool=bool" "--hsc2hs-option=-DZ3_TRUE=true" "--hsc2hs-option=-DZ3_FALSE=false" ]; in { z3 = fixZ3 super.z3; hz3 = fixZ3 super.hz3; } ) z3 hz3 ; # test suite requires git and does a bunch of git operations restless-git = dontCheck super.restless-git; # Work around https://github.com/haskell/c2hs/issues/192. c2hs = dontCheck super.c2hs; # Flaky tests: https://github.com/jfischoff/tmp-postgres/issues/274 tmp-postgres = dontCheck super.tmp-postgres; # Needs QuickCheck <2.10, which we don't have. edit-distance = doJailbreak super.edit-distance; # https://github.com/alphaHeavy/protobuf/issues/34 protobuf = dontCheck super.protobuf; # The test suite does not know how to find the 'alex' binary. alex = overrideCabal (drv: { testSystemDepends = (drv.testSystemDepends or [ ]) ++ [ pkgs.which ]; preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"''; }) super.alex; # Generate cli completions for dhall. dhall = self.generateOptparseApplicativeCompletions [ "dhall" ] super.dhall; # 2025-01-27: allow aeson >= 2.2, 9.8 versions of text and bytestring dhall-json = self.generateOptparseApplicativeCompletions [ "dhall-to-json" "dhall-to-yaml" ] ( doJailbreak super.dhall-json ); dhall-nix = self.generateOptparseApplicativeCompletions [ "dhall-to-nix" ] super.dhall-nix; # 2025-02-10: jailbreak due to aeson < 2.2, hnix < 0.17, transformers < 0.6, turtle < 1.6 dhall-nixpkgs = self.generateOptparseApplicativeCompletions [ "dhall-to-nixpkgs" ] ( doJailbreak super.dhall-nixpkgs ); dhall-yaml = self.generateOptparseApplicativeCompletions [ "dhall-to-yaml-ng" "yaml-to-dhall" ] ( doJailbreak super.dhall-yaml ); # bytestring <0.12, text<2.1 # 2025-02-14: see also https://github.com/dhall-lang/dhall-haskell/issues/2638 dhall-bash = doJailbreak super.dhall-bash; # bytestring <0.12, text <2.1 # musl fixes # dontCheck: use of non-standard strptime "%s" which musl doesn't support; only used in test unix-time = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.unix-time else super.unix-time; # hslua has tests that break when using musl. # https://github.com/hslua/hslua/issues/106 hslua-core = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.hslua-core else super.hslua-core; # The test suite runs for 20+ minutes on a very fast machine, which feels kinda disproportionate. prettyprinter = dontCheck super.prettyprinter; hpc-codecov = overrideCabal (drv: { # Work around test suite race condition due to tasty >= 1.5.4 # https://github.com/8c6794b6/hpc-codecov/issues/52 testFlags = drv.testFlags or [ ] ++ [ "-j1" ]; }) super.hpc-codecov; # sexpr is old, broken and has no issue-tracker. Let's fix it the best we can. sexpr = appendPatch ./patches/sexpr-0.2.1.patch ( overrideCabal (drv: { isExecutable = false; libraryHaskellDepends = drv.libraryHaskellDepends ++ [ self.QuickCheck ]; }) super.sexpr ); # TODO(Profpatsch): factor out local nix store setup from # lib/tests/release.nix and use that for the tests of libnix # libnix = overrideCabal (old: { # testToolDepends = old.testToolDepends or [] ++ [ pkgs.nix ]; # }) super.libnix; libnix = dontCheck super.libnix; # dontCheck: The test suite tries to mess with ALSA, which doesn't work in the build sandbox. xmobar = dontCheck super.xmobar; # 2025-02-10: Too strict bounds on aeson < 1.5 json-alt = doJailbreak super.json-alt; gargoyle-postgresql-nix = addBuildTool pkgs.postgresql super.gargoyle-postgresql-nix; # PortMidi needs an environment variable to have ALSA find its plugins: # https://github.com/NixOS/nixpkgs/issues/6860 PortMidi = overrideCabal (drv: { patches = (drv.patches or [ ]) ++ [ ./patches/portmidi-alsa-plugins.patch # Fixes compilation with GCC15 which defaults to C23 # https://github.com/PortMidi/PortMidi-haskell/pull/24 (pkgs.fetchpatch { name = "PortMidi-C23.patch"; url = "https://github.com/PortMidi/PortMidi-haskell/commit/24b6ce1c77137b055ae57a99080d5f1616490197.patch"; sha256 = "sha256-PqnWA/DMW00Gtfa4YDV6iC/MXwQ3gFsNESbx+daw4C4="; }) ]; postPatch = (drv.postPatch or "") + '' substituteInPlace portmidi/pm_linux/pmlinuxalsa.c \ --replace @alsa_plugin_dir@ "${pkgs.alsa-plugins}/lib/alsa-lib" ''; }) super.PortMidi; scat = overrideCabal (drv: { patches = [ # Fix build with base >= 4.11 (https://github.com/redelmann/scat/pull/6) (fetchpatch { url = "https://github.com/redelmann/scat/commit/429f22944b7634b8789cb3805292bcc2b23e3e9f.diff"; hash = "sha256-FLr1KfBaSYzI6MiZIBY1CkgAb5sThvvgjrSAN8EV0h4="; }) # Fix build with vector >= 0.13, mtl >= 2.3 (https://github.com/redelmann/scat/pull/8) (fetchpatch { url = "https://github.com/redelmann/scat/compare/e8e064f7e6a152fe25a6ccd743573a16974239d0..c6a3636548d628f32d8edc73a333188ce24141a7.patch"; hash = "sha256-BU4MUn/TnZHpZBlX1vDHE7QZva5yhlLTb8zwpx7UScI"; }) ]; }) super.scat; # Fix build with attr-2.4.48 (see #53716) xattr = appendPatch ./patches/xattr-fix-build.patch super.xattr; # Requires API keys to run tests openai-hs = dontCheck super.openai-hs; # Has tasty < 1.2 requirement, but works just fine with 1.2 temporary-resourcet = doJailbreak super.temporary-resourcet; # Test suite doesn't work with current QuickCheck # https://github.com/pruvisto/heap/issues/11 heap = dontCheck super.heap; # https://github.com/erikd/hjsmin/issues/32 hjsmin = dontCheck super.hjsmin; # Remove for hail > 0.2.0.0 hail = doJailbreak super.hail; # https://github.com/kazu-yamamoto/dns/issues/150 dns = dontCheck super.dns; # it wants to build a statically linked binary by default hledger-flow = overrideCabal (drv: { postPatch = (drv.postPatch or "") + '' substituteInPlace hledger-flow.cabal --replace "-static" "" ''; }) super.hledger-flow; # Chart-tests needs and compiles some modules from Chart itself Chart-tests = overrideCabal (old: { # 2025-02-13: Too strict bounds on lens < 5.3 and vector < 0.13 jailbreak = true; preCheck = old.preCheck or "" + '' tar --one-top-level=../chart --strip-components=1 -xf ${self.Chart.src} ''; }) (addExtraLibrary self.QuickCheck super.Chart-tests); # 2026-01-17: too strict bounds on QuickCheck < 2.15 # https://github.com/hasufell/lzma-static/pull/15 xz = doJailbreak super.xz; ghcup = lib.throwIf pkgs.config.allowAliases "ghcup cannot be used to install the haskell tool chain on NixOS because there is no compatible bindist. Please install ghc etc. via Nix. On non-NixOS systems you can use the ghcup shell installer" super.ghcup; # This breaks because of version bounds, but compiles and runs fine. # Last commit is 5 years ago, so we likely won't get upstream fixed soon. # https://bitbucket.org/rvlm/hakyll-contrib-hyphenation/src/master/ # Therefore we jailbreak it. hakyll-contrib-hyphenation = doJailbreak super.hakyll-contrib-hyphenation; # The test suite depends on an impure cabal-install installation in # $HOME, which we don't have in our build sandbox. cabal-install-parsers = dontCheck super.cabal-install-parsers; # Test suite requires database persistent-mysql = dontCheck super.persistent-mysql; dhall-lsp-server = appendPatches [ # Add support for lsp >= 2.7 (pkgs.fetchpatch { name = "dhall-lsp-server-lsp-2.7.patch"; url = "https://github.com/dhall-lang/dhall-haskell/commit/a621e1438df5865d966597e2e1b0bb37e8311447.patch"; sha256 = "sha256-7edxNIeIM/trl2SUXybvSzkscvr1kj5+tZF50IeTOgY="; relative = "dhall-lsp-server"; }) # Fix build with text >= 2.1.2 (pkgs.fetchpatch { name = "dhall-lsp-server-text-2.1.2.patch"; url = "https://github.com/dhall-lang/dhall-haskell/commit/9f2d4d44be643229784bfc502ab49184ec82bc05.patch"; hash = "sha256-cwNH5+7YY8UbA9zHhTRfVaqtIMowZGfFT5Kj+wSlapA="; relative = "dhall-lsp-server"; }) ] super.dhall-lsp-server; # Tests disabled and broken override needed because of missing lib chrome-test-utils: https://github.com/reflex-frp/reflex-dom/issues/392 reflex-dom-core = lib.pipe super.reflex-dom-core [ doDistribute dontCheck unmarkBroken ]; # Unreleased patch fixing compilation with text >= 2.1.2 dom-parser = appendPatches [ (pkgs.fetchpatch { name = "dom-parser-text-2.1.2.patch"; url = "https://github.com/typeable/dom-parser/commit/b8d9af75595072026a1706e94750dba55e65326b.patch"; hash = "sha256-c7ea0YCtXhv4u+pTuxcWoISa+yV2oEtxS/RmC6Bbx1M="; }) ] ( overrideCabal { revision = null; editedCabalFile = null; } super.dom-parser ); # Requires jsaddle-webkit2gtk to build outside of pkgsCross.ghcjs # which requires a version of libsoup that's marked as insecure reflex-dom = dontDistribute super.reflex-dom; reflex-localize-dom = dontDistribute super.reflex-localize-dom; trasa-reflex = dontDistribute super.trasa-reflex; # https://github.com/ghcjs/jsaddle/issues/151 jsaddle-webkit2gtk = overrideCabal (drv: { postPatch = drv.postPatch or "" + '' substituteInPlace jsaddle-webkit2gtk.cabal --replace-fail gi-gtk gi-gtk3 substituteInPlace jsaddle-webkit2gtk.cabal --replace-fail gi-javascriptcore gi-javascriptcore4 ''; }) ( super.jsaddle-webkit2gtk.override { gi-gtk = self.gi-gtk3; gi-javascriptcore = self.gi-javascriptcore4; } ); # https://github.com/danfran/cabal-macosx/pull/19 cabal-macosx = appendPatch (fetchpatch { name = "support-cabal-3.14.patch"; url = "https://github.com/danfran/cabal-macosx/commit/24ef850a4c743e525433a6f9eaa3f8924408db10.patch"; excludes = [ ".gitignore" ]; sha256 = "sha256-ORonk31yStWH0I83B4hCpnap7KK4o49UVrwdrZjCRaU="; }) super.cabal-macosx; # 2020-06-24: Jailbreaking because of restrictive test dep bounds # Upstream issue: https://github.com/kowainik/trial/issues/62 trial = doJailbreak super.trial; # 2024-03-19: Fix for mtl >= 2.3 pattern-arrows = lib.pipe super.pattern-arrows [ doJailbreak (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 (appendPatches [ ./patches/cheapskate-mtl-2-3-support.patch ]) ]; # 2020-06-24: Tests are broken in hackage distribution. # See: https://github.com/robstewart57/rdf4h/issues/39 rdf4h = dontCheck super.rdf4h; svgcairo = overrideCabal (drv: { patches = drv.patches or [ ] ++ [ # Remove when https://github.com/gtk2hs/svgcairo/pull/12 goes in. (fetchpatch { url = "https://github.com/gtk2hs/svgcairo/commit/348c60b99c284557a522baaf47db69322a0a8b67.patch"; sha256 = "0akhq6klmykvqd5wsbdfnnl309f80ds19zgq06sh1mmggi54dnf3"; }) # Remove when https://github.com/gtk2hs/svgcairo/pull/13 goes in. (fetchpatch { url = "https://github.com/dalpd/svgcairo/commit/d1e0d7ae04c1edca83d5b782e464524cdda6ae85.patch"; sha256 = "1pq9ld9z67zsxj8vqjf82qwckcp69lvvnrjb7wsyb5jc6jaj3q0a"; }) ]; editedCabalFile = null; revision = null; }) super.svgcairo; # Support GHC >= 9.12.3 || >= 9.14.1 # Patch from https://github.com/gtk2hs/gtk2hs/pull/349 glib = appendPatches [ ./patches/glib-support-rts-at-least-9.12.3-and-9.14.patch ] super.glib; # Too strict upper bound on tasty-hedgehog (<1.5) # https://github.com/typeclasses/ascii-predicates/pull/1 ascii-predicates = doJailbreak super.ascii-predicates; # Fails with encoding problems, likely needs locale data. # Test can be executed by adding which to testToolDepends and # $PWD/dist/build/haskeline-examples-Test to $PATH. haskeline_0_8_4_1 = doDistribute (dontCheck super.haskeline_0_8_4_1); # Test suite fails to compile https://github.com/agrafix/Spock/issues/177 Spock = dontCheck super.Spock; Spock-core = appendPatches [ (fetchpatch { url = "https://github.com/agrafix/Spock/commit/d0b51fa60a83bfa5c1b5fc8fced18001e7321701.patch"; sha256 = "sha256-l9voiczOOdYVBP/BNEUvqARb21t0Rp2kpsNbRFUWSLg="; stripLen = 1; }) ] (doJailbreak super.Spock-core); hcoord = overrideCabal (drv: { # Remove when https://github.com/danfran/hcoord/pull/8 is merged. patches = [ (fetchpatch { url = "https://github.com/danfran/hcoord/pull/8/commits/762738b9e4284139f5c21f553667a9975bad688e.patch"; sha256 = "03r4jg9a6xh7w3jz3g4bs7ff35wa4rrmjgcggq51y0jc1sjqvhyz"; }) ]; # Remove when https://github.com/danfran/hcoord/issues/9 is closed. doCheck = false; }) super.hcoord; # Break infinite recursion via tasty temporary = dontCheck super.temporary; # Break infinite recursion via doctest-lib utility-ht = dontCheck super.utility-ht; # Break infinite recursion via optparse-applicative (alternatively, dontCheck syb) prettyprinter-ansi-terminal = dontCheck super.prettyprinter-ansi-terminal; # Released version prohibits QuickCheck >= 2.15 at the moment optparse-applicative = appendPatches [ (pkgs.fetchpatch2 { name = "optparse-applicative-0.18.1-allow-QuickCheck-2.15.patch"; url = "https://github.com/pcapriotti/optparse-applicative/commit/2c2a39ed53e6339d8dc717efeb7d44f4c2b69cab.patch"; hash = "sha256-198TfBUR3ygPpvKPvtH69UmbMmoRagmzr9UURPr6Kj4="; }) ] super.optparse-applicative; # chell-quickcheck doesn't work with QuickCheck >= 2.15 with no known fix yet # https://github.com/typeclasses/chell/issues/5 system-filepath = dontCheck super.system-filepath; gnuidn = dontCheck super.gnuidn; # Tests rely on `Int` being 64-bit: https://github.com/hspec/hspec/issues/431. # Also, we need QuickCheck-2.14.x to build the test suite, which isn't easy in LTS-16.x. # So let's not go there and just disable the tests altogether. hspec-core = dontCheck super.hspec-core; update-nix-fetchgit = let # Deps are required during the build for testing and also during execution, # so add them to build input and also wrap the resulting binary so they're in # PATH. deps = [ pkgs.git pkgs.nix-prefetch-git ]; in lib.pipe super.update-nix-fetchgit [ # 2023-06-26: Test failure: https://hydra.nixos.org/build/225081865 dontCheck (self.generateOptparseApplicativeCompletions [ "update-nix-fetchgit" ]) (overrideCabal (drv: { buildTools = drv.buildTools or [ ] ++ [ pkgs.buildPackages.makeWrapper ]; postInstall = drv.postInstall or "" + '' wrapProgram "$out/bin/update-nix-fetchgit" --prefix 'PATH' ':' "${lib.makeBinPath deps}" ''; })) # pkgs.nix is not added to the wrapper since we can resonably expect it to be installed # and we don't know which implementation the eventual user prefers (addTestToolDepends (deps ++ [ pkgs.nix ])) # Patch for hnix compat. (appendPatches [ (fetchpatch { url = "https://github.com/expipiplus1/update-nix-fetchgit/commit/dfa34f9823e282aa8c5a1b8bc95ad8def0e8d455.patch"; sha256 = "sha256-yBjn1gVihVTlLewKgJc2I9gEj8ViNBAmw0bcsb5rh1A="; excludes = [ "cabal.project" ]; }) # Fix for GHC >= 9.8 (fetchpatch { name = "update-nix-fetchgit-base-4.19.patch"; url = "https://github.com/expipiplus1/update-nix-fetchgit/commit/384d2e259738abf94f5a20717b12648996cf24e2.patch"; sha256 = "11489rpxrrz98f7d3j9mz6npgfg0zp005pghxv9c86rkyg5b10d5"; }) ]) ]; # The tests for semver-range need to be updated for the MonadFail change in # ghc-8.8: # https://github.com/adnelson/semver-range/issues/15 semver-range = dontCheck super.semver-range; # 2024-03-02: vty <5.39 - https://github.com/reflex-frp/reflex-ghci/pull/33 reflex-ghci = warnAfterVersion "0.2.0.1" (doJailbreak super.reflex-ghci); # 2024-09-18: transformers <0.5 https://github.com/reflex-frp/reflex-gloss/issues/6 reflex-gloss = warnAfterVersion "0.2" (doJailbreak super.reflex-gloss); # Due to tests restricting base in 0.8.0.0 release http-media = doJailbreak super.http-media; # 2022-03-19: strict upper bounds https://github.com/poscat0x04/hinit/issues/2 hinit = doJailbreak (self.generateOptparseApplicativeCompletions [ "hi" ] super.hinit); # 2020-11-23: https://github.com/Rufflewind/blas-hs/issues/8 blas-hs = dontCheck super.blas-hs; # Strange doctest problems # https://github.com/biocad/servant-openapi3/issues/30 servant-openapi3 = dontCheck super.servant-openapi3; # Disable test cases that were broken by insignificant changes in icu 76 # https://github.com/haskell/text-icu/issues/108 text-icu = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "-t" "!Test cases" ]; }) super.text-icu; hercules-ci-agent = self.generateOptparseApplicativeCompletions [ "hercules-ci-agent" ] super.hercules-ci-agent; hercules-ci-cli = lib.pipe super.hercules-ci-cli [ unmarkBroken (overrideCabal (drv: { hydraPlatforms = super.hercules-ci-cli.meta.platforms; })) # See hercules-ci-optparse-applicative in non-hackage-packages.nix. (addBuildDepend super.hercules-ci-optparse-applicative) (self.generateOptparseApplicativeCompletions [ "hci" ]) ]; # https://github.com/k0001/pipes-aeson/pull/21 pipes-aeson = appendPatch (fetchpatch { url = "https://github.com/k0001/pipes-aeson/commit/08c25865ef557b41d7e4a783f52e655d2a193e18.patch"; relative = "pipes-aeson"; sha256 = "sha256-kFV6CcwKdMq+qSgyc+eIApnaycq5A++pEEVr2A9xvts="; }) super.pipes-aeson; moto-postgresql = appendPatches [ # https://gitlab.com/k0001/moto/-/merge_requests/3 (fetchpatch { name = "moto-postgresql-monadfail.patch"; url = "https://gitlab.com/k0001/moto/-/commit/09cc1c11d703c25f6e81325be6482dc7ec6cbf58.patch"; relative = "moto-postgresql"; sha256 = "sha256-f2JVX9VveShCeV+T41RQgacpUoh1izfyHlE6VlErkZM="; }) ] super.moto-postgresql; moto = appendPatches [ # https://gitlab.com/k0001/moto/-/merge_requests/3 (fetchpatch { name = "moto-ghc-9.0.patch"; url = "https://gitlab.com/k0001/moto/-/commit/5b6f015a1271765005f03762f1f1aaed3a3198ed.patch"; relative = "moto"; sha256 = "sha256-RMa9tk+2ip3Ks73UFv9Ea9GEnElRtzIjdpld1Fx+dno="; }) ] super.moto; # c2hs/language-c don't support C23 [[nodiscard]] yet: https://github.com/visq/language-c/issues/107. # To work around this, we tell the preprocessor of GCC 15 to use an older standard (the GCC 14 default). avif = if pkgs.stdenv.hasCC && pkgs.stdenv.cc.isGNU then appendConfigureFlags [ "--c2hs-options=--cppopts=-std=gnu17" ] super.avif else super.avif; # Readline uses Distribution.Simple from Cabal 2, in a way that is not # compatible with Cabal 3. No upstream repository found so far readline = appendPatch ./patches/readline-fix-for-cabal-3.patch super.readline; # DerivingVia is not allowed in safe Haskell # https://github.com/strake/util.hs/issues/1 util = appendConfigureFlags [ "--ghc-option=-fno-safe-haskell" "--haddock-option=--optghc=-fno-safe-haskell" ] (doJailbreak super.util); # unmaintained # Test suite fails, upstream not reachable for simple fix (not responsive on github) vivid-supercollider = dontCheck super.vivid-supercollider; # Test suite `readme` does not compile. # https://github.com/haskell-party/feed/issues/77 # `readme-doctests` are also broken (can't find a variety of imports) feed = overrideCabal { buildTarget = "tests"; testTargets = [ "tests" ]; jailbreak = true; } super.feed; # 2026-04-14: Apache Iceberg not included in pkgs.duckdb and not packaged beam-duckdb = overrideCabal (drv: { testFlags = (drv.testFlags or [ ]) ++ [ "--pattern" "!/Iceberg/" ]; }) super.beam-duckdb; # 2026-03-25: one test fails # https://github.com/Tritlo/duckdb-haskell/issues/8 # TODO: remove after PR https://github.com/Tritlo/duckdb-haskell/pull/9 is merged duckdb-ffi = overrideCabal (drv: { testFlags = (drv.testFlags or [ ]) ++ [ "--pattern" "!/bind every supported value type/" ]; }) super.duckdb-ffi; spacecookie = overrideCabal (old: { buildTools = (old.buildTools or [ ]) ++ [ pkgs.buildPackages.installShellFiles ]; # let testsuite discover the resulting binary preCheck = '' export SPACECOOKIE_TEST_BIN=./dist/build/spacecookie/spacecookie '' + (old.preCheck or ""); # install man pages shipped in the sdist postInstall = '' installManPage docs/man/* '' + (old.postInstall or ""); }) super.spacecookie; # Patch and jailbreak can be removed at next release, chatter > 0.9.1.0 # * Remove dependency on regex-tdfa-text # * Jailbreak as bounds on cereal are too strict # * Disable test suite which doesn't compile # https://github.com/creswick/chatter/issues/38 chatter = appendPatch (fetchpatch { url = "https://github.com/creswick/chatter/commit/e8c15a848130d7d27b8eb5e73e8a0db1366b2e62.patch"; sha256 = "1dzak8d12h54vss5fxnrclygz0fz9ygbqvxd5aifz5n3vrwwpj3g"; }) (dontCheck (doJailbreak (super.chatter.override { regex-tdfa-text = null; }))); # test suite doesn't compile anymore due to changed hunit/tasty APIs fullstop = dontCheck super.fullstop; # * Too strict version bound on vector-builder # https://github.com/noinia/hgeometry/commit/a6abecb1ce4a7fd96b25cc1a5c65cd4257ecde7a#commitcomment-49282301 hgeometry-combinatorial = doJailbreak super.hgeometry-combinatorial; cli-git = addBuildTool pkgs.git super.cli-git; cli-nix = addBuildTools [ # Required due to https://github.com/obsidiansystems/cli-nix/issues/11 pkgs.nix pkgs.nix-prefetch-git ] super.cli-nix; # list `modbus` in librarySystemDepends, correct to `libmodbus` libmodbus = doJailbreak (addExtraLibrary pkgs.libmodbus super.libmodbus); # 2025-02-11: Too strict bounds on base < 4.19, bytestring < 0.12, tasty < 1.5, tasty-quickcheck < 0.11 blake2 = doJailbreak super.blake2; # 2021-04-09: too strict time bound # PR pending https://github.com/zohl/cereal-time/pull/2 cereal-time = doJailbreak super.cereal-time; # 2021-04-16: too strict bounds on QuickCheck and tasty # https://github.com/hasufell/lzma-static/issues/1 lzma-static = doJailbreak super.lzma-static; # Too strict version bounds on base: # https://github.com/obsidiansystems/database-id/issues/1 database-id-class = doJailbreak super.database-id-class; # Allow granite >= 0.4 dataframe = lib.pipe super.dataframe [ (warnAfterVersion "0.5.0.1") doJailbreak ]; # TODO: when (likely in 25.x) Stackage bumps random to 1.3, review dataframe-persistent = lib.pipe super.dataframe-persistent [ doJailbreak # 2026-01-23: too strict bounds on dataframe >= 0.4 dontCheck # 2026-01-23: test uses dataframe function not exported in 0.3.3.6 ]; # 2026-01-23: too strict bounds on random >= 1.3 # TODO: when (likely in 25.x) Stackage bumps random to 1.3, unpin ihaskell-dataframe = doJailbreak super.ihaskell-dataframe; # Too strict version bounds on base # https://github.com/gibiansky/IHaskell/issues/1217 ihaskell-display = doJailbreak super.ihaskell-display; ihaskell-basic = doJailbreak super.ihaskell-basic; # Tests need to lookup target triple x86_64-unknown-linux # https://github.com/llvm-hs/llvm-hs/issues/334 llvm-hs = dontCheckIf (pkgs.stdenv.targetPlatform.system != "x86_64-linux") super.llvm-hs; # Fix build with bytestring >= 0.11 (GHC 9.2) # https://github.com/llvm-hs/llvm-hs/pull/389 llvm-hs-pure = appendPatches [ (fetchpatch { name = "llvm-hs-pure-bytestring-0.11.patch"; url = "https://github.com/llvm-hs/llvm-hs/commit/fe8fd556e8d2cc028f61d4d7b4b6bf18c456d090.patch"; sha256 = "sha256-1d4wQg6JEJL3GwmXQpvbW7VOY5DwjUPmIsLEEur0Kps="; relative = "llvm-hs-pure"; excludes = [ "**/Triple.hs" ]; # doesn't exist in 9.0.0 }) ] ( overrideCabal { # Hackage Revision prevents patch from applying. Revision 1 does not allow # bytestring-0.11.4 which is bundled with 9.2.6. editedCabalFile = null; revision = null; } super.llvm-hs-pure ); # 2025-02-11: Too strict bounds on tasty-quickcheck < 0.11 exact-pi = doJailbreak super.exact-pi; # Too strict bounds on dimensional # https://github.com/enomsg/science-constants-dimensional/pull/1 science-constants-dimensional = doJailbreak super.science-constants-dimensional; # Tests are flaky on busy machines, upstream doesn't intend to fix # https://github.com/merijn/paramtree/issues/4 paramtree = dontCheck super.paramtree; # Flaky test suites ticker = dontCheck super.ticker; powerqueue-distributed = dontCheck super.powerqueue-distributed; job = dontCheck super.job; scheduler = dontCheck super.scheduler; # Flaky test suite # https://github.com/minimapletinytools/linear-tests/issues/1 linear-tests = dontCheck super.linear-tests; # 2023-04-09: haskell-ci needs Cabal-syntax 3.10 # 2024-03-21: pins specific version of ShellCheck # 2025-03-10: jailbreak, https://github.com/haskell-CI/haskell-ci/issues/771 haskell-ci = doJailbreak ( super.haskell-ci.overrideScope ( self: super: { Cabal-syntax = self.Cabal-syntax_3_10_3_0; ShellCheck = self.ShellCheck_0_9_0; } ) ); # ShellCheck < 0.10.0 needs to be adjusted for changes in fgl >= 5.8 # https://github.com/koalaman/shellcheck/issues/2677 ShellCheck_0_9_0 = doJailbreak ( appendPatches [ (fetchpatch { name = "shellcheck-fgl-5.8.1.1.patch"; url = "https://github.com/koalaman/shellcheck/commit/c05380d518056189412e12128a8906b8ca6f6717.patch"; sha256 = "0gbx46x1a2sh5mvgpqxlx9xkqcw4wblpbgqdkqccxdzf7vy50xhm"; }) ] super.ShellCheck_0_9_0 ); # Too strict bound on hspec (<2.11) utf8-light = doJailbreak super.utf8-light; # BSON defaults to requiring network instead of network-bsd which is # required nowadays: https://github.com/mongodb-haskell/bson/issues/26 bson = appendConfigureFlag "-f-_old_network" ( super.bson.override { network = self.network-bsd; } ); # 2021-05-22: Tests fail sometimes (even consistently on hydra) # when running a fs-related test with >= 12 jobs. To work around # this, run tests with only a single job. # https://github.com/vmchale/libarchive/issues/20 libarchive = overrideCabal { testFlags = [ "-j1" ]; } super.libarchive; # https://github.com/plow-technologies/hspec-golden-aeson/issues/17 hspec-golden-aeson = dontCheck super.hspec-golden-aeson; # To strict bound on hspec # https://github.com/dagit/zenc/issues/5 zenc = doJailbreak super.zenc; # https://github.com/ajscholl/basic-cpuid/pull/1 basic-cpuid = appendPatch (fetchpatch { url = "https://github.com/ajscholl/basic-cpuid/commit/2f2bd7a7b53103fb0cf26883f094db9d7659887c.patch"; sha256 = "0l15ccfdys100jf50s9rr4p0d0ikn53bkh7a9qlk9i0y0z5jc6x1"; }) super.basic-cpuid; # 2025-09-03 jailbreak for base >= 4.20 # https://github.com/brandonhamilton/ilist/issues/17 ilist = lib.pipe super.ilist [ (warnAfterVersion "0.4.0.1") doJailbreak ]; # 2025-09-18: ilist >=0.3.1 && <0.4, optparse-applicative >=0.19.0 && <0.20 # https://github.com/hadolint/hadolint/issues/1127 hadolint = doJailbreak super.hadolint; # Too strict bounds on # QuickCheck (<2.15): https://github.com/kapralVV/Unique/issues/12 # hashable (<1.5): https://github.com/kapralVV/Unique/issues/11#issuecomment-3088832168 Unique = doJailbreak super.Unique; # Too strict bound on tasty-quickcheck (<0.11) # https://github.com/haskell-unordered-containers/hashable/issues/321 hashable_1_4_7_0 = doDistribute (doJailbreak super.hashable_1_4_7_0); # https://github.com/AndrewRademacher/aeson-casing/issues/8 aeson-casing = warnAfterVersion "0.2.0.0" ( overrideCabal (drv: { testFlags = [ "-p" "! /encode train/" ] ++ drv.testFlags or [ ]; }) super.aeson-casing ); drunken-bishop = doJailbreak super.drunken-bishop; # https://github.com/minio/minio-hs/issues/165 # https://github.com/minio/minio-hs/pull/191 Use crypton-connection instead of unmaintained connection minio-hs = overrideCabal (drv: { testFlags = [ "-p" "!/Test mkSelectRequest/" ] ++ drv.testFlags or [ ]; patches = drv.patches or [ ] ++ [ (pkgs.fetchpatch { name = "use-crypton-connection.patch"; url = "https://github.com/minio/minio-hs/commit/786cf1881f0b62b7539e63547e76afc3c1ade36a.patch"; sha256 = "sha256-zw0/jhKzShpqV1sUyxWTl73sQOzm6kA/yQOZ9n0L1Ag"; }) (pkgs.fetchpatch { name = "compatibility-with-crypton-connection-0-4-0.patch"; url = "https://github.com/minio/minio-hs/commit/e2169892a5fea444aaf9e551243da811003d3188.patch"; sha256 = "sha256-hWphiArv7gZWiDewLHDeU4RASGOE9Z1liahTmAGQIgQ="; }) ]; }) (super.minio-hs.override { connection = self.crypton-connection; }); fgl-arbitrary = doJailbreak super.fgl-arbitrary; # raaz-0.3 onwards uses backpack and it does not play nicely with # parallel builds using -j # # See: https://gitlab.haskell.org/ghc/ghc/-/issues/17188 # # Overwrite the build cores raaz = disableParallelBuilding super.raaz; # Test suite uses SHA as a point of comparison which doesn't # succeeds its own test suite on 32bit: # https://github.com/GaloisInc/SHA/issues/16 cryptohash-sha256 = if pkgs.stdenv.hostPlatform.is32bit then dontCheck super.cryptohash-sha256 else super.cryptohash-sha256; # Fixes compilation with GHC 9.0 and above # https://hub.darcs.net/shelarcy/regex-compat-tdfa/issue/3 regex-compat-tdfa = appendPatches [ ./patches/regex-compat-tdfa-ghc-9.0.patch ] ( overrideCabal { # Revision introduces bound base < 4.15 revision = null; editedCabalFile = null; } super.regex-compat-tdfa ); darcs = appendPatches [ # Cabal 3.12 support in Setup.hs # https://hub.darcs.net/darcs/darcs-reviewed/patch/50d9b0b402a896c83aa7929a50a0e0449838600f ./patches/darcs-cabal-3.12.patch # GHC 9.10 patch plus lifted constraints for hashable # https://hub.darcs.net/darcs/darcs-reviewed/patch/32646b190e019de21a103e950c4eccdd66f7eadc ./patches/darcs-stackage-lts-23.patch ] super.darcs; # 2025-02-11: Too strict bounds on hedgehog < 1.5, hspec-hedgehog < 0.2 validation-selective = doJailbreak super.validation-selective; # Test suite isn't supposed to succeed yet, apparently… # https://github.com/andrewufrank/uniform-error/blob/f40629ad119e90f8dae85e65e93d7eb149bddd53/test/Uniform/Error_test.hs#L124 # https://github.com/andrewufrank/uniform-error/issues/2 uniform-error = dontCheck super.uniform-error; # https://github.com/andrewufrank/uniform-fileio/issues/2 uniform-fileio = dontCheck super.uniform-fileio; # The shipped Setup.hs file is broken. csv = overrideCabal (drv: { preCompileBuildDriver = "rm Setup.hs"; }) super.csv; # https://github.com/phadej/cabal-fmt/issues/98 cabal-fmt = doJailbreak super.cabal-fmt; # Pick bound changes from development branch, same commit also adds support for Cabal >= 3.14 glirc = lib.pipe super.glirc [ (warnAfterVersion "2.41") # Revisions only partially (?) include the changes we want (overrideCabal { revision = null; editedCabalFile = null; }) (appendPatch ( pkgs.fetchpatch { name = "glirc-bounds-plus-cabal-3.14.patch"; url = "https://github.com/glguy/irc-core/commit/00ab04700e45f6f7f2ffe4ac992ca73505407516.patch"; hash = "sha256-XX6y3lR/a6ofcpkuqczC2A5IyHsAsRfAB+x4hdKu9+o="; includes = [ "glirc.cabal" "Setup.hs" ]; } )) ]; # Test failures on various archs # https://github.com/kazu-yamamoto/crypton/issues/49 crypton = dontCheckIf ( pkgs.stdenv.hostPlatform.isPower64 && pkgs.stdenv.hostPlatform.isBigEndian ) super.crypton; # Test failures on at least ppc64 # https://github.com/kazu-yamamoto/crypton-certificate/issues/25 # Likely related to the issues in crypton # https://github.com/kazu-yamamoto/crypton/issues/49 crypton-x509-validation = dontCheckIf ( pkgs.stdenv.hostPlatform.isPower64 && pkgs.stdenv.hostPlatform.isBigEndian ) super.crypton-x509-validation; crypton-x509-system = overrideCabal (drv: { # Case sensitive when doing cross-compilation to windows postPatch = drv.postPatch or "" + '' substituteInPlace crypton-x509-system.cabal --replace-fail "Crypt32" "crypt32" ''; }) super.crypton-x509-system; # Likely fallout from the crypton issues # exception: HandshakeFailed (Error_Protocol "bad PubKeyALG_Ed448 signature for ecdhparams" DecryptError) tls = dontCheckIf ( pkgs.stdenv.hostPlatform.isPower64 && pkgs.stdenv.hostPlatform.isBigEndian ) super.tls; # Too strict bounds on text and tls # https://github.com/barrucadu/irc-conduit/issues/54 # Use crypton-connection instead of connection # https://github.com/barrucadu/irc-conduit/pull/60 https://github.com/barrucadu/irc-client/pull/101 irc-conduit = appendPatch (pkgs.fetchpatch { url = "https://github.com/barrucadu/irc-conduit/pull/60/commits/58f6b5ee0c23a0615e43292dbbacf40636dcd7a6.patch"; hash = "sha256-d08tb9iL07mBWdlZ7PCfTLVFJLgcxeGVPzJ+jOej8io="; }) ( doJailbreak ( super.irc-conduit.override { connection = self.crypton-connection; x509-validation = self.crypton-x509-validation; } ) ); irc-client = appendPatch (pkgs.fetchpatch { url = "https://github.com/barrucadu/irc-client/pull/101/commits/0440b7e2ce943d960234c50957a55025771f567a.patch"; hash = "sha256-iZyZMrodgViXFCMH9y2wIJZRnjd6WhkqInAdykqTdkY="; }) ( doJailbreak ( super.irc-client.override { connection = self.crypton-connection; x509 = self.crypton-x509; x509-store = self.crypton-x509-store; x509-validation = self.crypton-x509-validation; } ) ); # 2022-03-16: Upstream stopped updating bounds https://github.com/haskell-hvr/base-noprelude/pull/15 base-noprelude = doJailbreak super.base-noprelude; # 2025-01-07: unreleased upstream supports hedgehog 1.5 but drifted quite a bit from hackage revisions so hard to patch hw-hspec-hedgehog = doJailbreak super.hw-hspec-hedgehog; # 2026-04-19: Too strict upper bound on doctest (excluding 0.24) # https://github.com/haskell-works/hw-hedgehog/issues/51 hw-hedgehog = doJailbreak super.hw-hedgehog; # https://github.com/haskell-works/hw-string-parse/issues/43 hw-string-parse = doJailbreak super.hw-string-parse; # 2025-09-03: allow QuickCheck 2.15 # https://github.com/haskell-works/hw-prim/issues/150 hw-prim = lib.pipe super.hw-prim [ (warnAfterVersion "0.6.3.2") doJailbreak ]; # too strict bounds on extra < 1.8 # https://github.com/georgefst/svgone/pull/3 svgone = doJailbreak super.svgone; # 2026-01-06: unbreak and modernize to GHC 9.10.3 reanimate-svg = overrideCabal (drv: { # patching doesn't actually move files, need to do manually prePatch = '' # Move tests marked good due to previous librsvg failures for f in \ animate-elem-32-t.svg \ fonts-desc-02-t.svg \ shapes-ellipse-02-t.svg \ shapes-intro-01-t.svg \ styling-css-06-b.svg \ text-intro-05-t.svg \ ; do mv test/good/$f test/bad/$f done # Move tests previously marked bad but now fixed from new changes for f in \ filters-displace-02-f.svg \ filters-gauss-01-b.svg \ masking-mask-01-b.svg \ painting-render-01-b.svg \ pservers-grad-04-b.svg \ pservers-grad-05-b.svg \ pservers-grad-07-b.svg \ pservers-grad-08-b.svg \ pservers-grad-09-b.svg \ pservers-grad-10-b.svg \ pservers-grad-11-b.svg \ pservers-grad-12-b.svg \ pservers-grad-14-b.svg \ pservers-grad-15-b.svg \ pservers-grad-16-b.svg \ pservers-grad-22-b.svg \ ; do mv test/bad/$f test/good/$f done ''; patches = (drv.patches or [ ]) ++ [ (pkgs.fetchpatch2 { name = "modernize-to-ghc-9.10.3-and-regress-tests-wrt-librsvg"; url = "https://github.com/reanimate/reanimate-svg/commit/3f2fab8eb08b7f35b03f5fa17819e43e3879ea80.patch"; sha256 = "sha256-Em10QyAAiIwHId3CZuByKJ4Fv9W6MII4go5rychg07Y="; }) ]; }) super.reanimate-svg; # 2026-01-06: modernize to GHC 9.10.3 reanimate = overrideCabal (drv: { # file in Hackage but not on github, need to remove here # test relies on hegometry but that was removed as a dependency # https://github.com/reanimate/reanimate/commit/f58a00e prePatch = drv.prePatch or "" + '' rm -f examples/decompose.hs ''; patches = (drv.patches or [ ]) ++ [ # variant of PR https://github.com/reanimate/reanimate/pull/317 (pkgs.fetchpatch2 { name = "modernize-to-ghc-9.10.3"; url = "https://github.com/reanimate/reanimate/commit/273f48c2b82dcfa027481133a6a606e73a22461b.patch"; sha256 = "sha256-aibbIoc54I4Ibg6t2o8vykL8MqzmxLvayUNa8MiibEw="; }) ]; }) super.reanimate; # Too strict bound on network (<3.2) hookup = appendPatches [ (pkgs.fetchpatch { name = "hookup-network-3.2.patch"; url = "https://github.com/glguy/irc-core/commit/a3ec982e729b0f77b2db336ec32c5e4b7283bed5.patch"; sha256 = "0qc1qszn3l69xlbpfv8vz9ld0q7sghfcbp0wjds81kwcpdpl4jgv"; stripLen = 1; includes = [ "hookup.cabal" ]; }) ] ( overrideCabal { revision = null; editedCabalFile = null; } super.hookup ); basic-sop = appendPatch (fetchpatch { # https://github.com/well-typed/basic-sop/pull/13 name = "increase-upper-bounds.patch"; url = "https://github.com/well-typed/basic-sop/commit/f1873487dd3e3955a82d6d9f37a6b164be36851f.patch"; sha256 = "sha256-uBH+LmiSO91diVe4uX75/DdWT2wuyqEL+XUlSHnJk5k="; }) super.basic-sop; # Unmaintained records-sop = doJailbreak super.records-sop; failure = appendPatch (fetchpatch { # https://github.com/snoyberg/failure/pull/5 name = "switch-error-to-except"; url = "https://github.com/snoyberg/failure/commit/d46bebb5afdc17a0feb268bc86adb00b7edc4cc3.patch"; sha256 = "sha256-CDd/vvlRq1cldyH+qsJVNMiwViqKVSosr9A0ilv2gLM"; }) (doJailbreak super.failure); # lucid-htmx has restrictive upper bounds on lucid and servant: # # Setup: Encountered missing or private dependencies: # lucid >=2.9.12.1 && <=2.11, servant >=0.18.3 && <0.19 # # Can be removed once # # > https://github.com/MonadicSystems/lucid-htmx/issues/6 # # has been resolved. lucid-htmx = doJailbreak super.lucid-htmx; clash-prelude = dontCheck super.clash-prelude; # 2025-08-06: Upper bounds on containers <0.7 and hedgehog < 1.5 too strict. hermes-json = doJailbreak super.hermes-json; # hexstring is not compatible with newer versions of base16-bytestring # See https://github.com/solatis/haskell-hexstring/issues/3 hexstring = overrideCabal (old: { # GitHub doesn't generate a patch with DOS line endings, so we # need to convert the patched file to Unix line endings prePatch = old.prePatch or "" + '' sed -i -e 's/\r$//' src/Data/HexString.hs ''; patches = old.patches or [ ] ++ [ (pkgs.fetchpatch { name = "fix-base16-bytestring-compat"; url = "https://github.com/solatis/haskell-hexstring/commit/4f0a27c64ecb4a767eeea2efebebfd7edba18de0.patch"; hash = "sha256-DHT566Ov1D++1VNjUor9xSeOsuSi2LPiIAGT55gqr8s="; }) ]; }) super.hexstring; # 2026-02-19: GHC 9.10 increased simplifier ticks, need higher threshold # https://github.com/lehins/hip/issues/56 hip = overrideCabal (drv: { configureFlags = (drv.configureFlags or [ ]) ++ [ "--ghc-options=-fsimpl-tick-factor=200" ]; }) super.hip; # Disabling doctests. regex-tdfa = overrideCabal { testTargets = [ "regex-tdfa-unittest" ]; } super.regex-tdfa; # Test failure after libxcrypt migration, reported upstream at # https://github.com/phadej/crypt-sha512/issues/13 crypt-sha512 = dontCheck (doJailbreak super.crypt-sha512); # Latest release depends on crypton-connection ==0.3.2 https://github.com/ndmitchell/hoogle/issues/435 hoogle = overrideSrc { version = "unstable-2024-07-29"; src = pkgs.fetchFromGitHub { owner = "ndmitchell"; repo = "hoogle"; rev = "8149c93c40a542bf8f098047e1acbc347fc9f4e6"; hash = "sha256-k3UdmTq8c+iNF8inKM+oWf/NgJqRgUSFS3YwRKVg8Mw="; }; } super.hoogle; inherit ( let # We need to build purescript with these dependencies and thus also its reverse # dependencies to avoid version mismatches in their dependency closure. purescriptOverlay = self: super: { # As of 2021-11-08, the latest release of `language-javascript` is 0.7.1.0, # but it has a problem with parsing the `async` keyword. It doesn't allow # `async` to be used as an object key: # https://github.com/erikd/language-javascript/issues/131 language-javascript = self.language-javascript_0_7_0_0; }; in { purescript = lib.pipe (super.purescript.overrideScope purescriptOverlay) [ # https://github.com/purescript/purescript/pull/4547 (appendPatches [ (pkgs.fetchpatch { name = "purescript-import-fix"; url = "https://github.com/purescript/purescript/commit/c610ec18391139a67dc9dcf19233f57d2c5413f7.patch"; hash = "sha256-7s/ygzAFJ1ocZIj3OSd3TbsmGki46WViPIZOU1dfQFg="; }) ]) # PureScript uses nodejs to run tests, so the tests have been disabled # for now. If someone is interested in figuring out how to get this # working, it seems like it might be possible. dontCheck # The current version of purescript (0.14.5) has version bounds for LTS-17, # but it compiles cleanly using deps in LTS-18 as well. This jailbreak can # likely be removed when purescript-0.14.6 is released. doJailbreak # Generate shell completions (self.generateOptparseApplicativeCompletions [ "purs" ]) ]; purenix = lib.pipe (super.purenix.overrideScope purescriptOverlay) [ (appendPatches [ # https://github.com/purenix-org/purenix/pull/63 (pkgs.fetchpatch { name = "purenix-purescript-0_15_12"; url = "https://github.com/purenix-org/purenix/commit/2dae563f887c7c8daf3dd3e292ee3580cb70d528.patch"; hash = "sha256-EZXf95BJINyqnRb2t/Ao/9C8ttNp3A27rpKiEKJjO6Y="; }) (pkgs.fetchpatch { name = "purenix-import-fix"; url = "https://github.com/purenix-org/purenix/commit/f1890690264e7e5ce7f5b0a32d73d910ce2cbd73.patch"; hash = "sha256-MRITcNOiaWmzlTd9l7sIz/LhlnpW8T02CXdcc1qQt3c="; }) ]) ]; } ) purescript purenix ; # containers <0.6, semigroupoids <5.3 data-lens = doJailbreak super.data-lens; hashable = lib.pipe super.hashable [ # Big-endian POWER: # Test suite xxhash-tests: RUNNING... # xxhash # oneshot # w64-ref: OK (0.03s) # +++ OK, passed 100 tests. # w64-examples: FAIL # tests/xxhash-tests.hs:21: # expected: 2768807632077661767 # but got: 13521078365639231154 # https://github.com/haskell-unordered-containers/hashable/issues/323 (dontCheckIf pkgs.stdenv.hostPlatform.isBigEndian) ]; cborg = appendPatches [ # This patch changes CPP macros form gating on the version of ghc-prim to base # since that's where the definitions are imported from. The source commit # also changes the cabal file metadata which we filter out since we are # only interested in this change as a dependency of cborg-i686-support-upstream.patch. (pkgs.fetchpatch { name = "cborg-no-gate-on-ghc-prim-version.patch"; url = "https://github.com/well-typed/cborg/commit/a33f94f616f5047e45608a34ca16bfb1304ceaa1.patch"; hash = "sha256-30j4Dksh2nnLKAcUF5XJw3Z/UjfV3F+JFnHeXSUs9Rk="; includes = [ "**/Codec/CBOR/**" ]; stripLen = 1; }) # Fixes compilation on 32-bit platforms. Unreleased patch committed to the # upstream master branch: https://github.com/well-typed/cborg/pull/351 (pkgs.fetchpatch { name = "cborg-i686-support-upstream.patch"; url = "https://github.com/well-typed/cborg/commit/ecc1360dcf9e9ee27d08de5206b844e075c88ca4.patch"; hash = "sha256-9m2FlG6ziRxA1Dy22mErBaIjiZHa1dqtkbmFnMMFrTI="; stripLen = 1; }) ] super.cborg; # Doesn't compile with tasty-quickcheck == 0.11 (see issue above) serialise = dontCheck super.serialise; # 2025-02-06: Allow tasty-quickcheck == 0.11.* # https://github.com/google/ghc-source-gen/issues/120 ghc-source-gen = doJailbreak super.ghc-source-gen; # https://github.com/byteverse/bytebuild/issues/20#issuecomment-2652113837 bytebuild = doJailbreak super.bytebuild; # Too strict bounds on tasty <1.5 and tasty-quickcheck <0.11 # https://github.com/phadej/aeson-extra/issues/62 aeson-extra = doJailbreak super.aeson-extra; # composite-aeson <0.8, composite-base <0.8 haskell-coffee = doJailbreak super.haskell-coffee; # Test suite doesn't compile anymore twitter-types = dontCheck super.twitter-types; secp256k1-haskell = appendPatch (pkgs.fetchpatch { # https://github.com/jprupp/secp256k1-haskell/pull/51 name = "remove-deprecated-aliases"; url = "https://github.com/jprupp/secp256k1-haskell/commit/68318be6ac5271639e3e982a9a5b194dc1f926c2.patch"; sha256 = "sha256-l9WPdV5D8C/t6YXg7Cf6RyNx0cnJKp78VLk02On1Zt4="; }) super.secp256k1-haskell; # Tests open file "data/test_vectors_aserti3-2d_run01.txt" but it doesn't exist haskoin-core = dontCheck super.haskoin-core; # unix-compat <0.5 hxt-cache = doJailbreak super.hxt-cache; # tests can't find the test binary anymore - parseargs-example parseargs = dontCheck super.parseargs; # Test failure https://gitlab.com/lysxia/ap-normalize/-/issues/2 ap-normalize = dontCheck super.ap-normalize; # Fixes test that checks error messages which is sensitive to GHC/Cabal version changes heist = appendPatches [ (pkgs.fetchpatch { name = "heist-fix-ghc-errorr-message-test.patch"; url = "https://github.com/snapframework/heist/commit/9c8c963021608f09e93d486e5339e45073c757bc.patch"; sha256 = "sha256-lenMCb6o0aAJ8D450JB76cZ49o+LVl2UO9hhAZYPacI="; }) ] super.heist; # 2025-09-03: Disable tests until this is solved: # https://github.com/clash-lang/ghc-typelits-extra/issues/60 ghc-typelits-extra = lib.pipe super.ghc-typelits-extra [ (warnAfterVersion "0.4.8") dontCheck ]; # 2025-09-16: 0.5 adds support for GHC 9.12 and doesn't actually seem to contain a # breaking change, so we can upgrade beyond Stackage. # https://github.com/clash-lang/ghc-tcplugins-extra/pull/29#issuecomment-3299008674 # https://github.com/clash-lang/ghc-tcplugins-extra/compare/702dda2095c66c4f5148a749c8b7dbcc8a09f5c...v0.5.0 ghc-tcplugins-extra = doDistribute self.ghc-tcplugins-extra_0_5; # 2025-09-11: Tests have been fixed in 0.7.12, but it requests ghc-tcplugins-extra >= 0.5 # which Stackage LTS won't update to, but we can. ghc-typelits-natnormalise = doDistribute self.ghc-typelits-natnormalise_0_7_12; # calls ghc in tests # https://github.com/brandonchinn178/tasty-autocollect/issues/54 tasty-autocollect = dontCheck super.tasty-autocollect; postgrest = lib.pipe (super.postgrest.overrideScope ( self: super: { # 2025-01-19: Upstream is stuck at hasql < 1.7 # Jailbreaking for newer postgresql-libpq, which seems to work fine postgresql-binary = dontCheck (doJailbreak super.postgresql-binary_0_13_1_3); hasql = dontCheck (doJailbreak super.hasql_1_6_4_4); # Matching dependencies for hasql < 1.6.x hasql-dynamic-statements = dontCheck super.hasql-dynamic-statements_0_3_1_5; hasql-implicits = dontCheck super.hasql-implicits_0_1_1_3; hasql-notifications = unmarkBroken (dontCheck super.hasql-notifications_0_2_2_2); hasql-pool = dontCheck super.hasql-pool_1_0_1; hasql-transaction = dontCheck super.hasql-transaction_1_1_0_1; text-builder = super.text-builder_0_6_10; text-builder-dev = super.text-builder-dev_0_3_10; } )) [ # 2023-12-20: New version needs extra dependencies (addBuildDepends [ self.cache self.extra self.focus self.fuzzyset_0_2_4 self.http-client self.jose-jwt self.neat-interpolation self.prometheus-client self.some self.stm-hamt self.timeit ]) # 2022-12-02: Too strict bounds. doJailbreak # 2022-12-02: Hackage release lags behind actual releases: https://github.com/PostgREST/postgrest/issues/2275 (overrideSrc rec { version = "14.14"; src = pkgs.fetchFromGitHub { owner = "PostgREST"; repo = "postgrest"; rev = "v${version}"; hash = "sha256-iAyGu0yKXpSg0uFgGvD1UGc35yDMLYQ/fHoRERiKJMU="; }; }) ]; # Too strict bounds on hspec < 2.11 fuzzyset_0_2_4 = doJailbreak super.fuzzyset_0_2_4; # 2026-04-27 too strict bounds on thread-utils-context < 0.4 # https://github.com/iand675/hs-opentelemetry/issues/218 hs-opentelemetry-api = doJailbreak super.hs-opentelemetry-api; # The following all have too strict bounds on hs-opentelemtry-api < 0.3 # https://github.com/iand675/hs-opentelemetry/issues/203 hs-opentelemetry-exporter-handle = doJailbreak super.hs-opentelemetry-exporter-handle; hs-opentelemetry-exporter-in-memory = doJailbreak super.hs-opentelemetry-exporter-in-memory; hs-opentelemetry-instrumentation-cloudflare = doJailbreak super.hs-opentelemetry-instrumentation-cloudflare; hs-opentelemetry-instrumentation-conduit = doJailbreak super.hs-opentelemetry-instrumentation-conduit; hs-opentelemetry-instrumentation-hspec = doJailbreak super.hs-opentelemetry-instrumentation-hspec; hs-opentelemetry-instrumentation-http-client = doJailbreak super.hs-opentelemetry-instrumentation-http-client; hs-opentelemetry-instrumentation-persistent = doJailbreak super.hs-opentelemetry-instrumentation-persistent; hs-opentelemetry-instrumentation-postgresql-simple = doJailbreak super.hs-opentelemetry-instrumentation-postgresql-simple; hs-opentelemetry-instrumentation-tasty = doJailbreak super.hs-opentelemetry-instrumentation-tasty; hs-opentelemetry-instrumentation-wai = doJailbreak super.hs-opentelemetry-instrumentation-wai; hs-opentelemetry-instrumentation-yesod = doJailbreak super.hs-opentelemetry-instrumentation-yesod; hs-opentelemetry-utils-exceptions = doJailbreak super.hs-opentelemetry-utils-exceptions; html-charset = dontCheck super.html-charset; # bytestring <0.11.0, optparse-applicative <0.13.0 # https://github.com/kseo/sfnt2woff/issues/1 sfnt2woff = doJailbreak super.sfnt2woff; # libfuse3 fails to mount fuse file systems within the build environment libfuse3 = dontCheck super.libfuse3; # The hackage source is somehow missing a file present in the repo (tests/ListStat.hs). sym = dontCheck super.sym; # 2024-01-24: https://github.com/haskellari/tree-diff/issues/79 # exprParser fails to parse pretty printed structure correctly when the randomizer uses newlines (?) tree-diff = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "-p" "!/parsec-ansi-wl-pprint/" ]; }) super.tree-diff; # Too strict bound on bytestring < 0.12 # https://github.com/raehik/heystone/issues/2 heystone = doJailbreak super.heystone; # Too strict bounds on base, ghc-prim, primitive # https://github.com/kowainik/typerep-map/pull/128 typerep-map = doJailbreak super.typerep-map; # Too strict bounds on base kewar = doJailbreak super.kewar; # Workaround for Cabal failing to find nonexistent SDL2 library?! # https://github.com/NixOS/nixpkgs/issues/260863 sdl2-gfx = overrideCabal { __propagatePkgConfigDepends = false; } super.sdl2-gfx; # Needs git for compile-time insertion of commit hash into --version string. kmonad = overrideCabal (drv: { libraryToolDepends = (drv.libraryToolDepends or [ ]) ++ [ pkgs.buildPackages.git ]; }) super.kmonad; # 2024-01-24: support optparse-applicative 0.18 niv = appendPatches [ (fetchpatch { # needed for the following patch to apply url = "https://github.com/nmattia/niv/commit/7b76374b2b44152bfbf41fcb60162c2ce9182e7a.patch"; includes = [ "src/*" ]; hash = "sha256-3xG+GD6fUCGgi2EgS7WUpjfn6gvc2JurJcIrnyy4ys8="; }) (fetchpatch { # Update to optparse-applicative 0.18 url = "https://github.com/nmattia/niv/commit/290965abaa02be33b601032d850c588a6bafb1a5.patch"; hash = "sha256-YxUdv4r/Fx+8YxHhqEuS9uZR1XKzVCPrLmj5+AY5GRA="; }) ] super.niv; # 2024-03-25: HSH broken because of the unix-2.8.0.0 breaking change HSH = appendPatches [ ./patches/HSH-unix-openFd.patch ] super.HSH; # 2025-09-03: allow base 4.20 # https://github.com/phadej/aeson-optics/issues/20 aeson-optics = lib.pipe super.aeson-optics [ (warnAfterVersion "1.2.1") doJailbreak ]; # https://github.com/isovector/type-errors/issues/9 type-errors = dontCheck super.type-errors; # Too strict bounds on text. Can be removed after https://github.com/alx741/currencies/pull/3 is merged currencies = doJailbreak super.currencies; argon2 = appendPatch (fetchpatch { # https://github.com/haskell-hvr/argon2/pull/20 url = "https://github.com/haskell-hvr/argon2/commit/f7cc92f18e233e6b1dabf1798dd099e17b6a81a1.patch"; hash = "sha256-JxraFWzErJT4EhELa3PWBGHaLT9OLgEPNSnxwpdpHd0="; }) (doJailbreak super.argon2); # Unmaintained # 2025-10-02: Too strict upper bound on tasty-quickcheck (<0.11) # https://github.com/phadej/zinza/pull/28 zinza = dontCheck super.zinza; pdftotext = overrideCabal (drv: { jailbreak = true; postPatch = '' # Fixes https://todo.sr.ht/~geyaeb/haskell-pdftotext/6 substituteInPlace pdftotext.cabal --replace-quiet c-sources cxx-sources # Fix cabal ignoring cxx because the cabal format version is too old substituteInPlace pdftotext.cabal --replace-quiet ">=1.10" 2.2 # Fix wrong license name that breaks recent cabal version substituteInPlace pdftotext.cabal --replace-quiet BSD3 BSD-3-Clause '' + (drv.postPatch or ""); }) super.pdftotext; # QuickCheck <2.15 # https://github.com/google/proto-lens/issues/403 proto-lens-arbitrary = doJailbreak super.proto-lens-arbitrary; # 2024-07-27: building test component requires non-trivial custom build steps # https://github.com/awakesecurity/proto3-suite/blob/bec9d40e2767143deed5b2d451197191f1d8c7d5/nix/overlays/haskell-packages.nix#L311 proto3-suite = lib.pipe super.proto3-suite [ dontCheck doJailbreak ]; # Tests require docker testcontainers = dontCheck super.testcontainers; # https://bitbucket.org/echo_rm/hailgun/pull-requests/27 hailgun = appendPatches [ (fetchpatch { url = "https://bitbucket.org/nh2/hailgun/commits/ac2bc2a3003e4b862625862c4565fece01c0cf57/raw"; sha256 = "sha256-MWeK9nzMVP6cQs2GBFkohABgL8iWcT7YzwF+tLOkIjo="; }) (fetchpatch { url = "https://bitbucket.org/nh2/hailgun/commits/583daaf87265a7fa67ce5171fe1077e61be9b39c/raw"; sha256 = "sha256-6WITonLoONxZzzkS7EI79LwmwSdkt6TCgvHA2Hwy148="; }) (fetchpatch { url = "https://bitbucket.org/nh2/hailgun/commits/b9680b82f6d58f807828c1bbb57e26c7af394501/raw"; sha256 = "sha256-MnOc51tTNg8+HDu1VS2Ct7Mtu0vuuRd3DjzOAOF+t7Q="; }) ] super.hailgun; # opencascade-hs requires the include path configuring relative to the # opencascade subdirectory in include. opencascade-hs = appendConfigureFlags [ "--extra-include-dirs=${lib.getDev pkgs.opencascade-occt}/include/opencascade" ] super.opencascade-hs; # https://github.com/haskell-grpc-native/http2-client/pull/95 # https://github.com/haskell-grpc-native/http2-client/pull/96 # https://github.com/haskell-grpc-native/http2-client/pull/97 # Apply patch for http2 >= 5.2, allow tls >= 2.1 and network >= 3.2 http2-client = appendPatches [ (fetchpatch { name = "http2-client-fix-build-with-http2-5.3.patch"; url = "https://github.com/haskell-grpc-native/http2-client/pull/97/commits/95143e4843253913097838ab791ef39ddfd90b33.patch"; sha256 = "09205ziac59axld8v1cyxa9xl42srypaq8d1gf6y3qwpmrx3rgr9"; }) ] (doJailbreak super.http2-client); # Relax http2 version bound (5.3.9 -> 5.3.10) # https://github.com/well-typed/grapesy/issues/297 # Tests fail with duplicate IsLabel instance error grapesy = dontCheck (doJailbreak super.grapesy); # doctests are failing https://github.com/alpmestan/taggy-lens/issues/8 taggy-lens = dontCheck super.taggy-lens; # 2025-09-03: allow bytestring 0.12 # https://github.com/wangbj/hashing/issues/4 hashing = lib.pipe super.hashing [ (warnAfterVersion "0.1.1.0") doJailbreak ]; bsb-http-chunked = lib.pipe super.bsb-http-chunked [ (warnAfterVersion "0.0.0.4") # Last released in 2018 # https://github.com/sjakobi/bsb-http-chunked/issues/38 # https://github.com/sjakobi/bsb-http-chunked/issues/45 (overrideSrc { src = pkgs.fetchFromGitHub { owner = "sjakobi"; repo = "bsb-http-chunked"; rev = "c0ecd72fe2beb1cf7de9340cc8b4a31045460532"; hash = "sha256-+UDxfywXPjxPuFupcB8veyMYWVQCKha64me9HADtFGg="; }; }) # https://github.com/sjakobi/bsb-http-chunked/pull/49 (appendPatch (fetchpatch { url = "https://github.com/sjakobi/bsb-http-chunked/commit/689bf9ce12b8301d0e13a68e4a515c2779b62947.patch"; sha256 = "sha256-ZdCXMhni+RGisRODiElObW5c4hKy2giWQmWnatqeRJo="; })) ]; # jailbreak to allow deepseq >= 1.5, https://github.com/jumper149/blucontrol/issues/3 blucontrol = doJailbreak super.blucontrol; HList = lib.pipe super.HList [ # Fixes syntax error in tests (appendPatch (fetchpatch { url = "https://bitbucket.org/HList/hlist/commits/e688f11d7432c812c2b238464401a86f588f81e1/raw"; sha256 = "sha256-XIBIrR2MFmhKaocZJ4p57CgmAaFmMU5Z5a0rk2CjIcM="; })) ]; # 2025-04-09: jailbreak to allow hedgehog >= 1.5 hw-int = warnAfterVersion "0.0.2.0" (doJailbreak super.hw-int); # 2025-04-09: jailbreak to allow tasty-quickcheck >= 0.11 bzlib = warnAfterVersion "0.5.2.0" (doJailbreak super.bzlib); # Missing test files in sdist # https://github.com/vmchale/lzlib/issues/1 lzlib = dontCheck super.lzlib; # 2025-07-29: test suite "test" fails to build because of missing source files, # fixed by https://github.com/commercialhaskell/path/pull/193 path = warnAfterVersion "0.9.6" (dontCheck super.path); inherit (lib.mapAttrs ( _: pkg: lib.pipe pkg [ (addTestToolDepends ( with pkgs; [ cvc4 cvc5 z3 ] )) # 2025-04-09: FIXME: template_tests still failing with: # fd:9: hPutBuf: resource vanished (Broken pipe) dontCheck doDistribute ] ) super) what4 what4_1_7_3 ; copilot-theorem = lib.pipe super.copilot-theorem [ (addTestToolDepends (with pkgs; [ z3 ])) ]; # 2025-04-09: jailbreak to allow mtl >= 2.3, template-haskell >= 2.17, text >= 1.3 egison-pattern-src-th-mode = warnAfterVersion "0.2.1.2" ( doJailbreak super.egison-pattern-src-th-mode ); # Missing test files, (and one the test suite needs stack) # https://github.com/egison/egison/issues/283 egison = dontCheck super.egison; # 2025-12-27: doctests broken with -Wx-partial warning # https://github.com/junjihashimoto/th-cas/issues/1 th-cas = overrideCabal { testTargets = [ "spec" ]; } super.th-cas; # https://github.com/TristanCacqueray/haskell-xstatic/issues/5 # Test suite gets confused by mime-types >= 0.1.2.1 xstatic-th = dontCheck super.xstatic-th; # 2025-04-09: jailbreak to allow base >= 4.17, hasql >= 1.6, hasql-transaction-io >= 0.2 hasql-streams-core = warnAfterVersion "0.1.0.0" (doJailbreak super.hasql-streams-core); # 2025-04-09: jailbreak to allow bytestring >= 0.12, text >= 2.1 pipes-text = warnAfterVersion "1.0.1" (doJailbreak super.pipes-text); # 2025-04-09: jailbreak to allow bytestring >= 0.12 array-builder = warnAfterVersion "0.2.0.0" (doJailbreak super.array-builder); # 2025-04-09: missing dependency - somehow it's not listed on hackage broadcast-chan = addExtraLibrary self.conduit super.broadcast-chan; # 2025-04-09: jailbreak to allow aeson >= 2.2, base >= 4.19, text >= 2.1 ebird-api = warnAfterVersion "0.2.0.0" (doJailbreak super.ebird-api); # 2025-04-13: jailbreak to allow bytestring >= 0.12 strings = warnAfterVersion "1.1" (doJailbreak super.strings); # 2025-04-13: jailbreak to allow bytestring >= 0.12 twain = warnAfterVersion "2.2.0.1" (doJailbreak super.twain); # 2025-04-13: jailbreak to allow hedgehog >= 1.5 hw-bits = warnAfterVersion "0.7.2.2" (doJailbreak super.hw-bits); monad-bayes = # Floating point precision issues. Test suite is only checked on x86_64. # https://github.com/tweag/monad-bayes/issues/368 dontCheckIf ( let inherit (pkgs.stdenv) hostPlatform; in !hostPlatform.isx86_64 # Presumably because we emulate x86_64-darwin via Rosetta, x86_64-darwin # also fails on Hydra || hostPlatform.isDarwin ) # Too strict bounds on brick (<2.6), vty (<6.3) # https://github.com/tweag/monad-bayes/issues/378 (doJailbreak super.monad-bayes); # 2025-04-13: jailbreak to allow th-abstraction >= 0.7 crucible = doJailbreak ( super.crucible.override { what4 = self.what4_1_7_3; } ); crucible-llvm = super.crucible-llvm.override { what4 = self.what4_1_7_3; }; # Test suite invokes cabal-install in a way incompatible with our generic builder # (i.e. tries to re-use the ghc package db / environment from dist-newstyle). sensei = dontCheck super.sensei; crux = super.crux.override { simple-get-opt = self.simple-get-opt_0_4; }; # 2025-04-23: jailbreak to allow megaparsec >= 9.7 # 2025-04-23: test data missing from tarball crucible-syntax = doJailbreak (dontCheck super.crucible-syntax); # 2025-04-23: missing test data crucible-debug = overrideCabal (drv: { testFlags = drv.testFlags or [ ] ++ [ "-p" (lib.concatStringsSep "&&" [ "!/backtrace.txt/" "!/block.txt/" "!/call-basic.txt/" "!/clear.txt/" "!/frame.txt/" "!/load-empty.txt/" "!/obligation-false.txt/" "!/prove-false.txt/" "!/prove-true.txt/" "!/test-data\\/.break.txt/" "!/test-data\\/.reg.txt/" "!/test-data\\/.reg.txt/" "!/test-data\\/.trace.txt/" "!/test-data\\/complete\\/.break.txt/" ]) ]; }) super.crucible-debug; # 2025-04-23: missing test data llvm-pretty-bc-parser = dontCheck super.llvm-pretty-bc-parser; # diagrams-builder wants diagrams-cairo < 1.5 for its cairo executable, # but Stackage LTS 24 contains diagrams-cairo >= 1.5. # As such it is difficult to provide (2025-09-13) # ATTN: This needs to match ../../tools/graphics/diagrams-builder/default.nix:/backends # TODO: can we reinstate this by manually passing an older version? diagrams-builder = disableCabalFlag "cairo" ( super.diagrams-builder.override { diagrams-cairo = null; } ); # 2025-04-23: Allow bytestring >= 0.12 # https://github.com/mrkkrp/wave/issues/48 wave = doJailbreak super.wave; # Test suite no longer compiles with hspec-hedgehog >= 0.3 finitary = dontCheck super.finitary; # 2025-04-13: jailbreak to allow template-haskell >= 2.17 sr-extra = warnAfterVersion "1.88" ( overrideCabal (drv: { version = "1.88-unstable-2025-03-30"; # includes https://github.com/seereason/sr-extra/pull/7 src = pkgs.fetchFromGitHub { owner = "seereason"; repo = "sr-extra"; rev = "2b18ced8d07aa8832168971842b20ea49369e4f0"; hash = "sha256-jInfHA1xkLjx5PfsgQVzeQIN3OjTUpEz7dpVNOGNo3g="; }; editedCabalFile = null; revision = null; }) super.sr-extra ); # Too strict bounds on base <4.19 and tasty <1.5 # https://github.com/maoe/ghc-prof/issues/25 ghc-prof = doJailbreak super.ghc-prof; # aeson <2.2, bytestring <0.12, text <2.1 # https://github.com/jaspervdj/profiteur/issues/43 profiteur = doJailbreak super.profiteur; # 2025-04-19: Tests randomly fail 6 out of 10 times coinor-clp = dontCheck super.coinor-clp; # 2025-04-19: Tests randomly fail 5 out of 10 times fft = dontCheck super.fft; # 2025-5-15: Too strict bounds on base <4.19, see: https://github.com/zachjs/sv2v/issues/317 sv2v = doJailbreak super.sv2v; # 2025-06-25: Upper bounds of transformers and bytestring too strict, # as haskore 0.2.0.8 was released in 2016 and is quite outdated. # Tests fail with: # ### Error in: 11:comparison with MIDI files generated by former Haskore versions:23:Ssf:1 # src/Test/MIDI/Ssf.mid: openBinaryFile: does not exist (No such file or directory) # Necessary files aren't listed in extra-source-files in the cabal file # and therefore aren't uploaded to hackage # Needs to be fixed upstream haskore = dontCheck (doJailbreak super.haskore); # 2025-07-10: Hackage release is outdated, https://github.com/portnov/libssh2-hs/issues/77 libssh2 = overrideSrc { version = "0.2.0.9-unstable-2025-04-03"; src = pkgs.fetchFromGitHub { owner = "portnov"; repo = "libssh2-hs"; rev = "d35fa047cd872a73cd4db83aa3185463ac88a1d7"; sha256 = "sha256-m3VVx9mgI3OqtWHC8qY63/Wns808q5iITD5regdMILo="; } + "/libssh2"; } super.libssh2; # 2025-8-19: dontCheck because of: https://github.com/ucsd-progsys/liquid-fixpoint/issues/760 # i.e. tests assume existence of .git and also fail for some versions of CVC5, # including the current one in nixpkgs. liquid-fixpoint = dontCheck super.liquid-fixpoint; # 2025-8-26: Too strict bounds on containers and text, see: https://github.com/stackbuilders/inflections-hs/pull/83 inflections = doJailbreak super.inflections; # 2025-8-26: Too strict bounds on base <=4.19, see https://github.com/typeclasses/stripe/pull/11 stripe-concepts = doJailbreak super.stripe-concepts; stripe-signature = doJailbreak super.stripe-signature; stripe-wreq = doJailbreak super.stripe-wreq; # 2026-05-10: Remove again, when hackage bump is recent enough botan-low = overrideCabal { version = "0.2.0.1"; sha256 = "sha256-yC+GJDNO58TIc197Mgn/vqpt4fY3YghLhJfmGkQjsxk="; revision = null; editedCabalFile = null; } (warnAfterVersion "0.2.0.1" super.botan-low); # 2026-05-10: Remove again, when hackage bump is recent enough botan-bindings = overrideCabal { version = "0.3.0.0"; sha256 = "sha256-tsarIc3LcUKPgSWZ+xcGPWGO2f9OF6SWHB6nmX/vJYw="; revision = null; editedCabalFile = null; } (warnAfterVersion "0.3.0.0" super.botan-bindings); } // import ./configuration-tensorflow.nix { inherit pkgs haskellLib; } self super # Amazonka Packages # 2025-01-24: use latest source files from github, as the hackage release is outdated, https://github.com/brendanhay/amazonka/issues/1001 // ( let amazonkaSrc = pkgs.fetchFromGitHub { owner = "brendanhay"; repo = "amazonka"; rev = "7645bd335f008912b9e5257486f622b674de7afa"; sha256 = "sha256-ObamDnJdcLA2BlX9iGIxkaknUeL3Po3madKO4JA/em0="; }; setAmazonkaSourceRoot = dir: drv: (overrideSrc { version = "2.0-unstable-2025-04-16"; src = amazonkaSrc + "/${dir}"; }) drv; # To get the list of amazonka services run: # > nix eval --impure --expr 'builtins.attrNames (import ./. {}).haskellPackages' --json | jq '.[]' | grep '^"amazonka' # NB: we exclude amazonka-test and amazonka-s3-streaming amazonkaServices = [ "amazonka" "amazonka-accessanalyzer" "amazonka-account" "amazonka-alexa-business" "amazonka-amp" "amazonka-amplify" "amazonka-amplifybackend" "amazonka-amplifyuibuilder" "amazonka-apigateway" "amazonka-apigatewaymanagementapi" "amazonka-apigatewayv2" "amazonka-appconfig" "amazonka-appconfigdata" "amazonka-appflow" "amazonka-appintegrations" "amazonka-application-autoscaling" "amazonka-application-insights" "amazonka-applicationcostprofiler" "amazonka-appmesh" "amazonka-apprunner" "amazonka-appstream" "amazonka-appsync" "amazonka-arc-zonal-shift" "amazonka-athena" "amazonka-auditmanager" "amazonka-autoscaling" "amazonka-autoscaling-plans" "amazonka-backup" "amazonka-backup-gateway" "amazonka-backupstorage" "amazonka-batch" "amazonka-billingconductor" "amazonka-braket" "amazonka-budgets" "amazonka-certificatemanager" "amazonka-certificatemanager-pca" "amazonka-chime" "amazonka-chime-sdk-identity" "amazonka-chime-sdk-media-pipelines" "amazonka-chime-sdk-meetings" "amazonka-chime-sdk-messaging" "amazonka-chime-sdk-voice" "amazonka-cloud9" "amazonka-cloudcontrol" "amazonka-clouddirectory" "amazonka-cloudformation" "amazonka-cloudfront" "amazonka-cloudhsm" "amazonka-cloudhsmv2" "amazonka-cloudsearch" "amazonka-cloudsearch-domains" "amazonka-cloudtrail" "amazonka-cloudwatch" "amazonka-cloudwatch-events" "amazonka-cloudwatch-logs" "amazonka-codeartifact" "amazonka-codebuild" "amazonka-codecommit" "amazonka-codedeploy" "amazonka-codeguru-reviewer" "amazonka-codeguruprofiler" "amazonka-codepipeline" "amazonka-codestar" "amazonka-codestar-connections" "amazonka-codestar-notifications" "amazonka-cognito-identity" "amazonka-cognito-idp" "amazonka-cognito-sync" "amazonka-comprehend" "amazonka-comprehendmedical" "amazonka-compute-optimizer" "amazonka-config" "amazonka-connect" "amazonka-connect-contact-lens" "amazonka-connectcampaigns" "amazonka-connectcases" "amazonka-connectparticipant" "amazonka-contrib-rds-utils" "amazonka-controltower" "amazonka-core" "amazonka-cost-explorer" "amazonka-cur" "amazonka-customer-profiles" "amazonka-databrew" "amazonka-dataexchange" "amazonka-datapipeline" "amazonka-datasync" "amazonka-detective" "amazonka-devicefarm" "amazonka-devops-guru" "amazonka-directconnect" "amazonka-discovery" "amazonka-dlm" "amazonka-dms" "amazonka-docdb" "amazonka-docdb-elastic" "amazonka-drs" "amazonka-ds" "amazonka-dynamodb" "amazonka-dynamodb-dax" "amazonka-dynamodb-streams" "amazonka-ebs" "amazonka-ec2" "amazonka-ec2-instance-connect" "amazonka-ecr" "amazonka-ecr-public" "amazonka-ecs" "amazonka-efs" "amazonka-eks" "amazonka-elastic-inference" "amazonka-elasticache" "amazonka-elasticbeanstalk" "amazonka-elasticsearch" "amazonka-elastictranscoder" "amazonka-elb" "amazonka-elbv2" "amazonka-emr" "amazonka-emr-containers" "amazonka-emr-serverless" "amazonka-evidently" "amazonka-finspace" "amazonka-finspace-data" "amazonka-fis" "amazonka-fms" "amazonka-forecast" "amazonka-forecastquery" "amazonka-frauddetector" "amazonka-fsx" "amazonka-gamelift" "amazonka-gamesparks" "amazonka-glacier" "amazonka-globalaccelerator" "amazonka-glue" "amazonka-grafana" "amazonka-greengrass" "amazonka-greengrassv2" "amazonka-groundstation" "amazonka-guardduty" "amazonka-health" "amazonka-healthlake" "amazonka-honeycode" "amazonka-iam" "amazonka-iam-policy" "amazonka-identitystore" "amazonka-imagebuilder" "amazonka-importexport" "amazonka-inspector" "amazonka-inspector2" "amazonka-iot" "amazonka-iot-analytics" "amazonka-iot-dataplane" "amazonka-iot-jobs-dataplane" "amazonka-iot-roborunner" "amazonka-iot1click-devices" "amazonka-iot1click-projects" "amazonka-iotdeviceadvisor" "amazonka-iotevents" "amazonka-iotevents-data" "amazonka-iotfleethub" "amazonka-iotfleetwise" "amazonka-iotsecuretunneling" "amazonka-iotsitewise" "amazonka-iotthingsgraph" "amazonka-iottwinmaker" "amazonka-iotwireless" "amazonka-ivs" "amazonka-ivschat" "amazonka-kafka" "amazonka-kafkaconnect" "amazonka-kendra" "amazonka-keyspaces" "amazonka-kinesis" "amazonka-kinesis-analytics" "amazonka-kinesis-firehose" "amazonka-kinesis-video" "amazonka-kinesis-video-archived-media" "amazonka-kinesis-video-media" "amazonka-kinesis-video-signaling" "amazonka-kinesis-video-webrtc-storage" "amazonka-kinesisanalyticsv2" "amazonka-kms" "amazonka-lakeformation" "amazonka-lambda" "amazonka-lex-models" "amazonka-lex-runtime" "amazonka-lexv2-models" "amazonka-license-manager" "amazonka-license-manager-linux-subscriptions" "amazonka-license-manager-user-subscriptions" "amazonka-lightsail" "amazonka-location" "amazonka-lookoutequipment" "amazonka-lookoutmetrics" "amazonka-lookoutvision" "amazonka-m2" "amazonka-macie" "amazonka-maciev2" "amazonka-managedblockchain" "amazonka-marketplace-analytics" "amazonka-marketplace-catalog" "amazonka-marketplace-entitlement" "amazonka-marketplace-metering" "amazonka-mechanicalturk" "amazonka-mediaconnect" "amazonka-mediaconvert" "amazonka-medialive" "amazonka-mediapackage" "amazonka-mediapackage-vod" "amazonka-mediastore" "amazonka-mediastore-dataplane" "amazonka-mediatailor" "amazonka-memorydb" "amazonka-mgn" "amazonka-migration-hub-refactor-spaces" "amazonka-migrationhub" "amazonka-migrationhub-config" "amazonka-migrationhuborchestrator" "amazonka-migrationhubstrategy" "amazonka-ml" "amazonka-mobile" "amazonka-mq" "amazonka-mtl" "amazonka-mwaa" "amazonka-neptune" "amazonka-network-firewall" "amazonka-networkmanager" "amazonka-nimble" "amazonka-oam" "amazonka-omics" "amazonka-opensearch" "amazonka-opensearchserverless" "amazonka-opsworks" "amazonka-opsworks-cm" "amazonka-organizations" "amazonka-outposts" "amazonka-panorama" "amazonka-personalize" "amazonka-personalize-events" "amazonka-personalize-runtime" "amazonka-pi" "amazonka-pinpoint" "amazonka-pinpoint-email" "amazonka-pinpoint-sms-voice" "amazonka-pinpoint-sms-voice-v2" "amazonka-pipes" "amazonka-polly" "amazonka-pricing" "amazonka-privatenetworks" "amazonka-proton" "amazonka-qldb" "amazonka-qldb-session" "amazonka-quicksight" "amazonka-ram" "amazonka-rbin" "amazonka-rds" "amazonka-rds-data" "amazonka-redshift" "amazonka-redshift-data" "amazonka-redshift-serverless" "amazonka-rekognition" "amazonka-resiliencehub" "amazonka-resource-explorer-v2" "amazonka-resourcegroups" "amazonka-resourcegroupstagging" "amazonka-robomaker" "amazonka-rolesanywhere" "amazonka-route53" "amazonka-route53-autonaming" "amazonka-route53-domains" "amazonka-route53-recovery-cluster" "amazonka-route53-recovery-control-config" "amazonka-route53-recovery-readiness" "amazonka-route53resolver" "amazonka-rum" "amazonka-s3" "amazonka-s3-encryption" #"amazonka-s3-streaming" "amazonka-s3outposts" "amazonka-sagemaker" "amazonka-sagemaker-a2i-runtime" "amazonka-sagemaker-edge" "amazonka-sagemaker-featurestore-runtime" "amazonka-sagemaker-geospatial" "amazonka-sagemaker-metrics" "amazonka-sagemaker-runtime" "amazonka-savingsplans" "amazonka-scheduler" "amazonka-schemas" "amazonka-sdb" "amazonka-secretsmanager" "amazonka-securityhub" "amazonka-securitylake" "amazonka-serverlessrepo" "amazonka-service-quotas" "amazonka-servicecatalog" "amazonka-servicecatalog-appregistry" "amazonka-ses" "amazonka-sesv2" "amazonka-shield" "amazonka-signer" "amazonka-simspaceweaver" "amazonka-sms" "amazonka-sms-voice" "amazonka-snow-device-management" "amazonka-snowball" "amazonka-sns" "amazonka-sqs" "amazonka-ssm" "amazonka-ssm-contacts" "amazonka-ssm-incidents" "amazonka-ssm-sap" "amazonka-sso" "amazonka-sso-admin" "amazonka-sso-oidc" "amazonka-stepfunctions" "amazonka-storagegateway" "amazonka-sts" "amazonka-support" "amazonka-support-app" "amazonka-swf" "amazonka-synthetics" #"amazonka-test" "amazonka-textract" "amazonka-timestream-query" "amazonka-timestream-write" "amazonka-transcribe" "amazonka-transfer" "amazonka-translate" "amazonka-voice-id" "amazonka-waf" "amazonka-waf-regional" "amazonka-wafv2" "amazonka-wellarchitected" "amazonka-wisdom" "amazonka-workdocs" "amazonka-worklink" "amazonka-workmail" "amazonka-workmailmessageflow" "amazonka-workspaces" "amazonka-workspaces-web" "amazonka-xray" ]; amazonkaServiceOverrides = ( lib.genAttrs amazonkaServices ( name: lib.pipe super.${name} [ (setAmazonkaSourceRoot "lib/services/${name}") (x: x) ] ) ); in amazonkaServiceOverrides // { amazonka-core = lib.pipe super.amazonka-core [ (warnAfterVersion "2.0") (setAmazonkaSourceRoot "lib/amazonka-core") (addBuildDepends [ self.microlens self.microlens-contra self.microlens-pro ]) ]; amazonka = warnAfterVersion "2.0" ( setAmazonkaSourceRoot "lib/amazonka" (doJailbreak super.amazonka) ); amazonka-test = warnAfterVersion "2.0" ( setAmazonkaSourceRoot "lib/amazonka-test" (doJailbreak super.amazonka-test) ); } ) # Cachix packages # Manually maintained // ( let version = "1.11.1"; src = pkgs.fetchFromGitHub { owner = "cachix"; repo = "cachix"; tag = "v${version}"; hash = "sha256-TuvKVBX60mqyMT6OB5JqVEh1YIWtFMR/igLCaCdC9tw="; }; in { cachix-api = overrideSrc { inherit version; src = src + "/cachix-api"; } super.cachix-api; cachix = lib.pipe super.cachix [ (overrideSrc { inherit version; src = src + "/cachix"; }) ( drv: drv.override { nix = self.hercules-ci-cnix-store.nixPackage; hnix-store-core = self.hnix-store-core_0_8_0_0; } ) ]; } ) # 2026-04-01: IHP packages need hasql >= 1.10 (via hasql-mapping). # The scope renames hasql-stack attrs to the 1.10 line and unmarks # hasql-mapping, which only builds against hasql >= 1.10 and so stays # broken at the top level. dontCheck for tests that need a live # PostgreSQL lives in configuration-nix.nix on the versioned attrs. // ( let ihpHasqlScope = self: super: { hasql = doDistribute super.hasql_1_10_3; hasql-dynamic-statements = doDistribute super.hasql-dynamic-statements_0_5_1; hasql-notifications = doDistribute super.hasql-notifications_0_2_5_0; hasql-pool = doDistribute super.hasql-pool_1_4_2; hasql-transaction = doDistribute super.hasql-transaction_1_2_2; postgresql-binary = doDistribute super.postgresql-binary_0_15_0_1; text-builder = doDistribute super.text-builder_1_0_0_5; hasql-mapping = doDistribute (unmarkBroken super.hasql-mapping); postgresql-simple-postgresql-types = doDistribute ( unmarkBroken super.postgresql-simple-postgresql-types ); }; ihpPackages = [ "ihp" "ihp-datasync" "ihp-graphql" "ihp-hspec" "ihp-ide" "ihp-job-dashboard" "ihp-migrate" "ihp-pglistener" "ihp-ssc" "ihp-typed-sql" ]; in lib.genAttrs ihpPackages ( name: haskellLib.doDistribute (haskellLib.unmarkBroken (super.${name}.overrideScope ihpHasqlScope)) ) )