1# COMMON OVERRIDES FOR THE HASKELL PACKAGE SET IN NIXPKGS
2#
3# This file contains haskell package overrides that are shared by all
4# haskell package sets provided by nixpkgs and distributed via the official
5# NixOS hydra instance.
6#
7# Overrides that would also make sense for custom haskell package sets not provided
8# as part of nixpkgs and that are specific to Nix should go in configuration-nix.nix
9#
10# See comment at the top of configuration-nix.nix for more information about this
11# distinction.
12{ pkgs, haskellLib }:
13
14self: super:
15
16let
17 inherit (pkgs) fetchpatch lib;
18 inherit (lib) throwIfNot versionOlder;
19
20 warnAfterVersion =
21 ver: pkg:
22 lib.warnIf (lib.versionOlder ver
23 super.${pkg.pname}.version
24 ) "override for haskellPackages.${pkg.pname} may no longer be needed" pkg;
25
26in
27
28with haskellLib;
29
30# To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead.
31{
32 # Hackage's accelerate is from 2020 and incompatible with our GHC.
33 # The existing derivation also has missing dependencies
34 # compared to the source from github.
35 # https://github.com/AccelerateHS/accelerate/issues/553
36 accelerate = lib.pipe super.accelerate [
37 (warnAfterVersion "1.3.0.0")
38 (addBuildDepends [
39 self.double-conversion
40 self.formatting
41 self.microlens
42 ])
43
44 (overrideCabal (drv: {
45 version = "1.3.0.0-unstable-2025-04-25";
46 src = pkgs.fetchFromGitHub {
47 owner = "AccelerateHS";
48 repo = "accelerate";
49 rev = "3f681a5091eddf5a3b97f4cd0de32adc830e1117";
50 sha256 = "sha256-tCcl7wAls+5cBSrqbxfEAJngbV43OJcLJdaC4qqkBxc=";
51 };
52 }))
53 ];
54
55 # https://github.com/ivanperez-keera/dunai/issues/427
56 dunai = addBuildDepend self.list-transformer (enableCabalFlag "list-transformer" super.dunai);
57
58 # Make sure that Cabal_* can be built as-is
59 Cabal_3_10_3_0 = doDistribute (
60 super.Cabal_3_10_3_0.override {
61 Cabal-syntax = self.Cabal-syntax_3_10_3_0;
62 }
63 );
64 Cabal_3_12_1_0 = doDistribute (
65 super.Cabal_3_12_1_0.override {
66 Cabal-syntax = self.Cabal-syntax_3_12_1_0;
67 }
68 );
69 Cabal_3_14_2_0 =
70 overrideCabal
71 (drv: {
72 # Revert increased lower bound on unix since we have backported
73 # the required patch to all GHC bundled versions of unix.
74 postPatch = drv.postPatch or "" + ''
75 substituteInPlace Cabal.cabal --replace-fail "unix >= 2.8.6.0" "unix >= 2.6.0.0"
76 '';
77 })
78 (
79 doDistribute (
80 super.Cabal_3_14_2_0.override {
81 Cabal-syntax = self.Cabal-syntax_3_14_2_0;
82 }
83 )
84 );
85
86 # Needs matching version of Cabal
87 Cabal-hooks = super.Cabal-hooks.override {
88 Cabal = self.Cabal_3_14_2_0;
89 };
90
91 # Needs Cabal>=3.14
92 cabal-lenses = super.cabal-lenses.override {
93 Cabal = self.Cabal_3_14_2_0;
94 };
95
96 # cabal-install needs most recent versions of Cabal and Cabal-syntax,
97 # so we need to put some extra work for non-latest GHCs
98 inherit
99 (
100 let
101 # !!! Use cself/csuper inside for the actual overrides
102 cabalInstallOverlay = cself: csuper: {
103 Cabal = cself.Cabal_3_14_2_0;
104 Cabal-syntax = cself.Cabal-syntax_3_14_2_0;
105
106 # Only needed for cabal2nix, hpack < 0.37 forbids Cabal >= 3.14
107 hpack = cself.hpack_0_38_1;
108 };
109 in
110 {
111 cabal-install =
112 let
113 cabal-install = super.cabal-install.overrideScope cabalInstallOverlay;
114 scope = cabal-install.scope;
115 in
116 # Some dead code is not properly eliminated on aarch64-darwin, leading
117 # to bogus references to some dependencies.
118 overrideCabal (
119 old:
120 {
121 # Prevent DOS line endings from Hackage from breaking a patch
122 prePatch = old.prePatch or "" + ''
123 ${pkgs.buildPackages.dos2unix}/bin/dos2unix *.cabal
124 '';
125 # Ignore unix bound intended to prevent an unix bug on 32bit systems.
126 # We apply a patch for this issue to the GHC core packages directly.
127 # See unix-fix-ctimeval-size-32-bit.patch in ../compilers/ghc/common-*.nix
128 patches =
129 old.patches or [ ]
130 ++
131 lib.optionals
132 (
133 scope.unix == null
134 && lib.elem self.ghc.version [
135 "9.6.1"
136 "9.6.2"
137 "9.6.3"
138 "9.6.4"
139 "9.6.5"
140 "9.6.6"
141 "9.8.1"
142 "9.8.2"
143 "9.8.3"
144 "9.10.1"
145 ]
146 )
147 [
148 ./patches/cabal-install-3.14.1.1-lift-unix-bound.patch
149 ];
150 }
151 // lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin && pkgs.stdenv.hostPlatform.isAarch64) {
152 postInstall = ''
153 ${old.postInstall or ""}
154 remove-references-to -t ${scope.HTTP} "$out/bin/.cabal-wrapped"
155 # if we don't override Cabal, it is taken from ghc's core libs
156 remove-references-to -t ${
157 if scope.Cabal != null then scope.Cabal else scope.ghc
158 } "$out/bin/.cabal-wrapped"
159 '';
160 }
161 ) cabal-install;
162
163 cabal-install-solver = super.cabal-install-solver.overrideScope cabalInstallOverlay;
164
165 # Needs cabal-install >= 3.8 /as well as/ matching Cabal
166 guardian = lib.pipe (super.guardian.overrideScope cabalInstallOverlay) [
167 # Tests need internet access (run stack)
168 dontCheck
169 # May as well…
170 (self.generateOptparseApplicativeCompletions [ "guardian" ])
171 ];
172
173 cabal2nix-unstable = super.cabal2nix-unstable.overrideScope cabalInstallOverlay;
174 distribution-nixpkgs-unstable = super.distribution-nixpkgs-unstable.overrideScope cabalInstallOverlay;
175 hackage-db-unstable = super.hackage-db-unstable.overrideScope cabalInstallOverlay;
176 }
177 )
178 cabal-install
179 cabal-install-solver
180 guardian
181 cabal2nix-unstable
182 distribution-nixpkgs-unstable
183 hackage-db-unstable
184 ;
185
186 # Expected test output for these accidentally checks the absolute location of the source directory
187 # https://github.com/dan-t/cabal-cargs/issues/9
188 cabal-cargs = overrideCabal (drv: {
189 testFlags = drv.testFlags or [ ] ++ [
190 "-p"
191 "!/FindCabalFilePure withoutSandbox/"
192 "-p"
193 "!/FromCabalFilePure withoutSandbox/"
194 "-p"
195 "!/FromLibSrcPure withoutSandbox/"
196 "-p"
197 "!/FromExeSrcFilePure withoutSandbox/"
198 "-p"
199 "!/FindCabalFilePure withSandbox/"
200 "-p"
201 "!/FromCabalFilePure withSandbox/"
202 "-p"
203 "!/FromLibSrcPure withSandbox/"
204 "-p"
205 "!/FromExeSrcFilePure withSandbox/"
206 ];
207 }) super.cabal-cargs;
208
209 # Extensions wants the latest version of Cabal for its list of Haskell
210 # language extensions.
211 # 2025-02-10: jailbreak to allow hspec-hedgehog 0.3.0.0 and hedgehog 1.5
212 extensions = doJailbreak (
213 super.extensions.override {
214 Cabal = if versionOlder self.ghc.version "9.6" then self.Cabal_3_10_3_0 else null; # use GHC bundled version
215 }
216 );
217
218 #######################################
219 ### HASKELL-LANGUAGE-SERVER SECTION ###
220 #######################################
221
222 # All jailbreaks in this section due to: https://github.com/haskell/haskell-language-server/pull/4316#discussion_r1667684895
223 haskell-language-server =
224 lib.pipe
225 (super.haskell-language-server.overrideScope (
226 lself: lsuper: {
227 # For most ghc versions, we overrideScope Cabal in the configuration-ghc-???.nix,
228 # because some packages, like ormolu, need a newer Cabal version.
229 # ghc-paths is special because it depends on Cabal for building
230 # its Setup.hs, and therefor declares a Cabal dependency, but does
231 # not actually use it as a build dependency.
232 # That means ghc-paths can just use the ghc included Cabal version,
233 # without causing package-db incoherence and we should do that because
234 # otherwise we have different versions of ghc-paths
235 # around which have the same abi-hash, which can lead to confusions and conflicts.
236 ghc-paths = lsuper.ghc-paths.override { Cabal = null; };
237 }
238 ))
239 [
240 dontCheck
241 ];
242
243 # For -f-auto see cabal.project in haskell-language-server.
244 ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser (
245 disableCabalFlag "auto" super.ghc-lib-parser-ex
246 );
247
248 ###########################################
249 ### END HASKELL-LANGUAGE-SERVER SECTION ###
250 ###########################################
251
252 # Test ldap server test/ldap.js is missing from sdist
253 # https://github.com/supki/ldap-client/issues/18
254 ldap-client-og = dontCheck super.ldap-client-og;
255
256 # Support for template-haskell >= 2.16
257 language-haskell-extract = appendPatch (pkgs.fetchpatch {
258 url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/dfd024c9a336c752288ec35879017a43bd7e85a0/patches/language-haskell-extract-0.2.4.patch";
259 sha256 = "0w4y3v69nd3yafpml4gr23l94bdhbmx8xky48a59lckmz5x9fgxv";
260 }) (doJailbreak super.language-haskell-extract);
261
262 vector = overrideCabal (old: {
263 # vector-doctest seems to be broken when executed via ./Setup test
264 testTargets = [
265 "vector-tests-O0"
266 "vector-tests-O2"
267 ];
268 }) super.vector;
269
270 # https://github.com/lspitzner/data-tree-print/issues/4
271 data-tree-print = doJailbreak super.data-tree-print;
272
273 # jacinda needs latest version of alex and happy
274 jacinda = super.jacinda.override {
275 happy = self.happy_2_1_5;
276 };
277
278 # Test suite hangs on 32bit. Unclear if this is a bug or not, but if so, then
279 # it has been present in past versions as well.
280 # https://github.com/haskell-unordered-containers/unordered-containers/issues/491
281 unordered-containers =
282 if pkgs.stdenv.hostPlatform.is32bit then
283 dontCheck super.unordered-containers
284 else
285 super.unordered-containers;
286
287 aeson =
288 # aeson's test suite includes some tests with big numbers that fail on 32bit
289 # https://github.com/haskell/aeson/issues/1060
290 dontCheckIf pkgs.stdenv.hostPlatform.is32bit
291 # Deal with infinite and NaN values generated by QuickCheck-2.14.3
292 super.aeson;
293
294 time-compat = overrideCabal (drv: {
295 testFlags = drv.testFlags or [ ] ++ [
296 "-p"
297 (lib.concatStringsSep "&&" [
298 # Precision tests often fail in VMs:
299 # https://github.com/haskellari/time-compat/issues/31
300 "!/getCurrentTime/"
301 "!/taiClock/"
302 ])
303 ];
304 }) super.time-compat;
305
306 # 2023-06-28: Test error: https://hydra.nixos.org/build/225565149
307 orbits = dontCheck super.orbits;
308
309 # 2025-02-10: Too strict bounds on tasty-quickcheck < 0.11
310 tasty-discover = doJailbreak super.tasty-discover;
311
312 # 2025-02-10: Too strict bounds on tasty < 1.5
313 tasty-hunit-compat = doJailbreak super.tasty-hunit-compat;
314
315 # Out of date test data: https://github.com/ocharles/weeder/issues/176
316 weeder = appendPatch (pkgs.fetchpatch {
317 name = "weeder-2.9.0-test-fix-expected.patch";
318 url = "https://github.com/ocharles/weeder/commit/56028d0c80fe89d4f2ae25275aedb72714fec7da.patch";
319 sha256 = "10zkvclyir3zf21v41zdsvg68vrkq89n64kv9k54742am2i4aygf";
320 }) super.weeder;
321
322 # Test suite doesn't find necessary test files when compiling
323 # https://github.com/yesodweb/shakespeare/issues/294
324 shakespeare = dontCheck super.shakespeare;
325
326 # Work around -Werror failures until a more permanent solution is released
327 # https://github.com/haskell-cryptography/HsOpenSSL/issues/88
328 # https://github.com/haskell-cryptography/HsOpenSSL/issues/93
329 # https://github.com/haskell-cryptography/HsOpenSSL/issues/95
330 HsOpenSSL = appendConfigureFlags [
331 "--ghc-option=-optc=-Wno-error=incompatible-pointer-types"
332 ] super.HsOpenSSL;
333 # Work around compilation failures with gcc >= 14
334 # https://github.com/audreyt/hssyck/issues/5
335 HsSyck = appendConfigureFlags [
336 "--ghc-option=-optc=-Wno-error=implicit-function-declaration"
337 ] super.HsSyck;
338 # https://github.com/rethab/bindings-dsl/issues/46
339 bindings-libcddb = appendConfigureFlags [
340 "--ghc-option=-optc=-Wno-error=incompatible-pointer-types"
341 ] super.bindings-libcddb;
342 # https://github.com/ocramz/hdf5-lite/issues/3
343 hdf5-lite = appendConfigureFlags [
344 "--ghc-option=-optc=-Wno-error=implicit-function-declaration"
345 ] super.hdf5-lite;
346 # https://github.com/awkward-squad/termbox/issues/5
347 termbox-bindings-c = appendConfigureFlags [
348 "--ghc-option=-optc=-Wno-error=implicit-function-declaration"
349 ] super.termbox-bindings-c;
350
351 # There are numerical tests on random data, that may fail occasionally
352 lapack = dontCheck super.lapack;
353
354 # support for transformers >= 0.6
355 lifted-base = appendPatch (fetchpatch {
356 url = "https://github.com/basvandijk/lifted-base/commit/6b61483ec7fd0d5d5d56ccb967860d42740781e8.patch";
357 sha256 = "sha256-b29AVDiEMcShceRJyKEauK/411UkOh3ME9AnKEYvcEs=";
358 }) super.lifted-base;
359
360 leveldb-haskell = overrideCabal (drv: {
361 version = "2024-05-05-unstable";
362 # Fix tests on mtl ≥ 2.3
363 # https://github.com/kim/leveldb-haskell/pull/42
364 src = pkgs.fetchFromGitHub {
365 owner = "kim";
366 repo = "leveldb-haskell";
367 rev = "3a505f3a7de0f5d14463538d7c2c9a9881a60eb9";
368 sha256 = "sha256-okUn5ZuWcj8vPr0GWXvO1LygNCrDfttkDaUoOt+FLA0=";
369 };
370 }) super.leveldb-haskell;
371
372 # 2024-06-23: Hourglass is archived and had its last commit 6 years ago.
373 # Patch is needed to add support for time 1.10, which is only used in the tests
374 # https://github.com/vincenthz/hs-hourglass/pull/56
375 # Jailbreak is needed because a hackage revision added the (correct) time <1.10 bound.
376 hourglass = doJailbreak (
377 appendPatches [
378 (pkgs.fetchpatch {
379 name = "hourglass-pr-56.patch";
380 url = "https://github.com/vincenthz/hs-hourglass/commit/cfc2a4b01f9993b1b51432f0a95fa6730d9a558a.patch";
381 sha256 = "sha256-gntZf7RkaR4qzrhjrXSC69jE44SknPDBmfs4z9rVa5Q=";
382 })
383 ] super.hourglass
384 );
385
386 # Arion's test suite needs a Nixpkgs, which is cumbersome to do from Nixpkgs
387 # itself. For instance, pkgs.path has dirty sources and puts a huge .git in the
388 # store. Testing is done upstream.
389 arion-compose = dontCheck super.arion-compose;
390
391 # 2023-07-17: Outdated base bound https://github.com/srid/lvar/issues/5
392 lvar = doJailbreak super.lvar;
393
394 # Don't call setEnv in parallel in the test suite (which leads to flaky failures)
395 env-extra =
396 appendPatches
397 [
398 (pkgs.fetchpatch {
399 name = "env-extra-no-parallel-setenv.patch";
400 url = "https://github.com/d12frosted/env-extra/commit/4fcbc031b210e71e4243fcfe7c48d381e2f51d78.patch";
401 sha256 = "sha256-EbXk+VOmxMJAMCMTXpTiW8fkbNI9za7f1alzCeaJaV4=";
402 excludes = [ "package.yaml" ];
403 })
404 ]
405 (
406 overrideCabal (drv: {
407 prePatch = ''
408 ${drv.prePatch or ""}
409 ${lib.getExe' pkgs.buildPackages.dos2unix "dos2unix"} *.cabal
410 '';
411 }) super.env-extra
412 );
413
414 # This used to be a core package provided by GHC, but then the compiler
415 # dropped it. We define the name here to make sure that old packages which
416 # depend on this library still evaluate (even though they won't compile
417 # successfully with recent versions of the compiler).
418 bin-package-db = null;
419
420 # waiting for release: https://github.com/jwiegley/c2hsc/issues/41
421 c2hsc = appendPatch (fetchpatch {
422 url = "https://github.com/jwiegley/c2hsc/commit/490ecab202e0de7fc995eedf744ad3cb408b53cc.patch";
423 sha256 = "1c7knpvxr7p8c159jkyk6w29653z5yzgjjqj11130bbb8mk9qhq7";
424 }) super.c2hsc;
425
426 # 2025-02-10: Too strict bounds on bytestring < 0.12
427 ghc-debug-common = doJailbreak super.ghc-debug-common;
428
429 # https://github.com/agrafix/superbuffer/issues/4
430 # Too strict bounds on bytestring < 0.12
431 superbuffer = doJailbreak super.superbuffer;
432
433 # Infinite recursion with test enabled.
434 # 2025-02-14: Too strict bounds on attoparsec < 0.14
435 attoparsec-varword = doJailbreak (dontCheck super.attoparsec-varword);
436
437 # These packages (and their reverse deps) cannot be built with profiling enabled.
438 ghc-heap-view = disableLibraryProfiling super.ghc-heap-view;
439 ghc-datasize = disableLibraryProfiling super.ghc-datasize;
440 ghc-vis = disableLibraryProfiling super.ghc-vis;
441
442 # Fix 32bit struct being used for 64bit syscall on 32bit platforms
443 # https://github.com/haskellari/lukko/issues/15
444 lukko = appendPatches [
445 (fetchpatch {
446 name = "lukko-ofd-locking-32bit.patch";
447 url = "https://github.com/haskellari/lukko/pull/32/commits/4e69ffad996c3771f50017b97375af249dd17c85.patch";
448 sha256 = "0n8vig48irjz0jckc20dzc23k16fl5hznrc0a81y02ms72msfwi1";
449 })
450 ] super.lukko;
451
452 # Relax version constraints (network < 3.2, text < 2.1)
453 # https://github.com/essandess/adblock2privoxy/pull/43
454 adblock2privoxy = doJailbreak super.adblock2privoxy;
455
456 # Missing test file https://gitlab.com/dpwiz/hs-jpeg-turbo/-/issues/1
457 jpeg-turbo = dontCheck super.jpeg-turbo;
458 JuicyPixels-jpeg-turbo = dontCheck super.JuicyPixels-jpeg-turbo;
459
460 # Fixes compilation for basement on i686 for GHC >= 9.4
461 # https://github.com/haskell-foundation/foundation/pull/573
462 # Patch would not work for GHC >= 9.2 where it breaks compilation on x86_64
463 # https://github.com/haskell-foundation/foundation/pull/573#issuecomment-1669468867
464 # TODO(@sternenseemann): make unconditional
465 basement = appendPatches (lib.optionals pkgs.stdenv.hostPlatform.is32bit [
466 (fetchpatch {
467 name = "basement-i686-ghc-9.4.patch";
468 url = "https://github.com/haskell-foundation/foundation/pull/573/commits/38be2c93acb6f459d24ed6c626981c35ccf44095.patch";
469 sha256 = "17kz8glfim29vyhj8idw8bdh3id5sl9zaq18zzih3schfvyjppj7";
470 stripLen = 1;
471 })
472 ]) super.basement;
473
474 # Fixes compilation of memory with GHC >= 9.4 on 32bit platforms
475 # https://github.com/vincenthz/hs-memory/pull/99
476 memory = appendPatches (lib.optionals pkgs.stdenv.hostPlatform.is32bit [
477 (fetchpatch {
478 name = "memory-i686-ghc-9.4.patch";
479 url = "https://github.com/vincenthz/hs-memory/pull/99/commits/2738929ce15b4c8704bbbac24a08539b5d4bf30e.patch";
480 sha256 = "196rj83iq2k249132xsyhbbl81qi1j23h9pa6mmk6zvxpcf63yfw";
481 })
482 ]) super.memory;
483
484 # Depends on outdated deps hedgehog < 1.4, doctest < 0.12 for tests
485 # As well as deepseq < 1.5 (so it forbids GHC 9.8)
486 hw-fingertree = doJailbreak super.hw-fingertree;
487
488 # Test suite is slow and sometimes comes up with counter examples.
489 # Upstream is aware (https://github.com/isovector/nspace/issues/1),
490 # if it's a bug, at least doesn't seem to be nixpkgs-specific.
491 nspace = dontCheck super.nspace;
492
493 # Unreleased commits relaxing bounds on various dependencies
494 gitit = appendPatches [
495 (fetchpatch {
496 name = "gitit-allow-hoauth2-2.14.patch";
497 url = "https://github.com/jgm/gitit/commit/58a226c48b37f076ccc1b94ad88a9ffc05f983cc.patch";
498 sha256 = "1fvfzbas18vsv9qvddp6g82hy9hdgz34n51w6dpkd7cm4sl07pjv";
499 })
500 (fetchpatch {
501 name = "gitit-allow-pandoc-3.6.patch";
502 url = "https://github.com/jgm/gitit/commit/c57c790fa0db81d383f22901a0db4ffe90f1bfcc.patch";
503 sha256 = "0nbzxyc9gkhkag1fhv3qmw5zgblhbz0axrlsismrcvdzr28amii8";
504 })
505 (fetchpatch {
506 name = "gitit-allow-zlib-0.7-network-3.2.patch";
507 url = "https://github.com/jgm/gitit/commit/efaee62bc32c558e618ad34458fa2ef85cb8eb1e.patch";
508 sha256 = "1ghky3afnib56w102mh09cz2alfyq743164mnjywwfl6a6yl6i5h";
509 })
510 ] super.gitit;
511
512 # https://github.com/schuelermine/ret/issues/3
513 ret = doJailbreak super.ret; # base < 4.19
514
515 # The latest release on hackage has an upper bound on containers which
516 # breaks the build, though it works with the version of containers present
517 # and the upper bound doesn't exist in code anymore:
518 # > https://github.com/roelvandijk/numerals
519 numerals = doJailbreak (dontCheck super.numerals);
520
521 # Bound on containers is too strict but jailbreak doesn't work with conditional flags
522 # https://github.com/NixOS/jailbreak-cabal/issues/24
523 containers-unicode-symbols = overrideCabal {
524 postPatch = ''
525 substituteInPlace containers-unicode-symbols.cabal \
526 --replace 'containers >= 0.5 && < 0.6.5' 'containers'
527 '';
528 } super.containers-unicode-symbols;
529
530 # Test file not included on hackage
531 numerals-base = dontCheck (doJailbreak super.numerals-base);
532
533 # This test keeps being aborted because it runs too quietly for too long
534 Lazy-Pbkdf2 =
535 if pkgs.stdenv.hostPlatform.isi686 then dontCheck super.Lazy-Pbkdf2 else super.Lazy-Pbkdf2;
536
537 # check requires mysql server
538 mysql-simple = dontCheck super.mysql-simple;
539
540 # Test data missing
541 # https://github.com/FPtje/GLuaFixer/issues/165
542 glualint = dontCheck super.glualint;
543
544 # Hackage tarball only includes what is supported by `cabal install git-annex`,
545 # but we want e.g. completions as well. See
546 # https://web.archive.org/web/20160724083703/https://git-annex.branchable.com/bugs/bash_completion_file_is_missing_in_the_6.20160527_tarball_on_hackage/
547 # or git-annex @ 3571b077a1244330cc736181ee04b4d258a78476 doc/bugs/bash_completion_file_is_missing*
548 git-annex = lib.pipe super.git-annex (
549 [
550 (overrideCabal (drv: {
551 src = pkgs.fetchgit {
552 name = "git-annex-${super.git-annex.version}-src";
553 url = "git://git-annex.branchable.com/";
554 rev = "refs/tags/" + super.git-annex.version;
555 sha256 = "sha256-whpBFmOHBTm1clXoAwInsQw7mnxrQOyaUj7byogku5c=";
556 # delete android and Android directories which cause issues on
557 # darwin (case insensitive directory). Since we don't need them
558 # during the build process, we can delete it to prevent a hash
559 # mismatch on darwin.
560 postFetch = ''
561 rm -r $out/doc/?ndroid*
562 '';
563 };
564
565 patches = drv.patches or [ ] ++ [
566 # Prevent .desktop files from being installed to $out/usr/share.
567 # TODO(@sternenseemann): submit upstreamable patch resolving this
568 # (this should be possible by also taking PREFIX into account).
569 ./patches/git-annex-no-usr-prefix.patch
570 # https://git-annex.branchable.com/bugs/flaky_test_failure_add_dup/
571 (pkgs.fetchpatch {
572 name = "git-annex-workaround-for-git-2.50_bis.patch";
573 url = "https://git.joeyh.name/index.cgi/git-annex.git/patch/?id=cf449837ea9ab7687d8a157f21cad31ddf5bbfb6";
574 sha256 = "sha256-HmNJ85dLht5Hy85AUkjACnET9YLPP2MshYHsApUax+I=";
575 excludes = [
576 "doc/**"
577 "CHANGELOG"
578 ];
579 })
580 ];
581
582 postPatch = ''
583 substituteInPlace Makefile \
584 --replace-fail 'InstallDesktopFile $(PREFIX)/bin/git-annex' \
585 'InstallDesktopFile git-annex'
586 '';
587 }))
588 ]
589 ++ lib.optionals (lib.versionOlder self.ghc.version "9.10") [
590 (disableCabalFlag "OsPath")
591 (addBuildDepends [ self.filepath-bytestring ])
592 ]
593 );
594
595 # Too strict bounds on servant
596 # Pending a hackage revision: https://github.com/berberman/arch-web/commit/5d08afee5b25e644f9e2e2b95380a5d4f4aa81ea#commitcomment-89230555
597 arch-web = doJailbreak super.arch-web;
598
599 # Fix test trying to access /home directory
600 shell-conduit = overrideCabal (drv: {
601 postPatch = "sed -i s/home/tmp/ test/Spec.hs";
602 }) super.shell-conduit;
603
604 # https://github.com/serokell/nixfmt/issues/130
605 nixfmt = doJailbreak super.nixfmt;
606
607 # Too strict upper bounds on turtle and text
608 # https://github.com/awakesecurity/nix-deploy/issues/35
609 nix-deploy = doJailbreak super.nix-deploy;
610
611 # Too strict upper bound on algebraic-graphs
612 # https://github.com/awakesecurity/nix-graph/issues/5
613 nix-graph = doJailbreak super.nix-graph;
614
615 # Too strict bounds on hspec
616 # https://github.com/illia-shkroba/pfile/issues/2
617 pfile = doJailbreak super.pfile;
618
619 # Manually maintained
620 cachix-api = overrideCabal (drv: {
621 version = "1.7.9";
622 src = pkgs.fetchFromGitHub {
623 owner = "cachix";
624 repo = "cachix";
625 tag = "v1.7.9";
626 hash = "sha256-R0W7uAg+BLoHjMRMQ8+oiSbTq8nkGz5RDpQ+ZfxxP3A=";
627 };
628 postUnpack = "sourceRoot=$sourceRoot/cachix-api";
629 }) super.cachix-api;
630 cachix = (
631 overrideCabal
632 (drv: {
633 version = "1.7.9";
634 src = pkgs.fetchFromGitHub {
635 owner = "cachix";
636 repo = "cachix";
637 tag = "v1.7.9";
638 hash = "sha256-R0W7uAg+BLoHjMRMQ8+oiSbTq8nkGz5RDpQ+ZfxxP3A=";
639 };
640 postUnpack = "sourceRoot=$sourceRoot/cachix";
641 })
642 (
643 lib.pipe
644 (super.cachix.override {
645 nix = self.hercules-ci-cnix-store.nixPackage;
646 })
647 [
648 (addBuildTool self.hercules-ci-cnix-store.nixPackage)
649 (addBuildTool pkgs.buildPackages.pkg-config)
650 (addBuildDepend self.hnix-store-nar)
651 ]
652 )
653 );
654
655 # Overly strict bounds on postgresql-simple (< 0.7), tasty (< 1.5) and tasty-quickcheck (< 0.11)
656 # https://github.com/tdammers/migrant/pull/5
657 migrant-core = doJailbreak super.migrant-core;
658 migrant-sqlite-simple = doJailbreak super.migrant-sqlite-simple;
659 migrant-hdbc = doJailbreak super.migrant-hdbc;
660 migrant-postgresql-simple = lib.pipe super.migrant-postgresql-simple [
661 (overrideCabal {
662 preCheck = ''
663 postgresqlTestUserOptions="LOGIN SUPERUSER"
664 '';
665 })
666 (addTestToolDepends [
667 pkgs.postgresql
668 pkgs.postgresqlTestHook
669 ])
670 doJailbreak
671 ];
672
673 # https://github.com/froozen/kademlia/issues/2
674 kademlia = dontCheck super.kademlia;
675
676 # Tests require older versions of tasty.
677 hzk = dontCheck super.hzk;
678
679 # Test suite doesn't compile with 9.6
680 # https://github.com/sebastiaanvisser/fclabels/issues/45
681 # Doesn't compile with 9.8 at all
682 # https://github.com/sebastiaanvisser/fclabels/issues/46
683 fclabels =
684 if lib.versionOlder self.ghc.version "9.8" then
685 dontCheck super.fclabels
686 else
687 dontDistribute (markBroken super.fclabels);
688
689 # Bounds on base are too strict.
690 # https://github.com/phadej/regex-applicative-text/issues/13
691 regex-applicative-text = doJailbreak super.regex-applicative-text;
692
693 # Tests require a Kafka broker running locally
694 haskakafka = dontCheck super.haskakafka;
695
696 bindings-levmar = addExtraLibrary pkgs.blas super.bindings-levmar;
697
698 # Requires wrapQtAppsHook
699 qtah-cpp-qt5 = overrideCabal (drv: {
700 buildDepends = [ pkgs.qt5.wrapQtAppsHook ];
701 }) super.qtah-cpp-qt5;
702
703 # The Haddock phase fails for one reason or another.
704 deepseq-magic = dontHaddock super.deepseq-magic;
705 feldspar-signal = dontHaddock super.feldspar-signal; # https://github.com/markus-git/feldspar-signal/issues/1
706 hoodle-core = dontHaddock super.hoodle-core;
707 hsc3-db = dontHaddock super.hsc3-db;
708
709 # Fix build with time >= 1.10 while retaining compat with time < 1.9
710 mbox = appendPatch ./patches/mbox-time-1.10.patch (
711 overrideCabal {
712 editedCabalFile = null;
713 revision = null;
714 } super.mbox
715 );
716
717 # https://github.com/techtangents/ablist/issues/1
718 ABList = dontCheck super.ABList;
719
720 inline-c-cpp = overrideCabal (drv: {
721 postPatch = (drv.postPatch or "") + ''
722 substituteInPlace inline-c-cpp.cabal --replace "-optc-std=c++11" ""
723 '';
724 }) super.inline-c-cpp;
725
726 inline-java = addBuildDepend pkgs.jdk super.inline-java;
727
728 # Too strict upper bound on unicode-transforms
729 # <https://gitlab.com/ngua/ipa-hs/-/issues/1>
730 ipa = doJailbreak super.ipa;
731
732 # Upstream notified by e-mail.
733 permutation = dontCheck super.permutation;
734
735 # https://github.com/jputcu/serialport/issues/25
736 serialport = dontCheck super.serialport;
737
738 # Test suite depends on source code being available
739 simple-affine-space = dontCheck super.simple-affine-space;
740
741 # Fails no apparent reason. Upstream has been notified by e-mail.
742 assertions = dontCheck super.assertions;
743
744 # These packages try to execute non-existent external programs.
745 cmaes = dontCheck super.cmaes; # http://hydra.cryp.to/build/498725/log/raw
746 dbmigrations = dontCheck super.dbmigrations;
747 filestore = dontCheck super.filestore;
748 graceful = dontCheck super.graceful;
749 ide-backend = dontCheck super.ide-backend;
750 marquise = dontCheck super.marquise; # https://github.com/anchor/marquise/issues/69
751 memcached-binary = dontCheck super.memcached-binary;
752 msgpack-rpc = dontCheck super.msgpack-rpc;
753 persistent-zookeeper = dontCheck super.persistent-zookeeper;
754 pocket-dns = dontCheck super.pocket-dns;
755 squeal-postgresql = dontCheck super.squeal-postgresql;
756 postgrest-ws = dontCheck super.postgrest-ws;
757 snowball = dontCheck super.snowball;
758 sophia = dontCheck super.sophia;
759 test-sandbox = dontCheck super.test-sandbox;
760 texrunner = dontCheck super.texrunner;
761 wai-middleware-hmac = dontCheck super.wai-middleware-hmac;
762 xkbcommon = dontCheck super.xkbcommon;
763 xmlgen = dontCheck super.xmlgen;
764 HerbiePlugin = dontCheck super.HerbiePlugin;
765 wai-cors = dontCheck super.wai-cors;
766
767 # Apply patch fixing an incorrect QuickCheck property which occasionally causes false negatives
768 # https://github.com/Philonous/xml-picklers/issues/5
769 xml-picklers = appendPatch (pkgs.fetchpatch {
770 name = "xml-picklers-fix-prop-xp-attribute.patch";
771 url = "https://github.com/Philonous/xml-picklers/commit/887e5416b5e61c589cadf775d82013eb87751ea2.patch";
772 sha256 = "sha256-EAyTVkAqCvJ0lRD0+q/htzBJ8iD5qP47j5i2fKhRrlw=";
773 }) super.xml-picklers;
774
775 # 2024-05-18: Upstream tests against a different pandoc version
776 pandoc-crossref = dontCheck super.pandoc-crossref;
777
778 # 2022-01-29: Tests require package to be in ghc-db.
779 aeson-schemas = dontCheck super.aeson-schemas;
780
781 matterhorn = doJailbreak super.matterhorn;
782
783 # Too strict bounds on transformers and resourcet
784 # https://github.com/alphaHeavy/lzma-conduit/issues/23
785 lzma-conduit = doJailbreak super.lzma-conduit;
786
787 # doctest suite needs adjustment with GHC 9.12
788 xml-conduit = appendPatch (pkgs.fetchpatch {
789 name = "xml-conduit-ghc-9.12.patch";
790 url = "https://github.com/snoyberg/xml/commit/73ce67029c61decaa6525536377a15581325fd9e.patch";
791 sha256 = "1gvdhwz7f6rw28xqm82h1kx2kwbdvigipfcb0y66520lvd544sm6";
792 stripLen = 1;
793 }) super.xml-conduit;
794
795 # 2020-06-05: HACK: does not pass own build suite - `dontCheck`
796 # 2024-01-15: too strict bound on free < 5.2
797 hnix = doJailbreak (
798 dontCheck (
799 super.hnix.override {
800 # 2023-12-11: Needs older core due to remote
801 hnix-store-core = self.hnix-store-core_0_6_1_0;
802 }
803 )
804 );
805
806 # Too strict bounds on algebraic-graphs
807 # https://github.com/haskell-nix/hnix-store/issues/180
808 hnix-store-core_0_6_1_0 = doJailbreak super.hnix-store-core_0_6_1_0;
809
810 # 2023-12-11: Needs older core
811 hnix-store-remote = super.hnix-store-remote.override {
812 hnix-store-core = self.hnix-store-core_0_6_1_0;
813 };
814
815 # Fails for non-obvious reasons while attempting to use doctest.
816 focuslist = dontCheck super.focuslist;
817 search = dontCheck super.search;
818
819 # https://github.com/ekmett/structures/issues/3
820 structures = dontCheck super.structures;
821
822 # Disable test suites to fix the build.
823 acme-year = dontCheck super.acme-year; # http://hydra.cryp.to/build/497858/log/raw
824 aeson-lens = dontCheck super.aeson-lens; # http://hydra.cryp.to/build/496769/log/raw
825 aeson-schema = dontCheck super.aeson-schema; # https://github.com/timjb/aeson-schema/issues/9
826 angel = dontCheck super.angel;
827 apache-md5 = dontCheck super.apache-md5; # http://hydra.cryp.to/build/498709/nixlog/1/raw
828 app-settings = dontCheck super.app-settings; # http://hydra.cryp.to/build/497327/log/raw
829 aws-kinesis = dontCheck super.aws-kinesis; # needs aws credentials for testing
830 binary-protocol = dontCheck super.binary-protocol; # http://hydra.cryp.to/build/499749/log/raw
831 binary-search = dontCheck super.binary-search;
832 bloodhound = dontCheck super.bloodhound; # https://github.com/plow-technologies/quickcheck-arbitrary-template/issues/10
833 buildwrapper = dontCheck super.buildwrapper;
834 burst-detection = dontCheck super.burst-detection; # http://hydra.cryp.to/build/496948/log/raw
835 cabal-meta = dontCheck super.cabal-meta; # http://hydra.cryp.to/build/497892/log/raw
836 camfort = dontCheck super.camfort;
837 cjk = dontCheck super.cjk;
838 CLI = dontCheck super.CLI; # Upstream has no issue tracker.
839 command-qq = dontCheck super.command-qq; # http://hydra.cryp.to/build/499042/log/raw
840 conduit-connection = dontCheck super.conduit-connection;
841 craftwerk = dontCheck super.craftwerk;
842 crc = dontCheck super.crc; # https://github.com/MichaelXavier/crc/issues/2
843 damnpacket = dontCheck super.damnpacket; # http://hydra.cryp.to/build/496923/log
844 Deadpan-DDP = dontCheck super.Deadpan-DDP; # http://hydra.cryp.to/build/496418/log/raw
845 DigitalOcean = dontCheck super.DigitalOcean;
846 directory-layout = dontCheck super.directory-layout;
847 dom-selector = dontCheck super.dom-selector; # http://hydra.cryp.to/build/497670/log/raw
848 dotenv = dontCheck super.dotenv; # Tests fail because of missing test file on version 0.8.0.2 fixed on version 0.8.0.4
849 dotfs = dontCheck super.dotfs; # http://hydra.cryp.to/build/498599/log/raw
850 DRBG = dontCheck super.DRBG; # http://hydra.cryp.to/build/498245/nixlog/1/raw
851 ed25519 = dontCheck super.ed25519;
852 etcd = dontCheck super.etcd;
853 fb = dontCheck super.fb; # needs credentials for Facebook
854 fptest = dontCheck super.fptest; # http://hydra.cryp.to/build/499124/log/raw
855 friday-juicypixels = dontCheck super.friday-juicypixels; # tarball missing test/rgba8.png
856 ghc-events-parallel = dontCheck super.ghc-events-parallel; # http://hydra.cryp.to/build/496828/log/raw
857 ghc-imported-from = dontCheck super.ghc-imported-from;
858 ghc-parmake = dontCheck super.ghc-parmake;
859 git-vogue = dontCheck super.git-vogue;
860 github-rest = dontCheck super.github-rest; # test suite needs the network
861 gitlib-cmdline = dontCheck super.gitlib-cmdline;
862 GLFW-b = dontCheck super.GLFW-b; # https://github.com/bsl/GLFW-b/issues/50
863 hackport = dontCheck super.hackport;
864 hadoop-formats = dontCheck super.hadoop-formats;
865 hashed-storage = dontCheck super.hashed-storage;
866 hashring = dontCheck super.hashring;
867 haxl = dontCheck super.haxl; # non-deterministic failure https://github.com/facebook/Haxl/issues/85
868 haxl-facebook = dontCheck super.haxl-facebook; # needs facebook credentials for testing
869 hdbi-postgresql = dontCheck super.hdbi-postgresql;
870 hedis = dontCheck super.hedis;
871 hedis-pile = dontCheck super.hedis-pile;
872 hedis-tags = dontCheck super.hedis-tags;
873 hgdbmi = dontCheck super.hgdbmi;
874 hi = dontCheck super.hi;
875 hierarchical-clustering = dontCheck super.hierarchical-clustering;
876 hlibgit2 = disableHardening [ "format" ] super.hlibgit2;
877 hmatrix-tests = dontCheck super.hmatrix-tests;
878 hquery = dontCheck super.hquery;
879 hs2048 = dontCheck super.hs2048;
880 hsbencher = dontCheck super.hsbencher;
881 # 2025-02-11: Too strict bounds on bytestring
882 hsexif = doJailbreak (dontCheck super.hsexif);
883 hspec-server = dontCheck super.hspec-server;
884 HTF = overrideCabal (orig: {
885 # The scripts in scripts/ are needed to build the test suite.
886 preBuild = "patchShebangs --build scripts";
887 # test suite doesn't compile with aeson >= 2.0
888 # https://github.com/skogsbaer/HTF/issues/114
889 doCheck = false;
890 }) super.HTF;
891 htsn = dontCheck super.htsn;
892 htsn-import = dontCheck super.htsn-import;
893 http-link-header = dontCheck super.http-link-header; # non deterministic failure https://hydra.nixos.org/build/75041105
894 influxdb = dontCheck super.influxdb;
895 integer-roots = dontCheck super.integer-roots; # requires an old version of smallcheck, will be fixed in > 1.0
896 itanium-abi = dontCheck super.itanium-abi;
897 katt = dontCheck super.katt;
898 language-slice = dontCheck super.language-slice;
899
900 # Bogus lower bound on data-default-class added via Hackage revision
901 # https://github.com/mrkkrp/req/pull/180#issuecomment-2628201485
902 req = overrideCabal {
903 revision = null;
904 editedCabalFile = null;
905 } super.req;
906
907 # Group of libraries by same upstream maintainer for interacting with
908 # Telegram messenger. Bit-rotted a bit since 2020.
909 tdlib = appendPatch (fetchpatch {
910 # https://github.com/poscat0x04/tdlib/pull/3
911 url = "https://github.com/poscat0x04/tdlib/commit/8eb9ecbc98c65a715469fdb8b67793ab375eda31.patch";
912 hash = "sha256-vEI7fTsiafNGBBl4VUXVCClW6xKLi+iK53fjcubgkpc=";
913 }) (doJailbreak super.tdlib);
914 tdlib-types = doJailbreak super.tdlib-types;
915 tdlib-gen = doJailbreak super.tdlib-gen;
916 # https://github.com/poscat0x04/language-tl/pull/1
917 language-tl = doJailbreak super.language-tl;
918
919 ldap-client = dontCheck super.ldap-client;
920 lensref = dontCheck super.lensref;
921 lvmrun = disableHardening [ "format" ] (dontCheck super.lvmrun);
922 matplotlib = dontCheck super.matplotlib;
923 milena = dontCheck super.milena;
924 modular-arithmetic = dontCheck super.modular-arithmetic; # tests require a very old Glob (0.7.*)
925 nats-queue = dontCheck super.nats-queue;
926 network-dbus = dontCheck super.network-dbus;
927 notcpp = dontCheck super.notcpp;
928 ntp-control = dontCheck super.ntp-control;
929 odpic-raw = dontCheck super.odpic-raw; # needs a running oracle database server
930 opaleye = dontCheck super.opaleye;
931 openpgp = dontCheck super.openpgp;
932 optional = dontCheck super.optional;
933 orgmode-parse = dontCheck super.orgmode-parse;
934 os-release = dontCheck super.os-release;
935 parameterized = dontCheck super.parameterized; # https://github.com/louispan/parameterized/issues/2
936 persistent-redis = dontCheck super.persistent-redis;
937 pipes-extra = dontCheck super.pipes-extra;
938 posix-pty = dontCheck super.posix-pty; # https://github.com/merijn/posix-pty/issues/12
939 postgresql-binary = dontCheck super.postgresql-binary; # needs a running postgresql server
940 powerdns = dontCheck super.powerdns; # Tests require networking and external services
941 process-streaming = dontCheck super.process-streaming;
942 punycode = dontCheck super.punycode;
943 pwstore-cli = dontCheck super.pwstore-cli;
944 quantities = dontCheck super.quantities;
945 redis-io = dontCheck super.redis-io;
946 rethinkdb = dontCheck super.rethinkdb;
947 Rlang-QQ = dontCheck super.Rlang-QQ;
948 sai-shape-syb = dontCheck super.sai-shape-syb;
949 scp-streams = dontCheck super.scp-streams;
950 sdl2 = dontCheck super.sdl2; # the test suite needs an x server
951 separated = dontCheck super.separated;
952 shadowsocks = dontCheck super.shadowsocks;
953 shake-language-c = dontCheck super.shake-language-c;
954 sourcemap = dontCheck super.sourcemap;
955 static-resources = dontCheck super.static-resources;
956 svndump = dontCheck super.svndump;
957 tar = dontCheck super.tar; # https://hydra.nixos.org/build/25088435/nixlog/2 (fails only on 32-bit)
958 thumbnail-plus = dontCheck super.thumbnail-plus;
959 tickle = dontCheck super.tickle;
960 tpdb = dontCheck super.tpdb;
961 translatable-intset = dontCheck super.translatable-intset;
962 ua-parser = dontCheck super.ua-parser;
963 unagi-chan = dontCheck super.unagi-chan;
964 WebBits = dontCheck super.WebBits; # http://hydra.cryp.to/build/499604/log/raw
965 webdriver-angular = dontCheck super.webdriver-angular;
966 xsd = dontCheck super.xsd;
967
968 # Allow template-haskell 2.22
969 # https://github.com/well-typed/ixset-typed/pull/23
970 ixset-typed =
971 appendPatches
972 [
973 (fetchpatch {
974 name = "ixset-typed-template-haskell-2.21.patch";
975 url = "https://github.com/well-typed/ixset-typed/commit/085cccbaa845bff4255028ed5ff71402e98a953a.patch";
976 sha256 = "1cz30dmby3ff3zcnyz7d2xsqls7zxmzig7bgzy2gfa24s3sa32jg";
977 })
978 (fetchpatch {
979 name = "ixset-typed-template-haskell-2.22.patch";
980 url = "https://github.com/well-typed/ixset-typed/commit/0d699386eab5c4f6aa53e4de41defb460acbbd99.patch";
981 sha256 = "04lbfvaww05czhnld674c9hm952f94xpicf08hby8xpksfj7rs41";
982 })
983 ]
984 (
985 overrideCabal {
986 editedCabalFile = null;
987 revision = null;
988 } super.ixset-typed
989 );
990
991 # https://github.com/eli-frey/cmdtheline/issues/28
992 cmdtheline = dontCheck super.cmdtheline;
993
994 # https://github.com/bos/snappy/issues/1
995 # https://github.com/bos/snappy/pull/10
996 snappy = dontCheck super.snappy;
997
998 # https://github.com/vincenthz/hs-crypto-pubkey/issues/20
999 crypto-pubkey = dontCheck super.crypto-pubkey;
1000
1001 # https://github.com/joeyadams/haskell-stm-delay/issues/3
1002 stm-delay = dontCheck super.stm-delay;
1003
1004 # Skip test that checks a race condition between stm and stm-queue
1005 stm-queue = overrideCabal (drv: {
1006 testFlags = drv.testFlags or [ ] ++ [
1007 "--skip"
1008 "/Data.Queue/behaves faster than TQueue in its worst case/"
1009 ];
1010 }) super.stm-queue;
1011
1012 # https://github.com/pixbi/duplo/issues/25
1013 duplo = doJailbreak super.duplo;
1014
1015 # https://github.com/evanrinehart/mikmod/issues/1
1016 mikmod = addExtraLibrary pkgs.libmikmod super.mikmod;
1017
1018 # Missing module.
1019 rematch = dontCheck super.rematch; # https://github.com/tcrayford/rematch/issues/5
1020 rematch-text = dontCheck super.rematch-text; # https://github.com/tcrayford/rematch/issues/6
1021
1022 # Package exists only to be example of documentation, yet it has restrictive
1023 # "base" dependency.
1024 haddock-cheatsheet = doJailbreak super.haddock-cheatsheet;
1025
1026 # no haddock since this is an umbrella package.
1027 cloud-haskell = dontHaddock super.cloud-haskell;
1028
1029 # This packages compiles 4+ hours on a fast machine. That's just unreasonable.
1030 CHXHtml = dontDistribute super.CHXHtml;
1031
1032 # https://github.com/NixOS/nixpkgs/issues/6350
1033 paypal-adaptive-hoops = overrideCabal (drv: {
1034 testTargets = [ "local" ];
1035 }) super.paypal-adaptive-hoops;
1036
1037 # Avoid "QuickCheck >=2.3 && <2.10" dependency we cannot fulfill in lts-11.x.
1038 test-framework = dontCheck super.test-framework;
1039
1040 # Depends on broken test-framework-quickcheck.
1041 apiary = dontCheck super.apiary;
1042 apiary-authenticate = dontCheck super.apiary-authenticate;
1043 apiary-clientsession = dontCheck super.apiary-clientsession;
1044 apiary-cookie = dontCheck super.apiary-cookie;
1045 apiary-eventsource = dontCheck super.apiary-eventsource;
1046 apiary-logger = dontCheck super.apiary-logger;
1047 apiary-memcached = dontCheck super.apiary-memcached;
1048 apiary-mongoDB = dontCheck super.apiary-mongoDB;
1049 apiary-persistent = dontCheck super.apiary-persistent;
1050 apiary-purescript = dontCheck super.apiary-purescript;
1051 apiary-session = dontCheck super.apiary-session;
1052 apiary-websockets = dontCheck super.apiary-websockets;
1053
1054 # https://github.com/junjihashimoto/test-sandbox-compose/issues/2
1055 test-sandbox-compose = dontCheck super.test-sandbox-compose;
1056
1057 # Test suite won't compile against tasty-hunit 0.10.x.
1058 binary-parsers = dontCheck super.binary-parsers;
1059
1060 # https://github.com/ndmitchell/shake/issues/804
1061 shake = dontCheck super.shake;
1062
1063 # https://github.com/nushio3/doctest-prop/issues/1
1064 doctest-prop = dontCheck super.doctest-prop;
1065
1066 # Missing file in source distribution:
1067 # - https://github.com/karun012/doctest-discover/issues/22
1068 # - https://github.com/karun012/doctest-discover/issues/23
1069 #
1070 # When these are fixed the following needs to be enabled again:
1071 #
1072 # # Depends on itself for testing
1073 # doctest-discover = addBuildTool super.doctest-discover
1074 # (if pkgs.stdenv.buildPlatform != pkgs.stdenv.hostPlatform
1075 # then self.buildHaskellPackages.doctest-discover
1076 # else dontCheck super.doctest-discover);
1077 doctest-discover = dontCheck super.doctest-discover;
1078
1079 # 2025-02-10: Too strict bounds on doctest < 0.22
1080 tasty-checklist = doJailbreak super.tasty-checklist;
1081
1082 # 2025-02-10: Too strict bounds on hedgehog < 1.5
1083 tasty-sugar = doJailbreak super.tasty-sugar;
1084
1085 # Known issue with nondeterministic test suite failure
1086 # https://github.com/nomeata/tasty-expected-failure/issues/21
1087 tasty-expected-failure = dontCheck super.tasty-expected-failure;
1088
1089 # https://github.com/yaccz/saturnin/issues/3
1090 Saturnin = dontCheck super.Saturnin;
1091
1092 # https://github.com/kkardzis/curlhs/issues/6
1093 curlhs = dontCheck super.curlhs;
1094
1095 # curl 7.87.0 introduces a preprocessor typechecker of sorts which fails on
1096 # incorrect usages of curl_easy_getopt and similar functions. Presumably
1097 # because the wrappers in curlc.c don't use static values for the different
1098 # arguments to curl_easy_getinfo, it complains and needs to be disabled.
1099 # https://github.com/GaloisInc/curl/issues/28
1100 curl = appendConfigureFlags [
1101 "--ghc-option=-DCURL_DISABLE_TYPECHECK"
1102 ] super.curl;
1103
1104 # https://github.com/alphaHeavy/lzma-enumerator/issues/3
1105 lzma-enumerator = dontCheck super.lzma-enumerator;
1106
1107 # FPCO's fork of Cabal won't succeed its test suite.
1108 Cabal-ide-backend = dontCheck super.Cabal-ide-backend;
1109
1110 # This package can't be built on non-Windows systems.
1111 Win32 = overrideCabal (drv: { broken = !pkgs.stdenv.hostPlatform.isCygwin; }) super.Win32;
1112 inline-c-win32 = dontDistribute super.inline-c-win32;
1113 Southpaw = dontDistribute super.Southpaw;
1114
1115 # https://ghc.haskell.org/trac/ghc/ticket/9825
1116 vimus = overrideCabal (drv: {
1117 broken = pkgs.stdenv.hostPlatform.isLinux && pkgs.stdenv.hostPlatform.isi686;
1118 }) super.vimus;
1119
1120 # https://github.com/kazu-yamamoto/logger/issues/42
1121 logger = dontCheck super.logger;
1122
1123 # Byte-compile elisp code for Emacs.
1124 ghc-mod = overrideCabal (drv: {
1125 preCheck = "export HOME=$TMPDIR";
1126 testToolDepends = drv.testToolDepends or [ ] ++ [ self.cabal-install ];
1127 doCheck = false; # https://github.com/kazu-yamamoto/ghc-mod/issues/335
1128 executableToolDepends = drv.executableToolDepends or [ ] ++ [ pkgs.buildPackages.emacs ];
1129 postInstall = ''
1130 local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/*/${drv.pname}-${drv.version}/elisp" )
1131 make -C $lispdir
1132 mkdir -p $data/share/emacs/site-lisp
1133 ln -s "$lispdir/"*.el{,c} $data/share/emacs/site-lisp/
1134 '';
1135 }) super.ghc-mod;
1136
1137 # 2022-03-19: Testsuite is failing: https://github.com/puffnfresh/haskell-jwt/issues/2
1138 jwt = dontCheck super.jwt;
1139
1140 # Build Selda with the latest git version.
1141 # See https://github.com/valderman/selda/issues/187
1142 inherit
1143 (
1144 let
1145 mkSeldaPackage =
1146 name:
1147 overrideCabal (drv: {
1148 version = "2024-05-05-unstable";
1149 src =
1150 pkgs.fetchFromGitHub {
1151 owner = "valderman";
1152 repo = "selda";
1153 rev = "50c3ba5c5da72bb758a4112363ba2fe1c0e968ea";
1154 hash = "sha256-LEAJsSsDL0mmVHntnI16fH8m5DmePfcU0hFw9ErqTgQ=";
1155 }
1156 + "/${name}";
1157 # 2025-04-09: jailbreak to allow bytestring >= 0.12, text >= 2.1
1158 # Note: jailbreak ignores constraints under an if(flag)
1159 postPatch = ''
1160 check_sed() {
1161 if ! test -s "$1"; then
1162 echo "sed: pattern '$2' doesn't match anything" >&2
1163 exit 1
1164 fi
1165 }
1166 sed -i ${name}.cabal \
1167 -e 's/\(bytestring\) .*/\1/w c1' \
1168 -e 's/\(text\) .*/\1/w c2' \
1169 -e 's/\(aeson\) .*/\1/w c3'
1170 check_sed c1 'bytestring .*'
1171 check_sed c2 'text .*'
1172 ${lib.optionalString (name == "selda-json") "check_sed c3 'aeson .*'"}
1173 '';
1174 }) super.${name};
1175 in
1176 lib.genAttrs [ "selda" "selda-sqlite" "selda-json" ] mkSeldaPackage
1177 )
1178 selda
1179 selda-sqlite
1180 selda-json
1181 ;
1182
1183 # 2024-03-10: Getting the test suite to run requires a correctly crafted GHC_ENVIRONMENT variable.
1184 graphql-client = dontCheck super.graphql-client;
1185
1186 # Build the latest git version instead of the official release. This isn't
1187 # ideal, but Chris doesn't seem to make official releases any more.
1188 structured-haskell-mode = overrideCabal (drv: {
1189 src = pkgs.fetchFromGitHub {
1190 owner = "projectional-haskell";
1191 repo = "structured-haskell-mode";
1192 rev = "7f9df73f45d107017c18ce4835bbc190dfe6782e";
1193 sha256 = "1jcc30048j369jgsbbmkb63whs4wb37bq21jrm3r6ry22izndsqa";
1194 };
1195 version = "20170205-git";
1196 editedCabalFile = null;
1197 # Make elisp files available at a location where people expect it. We
1198 # cannot easily byte-compile these files, unfortunately, because they
1199 # depend on a new version of haskell-mode that we don't have yet.
1200 postInstall = ''
1201 local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" )
1202 mkdir -p $data/share/emacs
1203 ln -s $lispdir $data/share/emacs/site-lisp
1204 '';
1205 }) super.structured-haskell-mode;
1206
1207 # Make elisp files available at a location where people expect it.
1208 hindent = (
1209 overrideCabal (drv: {
1210 # We cannot easily byte-compile these files, unfortunately, because they
1211 # depend on a new version of haskell-mode that we don't have yet.
1212 postInstall = ''
1213 local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" )
1214 mkdir -p $data/share/emacs
1215 ln -s $lispdir $data/share/emacs/site-lisp
1216 '';
1217 }) super.hindent
1218 );
1219
1220 # https://github.com/basvandijk/concurrent-extra/issues/12
1221 concurrent-extra = dontCheck super.concurrent-extra;
1222
1223 # https://github.com/pxqr/base32-bytestring/issues/4
1224 base32-bytestring = dontCheck super.base32-bytestring;
1225
1226 # Too strict bounds on bytestring (<0.12) on the test suite
1227 # https://github.com/emilypi/Base32/issues/24
1228 base32 = doJailbreak super.base32;
1229
1230 # Djinn's last release was 2014, incompatible with Semigroup-Monoid Proposal
1231 # https://github.com/augustss/djinn/pull/8
1232 djinn = overrideSrc {
1233 version = "unstable-2023-11-20";
1234 src = pkgs.fetchFromGitHub {
1235 owner = "augustss";
1236 repo = "djinn";
1237 rev = "69b3fbad9f42f0b1b2c49977976b8588c967d76e";
1238 hash = "sha256-ibxn6DXk4pqsOsWhi8KcrlH/THnuMWvIu5ENOn3H3So=";
1239 };
1240 } super.djinn;
1241
1242 # https://github.com/Philonous/hs-stun/pull/1
1243 # Remove if a version > 0.1.0.1 ever gets released.
1244 stunclient = overrideCabal (drv: {
1245 postPatch = (drv.postPatch or "") + ''
1246 substituteInPlace source/Network/Stun/MappedAddress.hs --replace "import Network.Endian" ""
1247 '';
1248 }) super.stunclient;
1249
1250 d-bus =
1251 let
1252 # The latest release on hackage is missing necessary patches for recent compilers
1253 # https://github.com/Philonous/d-bus/issues/24
1254 newer = overrideSrc {
1255 version = "unstable-2021-01-08";
1256 src = pkgs.fetchFromGitHub {
1257 owner = "Philonous";
1258 repo = "d-bus";
1259 rev = "fb8a948a3b9d51db618454328dbe18fb1f313c70";
1260 hash = "sha256-R7/+okb6t9DAkPVUV70QdYJW8vRcvBdz4zKJT13jb3A=";
1261 };
1262 } super.d-bus;
1263 # Add now required extension on recent compilers.
1264 # https://github.com/Philonous/d-bus/pull/23
1265 in
1266 appendPatch (fetchpatch {
1267 url = "https://github.com/Philonous/d-bus/commit/e5f37900a3a301c41d98bdaa134754894c705681.patch";
1268 sha256 = "6rQ7H9t483sJe1x95yLPAZ0BKTaRjgqQvvrQv7HkJRE=";
1269 }) newer;
1270
1271 # * The standard libraries are compiled separately.
1272 # * We need a few patches from master to fix compilation with
1273 # updated dependencies which can be
1274 # removed when the next idris release comes around.
1275 idris = lib.pipe super.idris [
1276 dontCheck
1277 doJailbreak
1278 (appendPatch (fetchpatch {
1279 name = "idris-bumps.patch";
1280 url = "https://github.com/idris-lang/Idris-dev/compare/c99bc9e4af4ea32d2172f873152b76122ee4ee14...cf78f0fb337d50f4f0dba235b6bbe67030f1ff47.patch";
1281 hash = "sha256-RCMIRHIAK1PCm4B7v+5gXNd2buHXIqyAxei4bU8+eCk=";
1282 }))
1283 (self.generateOptparseApplicativeCompletions [ "idris" ])
1284 ];
1285
1286 # https://hydra.nixos.org/build/42769611/nixlog/1/raw
1287 # note: the library is unmaintained, no upstream issue
1288 dataenc = doJailbreak super.dataenc;
1289
1290 # Test suite occasionally runs for 1+ days on Hydra.
1291 distributed-process-tests = dontCheck super.distributed-process-tests;
1292
1293 # https://github.com/mulby/diff-parse/issues/9
1294 diff-parse = doJailbreak super.diff-parse;
1295
1296 # No upstream issue tracker
1297 hspec-expectations-pretty-diff = dontCheck super.hspec-expectations-pretty-diff;
1298
1299 # The tests spuriously fail
1300 libmpd = dontCheck super.libmpd;
1301
1302 # https://github.com/xu-hao/namespace/issues/1
1303 namespace = doJailbreak super.namespace;
1304
1305 # https://github.com/danidiaz/streaming-eversion/issues/1
1306 streaming-eversion = dontCheck super.streaming-eversion;
1307
1308 # https://github.com/danidiaz/tailfile-hinotify/issues/2
1309 tailfile-hinotify = doJailbreak (dontCheck super.tailfile-hinotify);
1310
1311 # Test suite fails: https://github.com/lymar/hastache/issues/46.
1312 # Don't install internal mkReadme tool.
1313 hastache = overrideCabal (drv: {
1314 doCheck = false;
1315 postInstall = "rm $out/bin/mkReadme && rmdir $out/bin";
1316 }) super.hastache;
1317
1318 # 2025-02-10: Too strict bounds on text < 2.1
1319 digestive-functors-blaze = doJailbreak super.digestive-functors-blaze;
1320
1321 # Wrap the generated binaries to include their run-time dependencies in
1322 # $PATH. Also, cryptol needs a version of sbl that's newer than what we have
1323 # in LTS-13.x.
1324 cryptol = overrideCabal (drv: {
1325 buildTools = drv.buildTools or [ ] ++ [ pkgs.buildPackages.makeWrapper ];
1326 postInstall = drv.postInstall or "" + ''
1327 for b in $out/bin/cryptol $out/bin/cryptol-html; do
1328 wrapProgram $b --prefix 'PATH' ':' "${lib.getBin pkgs.z3}/bin"
1329 done
1330 '';
1331 }) super.cryptol;
1332
1333 # Z3 removed aliases for boolean types in 4.12
1334 inherit
1335 (
1336 let
1337 fixZ3 = appendConfigureFlags [
1338 "--hsc2hs-option=-DZ3_Bool=bool"
1339 "--hsc2hs-option=-DZ3_TRUE=true"
1340 "--hsc2hs-option=-DZ3_FALSE=false"
1341 ];
1342 in
1343 {
1344 z3 = fixZ3 super.z3;
1345 hz3 = fixZ3 super.hz3;
1346 }
1347 )
1348 z3
1349 hz3
1350 ;
1351
1352 # test suite requires git and does a bunch of git operations
1353 restless-git = dontCheck super.restless-git;
1354
1355 # Work around https://github.com/haskell/c2hs/issues/192.
1356 c2hs = dontCheck super.c2hs;
1357
1358 # Needs pginit to function and pgrep to verify.
1359 tmp-postgres = overrideCabal (drv: {
1360 # Flaky tests: https://github.com/jfischoff/tmp-postgres/issues/274
1361 doCheck = false;
1362
1363 preCheck = ''
1364 export HOME="$TMPDIR"
1365 ''
1366 + (drv.preCheck or "");
1367 libraryToolDepends = drv.libraryToolDepends or [ ] ++ [ pkgs.buildPackages.postgresql ];
1368 testToolDepends = drv.testToolDepends or [ ] ++ [ pkgs.procps ];
1369 }) super.tmp-postgres;
1370
1371 # Needs QuickCheck <2.10, which we don't have.
1372 edit-distance = doJailbreak super.edit-distance;
1373
1374 # With ghc-8.2.x haddock would time out for unknown reason
1375 # See https://github.com/haskell/haddock/issues/679
1376 language-puppet = dontHaddock super.language-puppet;
1377
1378 # https://github.com/alphaHeavy/protobuf/issues/34
1379 protobuf = dontCheck super.protobuf;
1380
1381 # The test suite does not know how to find the 'alex' binary.
1382 alex = overrideCabal (drv: {
1383 testSystemDepends = (drv.testSystemDepends or [ ]) ++ [ pkgs.which ];
1384 preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"'';
1385 }) super.alex;
1386
1387 # Compiles some C or C++ source which requires these headers
1388 VulkanMemoryAllocator = addExtraLibrary pkgs.vulkan-headers super.VulkanMemoryAllocator;
1389 vulkan-utils = addExtraLibrary pkgs.vulkan-headers super.vulkan-utils;
1390
1391 # Generate cli completions for dhall.
1392 dhall = self.generateOptparseApplicativeCompletions [ "dhall" ] super.dhall;
1393 # 2025-01-27: allow aeson >= 2.2, 9.8 versions of text and bytestring
1394 dhall-json = self.generateOptparseApplicativeCompletions [ "dhall-to-json" "dhall-to-yaml" ] (
1395 doJailbreak super.dhall-json
1396 );
1397 dhall-nix = self.generateOptparseApplicativeCompletions [ "dhall-to-nix" ] super.dhall-nix;
1398 # 2025-02-10: jailbreak due to aeson < 2.2, hnix < 0.17, transformers < 0.6, turtle < 1.6
1399 dhall-nixpkgs = self.generateOptparseApplicativeCompletions [ "dhall-to-nixpkgs" ] (
1400 doJailbreak super.dhall-nixpkgs
1401 );
1402 dhall-yaml = self.generateOptparseApplicativeCompletions [ "dhall-to-yaml-ng" "yaml-to-dhall" ] (
1403 doJailbreak super.dhall-yaml
1404 ); # bytestring <0.12, text<2.1
1405 # 2025-02-14: see also https://github.com/dhall-lang/dhall-haskell/issues/2638
1406 dhall-bash = doJailbreak super.dhall-bash; # bytestring <0.12, text <2.1
1407
1408 # musl fixes
1409 # dontCheck: use of non-standard strptime "%s" which musl doesn't support; only used in test
1410 unix-time = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.unix-time else super.unix-time;
1411
1412 # Workaround for https://github.com/sol/hpack/issues/528
1413 # The hpack test suite can't deal with the CRLF line endings hackage revisions insert
1414 hpack = overrideCabal (drv: {
1415 postPatch = drv.postPatch or "" + ''
1416 "${lib.getBin pkgs.buildPackages.dos2unix}/bin/dos2unix" *.cabal
1417 '';
1418 }) super.hpack;
1419
1420 # hslua has tests that break when using musl.
1421 # https://github.com/hslua/hslua/issues/106
1422 hslua-core =
1423 if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.hslua-core else super.hslua-core;
1424
1425 # The test suite runs for 20+ minutes on a very fast machine, which feels kinda disproportionate.
1426 prettyprinter = dontCheck super.prettyprinter;
1427
1428 # Fix with Cabal 2.2, https://github.com/guillaume-nargeot/hpc-coveralls/pull/73
1429 hpc-coveralls = appendPatch (fetchpatch {
1430 url = "https://github.com/guillaume-nargeot/hpc-coveralls/pull/73/commits/344217f513b7adfb9037f73026f5d928be98d07f.patch";
1431 sha256 = "056rk58v9h114mjx62f41x971xn9p3nhsazcf9zrcyxh1ymrdm8j";
1432 }) super.hpc-coveralls;
1433
1434 # sexpr is old, broken and has no issue-tracker. Let's fix it the best we can.
1435 sexpr = appendPatch ./patches/sexpr-0.2.1.patch (
1436 overrideCabal (drv: {
1437 isExecutable = false;
1438 libraryHaskellDepends = drv.libraryHaskellDepends ++ [ self.QuickCheck ];
1439 }) super.sexpr
1440 );
1441
1442 # https://github.com/haskell/hoopl/issues/50
1443 hoopl = dontCheck super.hoopl;
1444
1445 # TODO(Profpatsch): factor out local nix store setup from
1446 # lib/tests/release.nix and use that for the tests of libnix
1447 # libnix = overrideCabal (old: {
1448 # testToolDepends = old.testToolDepends or [] ++ [ pkgs.nix ];
1449 # }) super.libnix;
1450 libnix = dontCheck super.libnix;
1451
1452 # dontCheck: The test suite tries to mess with ALSA, which doesn't work in the build sandbox.
1453 xmobar = dontCheck super.xmobar;
1454
1455 # 2025-02-10: Too strict bounds on aeson < 1.5
1456 json-alt = doJailbreak super.json-alt;
1457
1458 # https://github.com/mgajda/json-autotype/issues/25
1459 json-autotype = dontCheck super.json-autotype;
1460
1461 postgresql-simple-migration = overrideCabal (drv: {
1462 preCheck = ''
1463 PGUSER=test
1464 PGDATABASE=test
1465 '';
1466 testToolDepends = drv.testToolDepends or [ ] ++ [
1467 pkgs.postgresql
1468 pkgs.postgresqlTestHook
1469 ];
1470 }) (doJailbreak super.postgresql-simple-migration);
1471
1472 postgresql-simple = addTestToolDepends [
1473 pkgs.postgresql
1474 pkgs.postgresqlTestHook
1475 ] super.postgresql-simple;
1476
1477 beam-postgres = lib.pipe super.beam-postgres [
1478 # Requires pg_ctl command during tests
1479 (addTestToolDepends [ pkgs.postgresql ])
1480 (dontCheckIf (!pkgs.postgresql.doInstallCheck || !self.testcontainers.doCheck))
1481 ];
1482
1483 users-postgresql-simple = addTestToolDepends [
1484 pkgs.postgresql
1485 pkgs.postgresqlTestHook
1486 ] super.users-postgresql-simple;
1487
1488 gargoyle-postgresql-nix = addBuildTool [ pkgs.postgresql ] super.gargoyle-postgresql-nix;
1489
1490 # PortMidi needs an environment variable to have ALSA find its plugins:
1491 # https://github.com/NixOS/nixpkgs/issues/6860
1492 PortMidi = overrideCabal (drv: {
1493 patches = (drv.patches or [ ]) ++ [ ./patches/portmidi-alsa-plugins.patch ];
1494 postPatch = (drv.postPatch or "") + ''
1495 substituteInPlace portmidi/pm_linux/pmlinuxalsa.c \
1496 --replace @alsa_plugin_dir@ "${pkgs.alsa-plugins}/lib/alsa-lib"
1497 '';
1498 }) super.PortMidi;
1499
1500 scat = overrideCabal (drv: {
1501 patches = [
1502 # Fix build with base >= 4.11 (https://github.com/redelmann/scat/pull/6)
1503 (fetchpatch {
1504 url = "https://github.com/redelmann/scat/commit/429f22944b7634b8789cb3805292bcc2b23e3e9f.diff";
1505 hash = "sha256-FLr1KfBaSYzI6MiZIBY1CkgAb5sThvvgjrSAN8EV0h4=";
1506 })
1507 # Fix build with vector >= 0.13, mtl >= 2.3 (https://github.com/redelmann/scat/pull/8)
1508 (fetchpatch {
1509 url = "https://github.com/redelmann/scat/compare/e8e064f7e6a152fe25a6ccd743573a16974239d0..c6a3636548d628f32d8edc73a333188ce24141a7.patch";
1510 hash = "sha256-BU4MUn/TnZHpZBlX1vDHE7QZva5yhlLTb8zwpx7UScI";
1511 })
1512 ];
1513 }) super.scat;
1514
1515 # Fix build with attr-2.4.48 (see #53716)
1516 xattr = appendPatch ./patches/xattr-fix-build.patch super.xattr;
1517
1518 esqueleto =
1519 overrideCabal
1520 (drv: {
1521 postPatch = drv.postPatch or "" + ''
1522 # patch out TCP usage: https://nixos.org/manual/nixpkgs/stable/#sec-postgresqlTestHook-tcp
1523 sed -i test/PostgreSQL/Test.hs \
1524 -e s^host=localhost^^
1525 '';
1526 # Match the test suite defaults (or hardcoded values?)
1527 preCheck = drv.preCheck or "" + ''
1528 PGUSER=esqutest
1529 PGDATABASE=esqutest
1530 '';
1531 testFlags = drv.testFlags or [ ] ++ [
1532 # We don't have a MySQL test hook yet
1533 "--skip=/Esqueleto/MySQL"
1534 ];
1535 testToolDepends = drv.testToolDepends or [ ] ++ [
1536 pkgs.postgresql
1537 pkgs.postgresqlTestHook
1538 ];
1539 })
1540 # https://github.com/NixOS/nixpkgs/issues/198495
1541 (dontCheckIf (pkgs.postgresqlTestHook.meta.broken) super.esqueleto);
1542
1543 # Requires API keys to run tests
1544 algolia = dontCheck super.algolia;
1545 openai-hs = dontCheck super.openai-hs;
1546
1547 # antiope-s3's latest stackage version has a hspec < 2.6 requirement, but
1548 # hspec which isn't in stackage is already past that
1549 antiope-s3 = doJailbreak super.antiope-s3;
1550
1551 # Has tasty < 1.2 requirement, but works just fine with 1.2
1552 temporary-resourcet = doJailbreak super.temporary-resourcet;
1553
1554 # Test suite doesn't work with current QuickCheck
1555 # https://github.com/pruvisto/heap/issues/11
1556 heap = dontCheck super.heap;
1557
1558 # Test suite won't link for no apparent reason.
1559 constraints-deriving = dontCheck super.constraints-deriving;
1560
1561 # https://github.com/erikd/hjsmin/issues/32
1562 hjsmin = dontCheck super.hjsmin;
1563
1564 # Remove for hail > 0.2.0.0
1565 hail = doJailbreak super.hail;
1566
1567 # https://github.com/kazu-yamamoto/dns/issues/150
1568 dns = dontCheck super.dns;
1569
1570 # https://github.com/haskell-servant/servant-ekg/issues/15
1571 servant-ekg = doJailbreak super.servant-ekg;
1572
1573 # it wants to build a statically linked binary by default
1574 hledger-flow = overrideCabal (drv: {
1575 postPatch = (drv.postPatch or "") + ''
1576 substituteInPlace hledger-flow.cabal --replace "-static" ""
1577 '';
1578 }) super.hledger-flow;
1579
1580 # Chart-tests needs and compiles some modules from Chart itself
1581 Chart-tests = overrideCabal (old: {
1582 # 2025-02-13: Too strict bounds on lens < 5.3 and vector < 0.13
1583 jailbreak = true;
1584 preCheck = old.preCheck or "" + ''
1585 tar --one-top-level=../chart --strip-components=1 -xf ${self.Chart.src}
1586 '';
1587 }) (addExtraLibrary self.QuickCheck super.Chart-tests);
1588
1589 # This breaks because of version bounds, but compiles and runs fine.
1590 # Last commit is 5 years ago, so we likely won't get upstream fixed soon.
1591 # https://bitbucket.org/rvlm/hakyll-contrib-hyphenation/src/master/
1592 # Therefore we jailbreak it.
1593 hakyll-contrib-hyphenation = doJailbreak super.hakyll-contrib-hyphenation;
1594
1595 # The test suite depends on an impure cabal-install installation in
1596 # $HOME, which we don't have in our build sandbox.
1597 cabal-install-parsers = dontCheck super.cabal-install-parsers;
1598
1599 # Test suite requires database
1600 persistent-mysql = dontCheck super.persistent-mysql;
1601 persistent-postgresql =
1602 # TODO: move this override to configuration-nix.nix
1603 overrideCabal
1604 (drv: {
1605 postPatch = drv.postPath or "" + ''
1606 # patch out TCP usage: https://nixos.org/manual/nixpkgs/stable/#sec-postgresqlTestHook-tcp
1607 # NOTE: upstream host variable takes only two values...
1608 sed -i test/PgInit.hs \
1609 -e s^'host=" <> host <> "'^^
1610 '';
1611 preCheck = drv.preCheck or "" + ''
1612 PGDATABASE=test
1613 PGUSER=test
1614 '';
1615 testToolDepends = drv.testToolDepends or [ ] ++ [
1616 pkgs.postgresql
1617 pkgs.postgresqlTestHook
1618 ];
1619 })
1620 # https://github.com/NixOS/nixpkgs/issues/198495
1621 (dontCheckIf (pkgs.postgresqlTestHook.meta.broken) super.persistent-postgresql);
1622
1623 # Needs matching lsp-types
1624 # Allow lens >= 5.3
1625 lsp_2_4_0_0 = doDistribute (
1626 doJailbreak (
1627 super.lsp_2_4_0_0.override {
1628 lsp-types = self.lsp-types_2_1_1_0;
1629 }
1630 )
1631 );
1632
1633 # Needs matching lsp-types;
1634 # Lift bound on sorted-list <0.2.2
1635 lsp_2_1_0_0 = doDistribute (
1636 doJailbreak (
1637 super.lsp_2_1_0_0.override {
1638 lsp-types = self.lsp-types_2_1_1_0;
1639 }
1640 )
1641 );
1642 # Lift bound on lens <5.3
1643 lsp-types_2_1_1_0 = doDistribute (doJailbreak super.lsp-types_2_1_1_0);
1644
1645 # 2025-03-03: dhall-lsp-server-1.1.4 requires lsp-2.1.0.0
1646 dhall-lsp-server = super.dhall-lsp-server.override {
1647 lsp = self.lsp_2_1_0_0;
1648 };
1649
1650 # Tests disabled and broken override needed because of missing lib chrome-test-utils: https://github.com/reflex-frp/reflex-dom/issues/392
1651 reflex-dom-core = lib.pipe super.reflex-dom-core [
1652 doDistribute
1653 dontCheck
1654 unmarkBroken
1655 ];
1656
1657 # https://github.com/ghcjs/jsaddle/issues/151
1658 jsaddle-webkit2gtk =
1659 overrideCabal
1660 (drv: {
1661 postPatch = drv.postPatch or "" + ''
1662 substituteInPlace jsaddle-webkit2gtk.cabal --replace-fail gi-gtk gi-gtk3
1663 substituteInPlace jsaddle-webkit2gtk.cabal --replace-fail gi-javascriptcore gi-javascriptcore4
1664 '';
1665 })
1666 (
1667 super.jsaddle-webkit2gtk.override {
1668 gi-gtk = self.gi-gtk3;
1669 gi-javascriptcore = self.gi-javascriptcore4;
1670 }
1671 );
1672
1673 # 2020-06-24: Jailbreaking because of restrictive test dep bounds
1674 # Upstream issue: https://github.com/kowainik/trial/issues/62
1675 trial = doJailbreak super.trial;
1676
1677 # 2024-03-19: Fix for mtl >= 2.3
1678 pattern-arrows = lib.pipe super.pattern-arrows [
1679 doJailbreak
1680 (appendPatches [ ./patches/pattern-arrows-add-fix-import.patch ])
1681 ];
1682
1683 # 2024-03-19: Fix for mtl >= 2.3
1684 cheapskate = lib.pipe super.cheapskate [
1685 doJailbreak
1686 (appendPatches [ ./patches/cheapskate-mtl-2-3-support.patch ])
1687 ];
1688
1689 # 2020-06-24: Tests are broken in hackage distribution.
1690 # See: https://github.com/robstewart57/rdf4h/issues/39
1691 rdf4h = dontCheck super.rdf4h;
1692
1693 # Fixed upstream but not released to Hackage yet:
1694 # https://github.com/k0001/hs-libsodium/issues/2
1695 libsodium = overrideCabal (drv: {
1696 libraryToolDepends = (drv.libraryToolDepends or [ ]) ++ [ self.buildHaskellPackages.c2hs ];
1697 }) super.libsodium;
1698
1699 svgcairo = overrideCabal (drv: {
1700 patches = drv.patches or [ ] ++ [
1701 # Remove when https://github.com/gtk2hs/svgcairo/pull/12 goes in.
1702 (fetchpatch {
1703 url = "https://github.com/gtk2hs/svgcairo/commit/348c60b99c284557a522baaf47db69322a0a8b67.patch";
1704 sha256 = "0akhq6klmykvqd5wsbdfnnl309f80ds19zgq06sh1mmggi54dnf3";
1705 })
1706 # Remove when https://github.com/gtk2hs/svgcairo/pull/13 goes in.
1707 (fetchpatch {
1708 url = "https://github.com/dalpd/svgcairo/commit/d1e0d7ae04c1edca83d5b782e464524cdda6ae85.patch";
1709 sha256 = "1pq9ld9z67zsxj8vqjf82qwckcp69lvvnrjb7wsyb5jc6jaj3q0a";
1710 })
1711 ];
1712 editedCabalFile = null;
1713 revision = null;
1714 }) super.svgcairo;
1715
1716 # Too strict upper bound on tasty-hedgehog (<1.5)
1717 # https://github.com/typeclasses/ascii-predicates/pull/1
1718 ascii-predicates = doJailbreak super.ascii-predicates;
1719 ascii-numbers = doJailbreak super.ascii-numbers;
1720
1721 # Upstream PR: https://github.com/jkff/splot/pull/9
1722 splot = appendPatch (fetchpatch {
1723 url = "https://github.com/jkff/splot/commit/a6710b05470d25cb5373481cf1cfc1febd686407.patch";
1724 sha256 = "1c5ck2ibag2gcyag6rjivmlwdlp5k0dmr8nhk7wlkzq2vh7zgw63";
1725 }) super.splot;
1726
1727 # Support ansi-terminal 1.1: https://github.com/facebookincubator/retrie/pull/73
1728 retrie = appendPatch (fetchpatch {
1729 url = "https://github.com/facebookincubator/retrie/commit/b0df07178133b5b049e3e7764acba0e5e3fa57af.patch";
1730 sha256 = "sha256-Ea/u6PctSxy4h8VySjOwD2xW3TbwY1qE49dG9Av1SbQ=";
1731 }) super.retrie;
1732
1733 # Fails with encoding problems, likely needs locale data.
1734 # Test can be executed by adding which to testToolDepends and
1735 # $PWD/dist/build/haskeline-examples-Test to $PATH.
1736 haskeline_0_8_3_0 = doDistribute (dontCheck super.haskeline_0_8_3_0);
1737
1738 # Test suite fails to compile https://github.com/agrafix/Spock/issues/177
1739 Spock = dontCheck super.Spock;
1740
1741 Spock-core = appendPatches [
1742 (fetchpatch {
1743 url = "https://github.com/agrafix/Spock/commit/d0b51fa60a83bfa5c1b5fc8fced18001e7321701.patch";
1744 sha256 = "sha256-l9voiczOOdYVBP/BNEUvqARb21t0Rp2kpsNbRFUWSLg=";
1745 stripLen = 1;
1746 })
1747 ] (doJailbreak super.Spock-core);
1748
1749 hcoord = overrideCabal (drv: {
1750 # Remove when https://github.com/danfran/hcoord/pull/8 is merged.
1751 patches = [
1752 (fetchpatch {
1753 url = "https://github.com/danfran/hcoord/pull/8/commits/762738b9e4284139f5c21f553667a9975bad688e.patch";
1754 sha256 = "03r4jg9a6xh7w3jz3g4bs7ff35wa4rrmjgcggq51y0jc1sjqvhyz";
1755 })
1756 ];
1757 # Remove when https://github.com/danfran/hcoord/issues/9 is closed.
1758 doCheck = false;
1759 }) super.hcoord;
1760
1761 # Break infinite recursion via tasty
1762 temporary = dontCheck super.temporary;
1763
1764 # Break infinite recursion via doctest-lib
1765 utility-ht = dontCheck super.utility-ht;
1766
1767 # Break infinite recursion via optparse-applicative (alternatively, dontCheck syb)
1768 prettyprinter-ansi-terminal = dontCheck super.prettyprinter-ansi-terminal;
1769
1770 # Tests rely on `Int` being 64-bit: https://github.com/hspec/hspec/issues/431.
1771 # Also, we need QuickCheck-2.14.x to build the test suite, which isn't easy in LTS-16.x.
1772 # So let's not go there and just disable the tests altogether.
1773 hspec-core = dontCheck super.hspec-core;
1774
1775 update-nix-fetchgit =
1776 let
1777 # Deps are required during the build for testing and also during execution,
1778 # so add them to build input and also wrap the resulting binary so they're in
1779 # PATH.
1780 deps = [
1781 pkgs.git
1782 pkgs.nix
1783 pkgs.nix-prefetch-git
1784 ];
1785 in
1786 lib.pipe super.update-nix-fetchgit [
1787 # 2023-06-26: Test failure: https://hydra.nixos.org/build/225081865
1788 dontCheck
1789 (self.generateOptparseApplicativeCompletions [ "update-nix-fetchgit" ])
1790 (overrideCabal (drv: {
1791 buildTools = drv.buildTools or [ ] ++ [ pkgs.buildPackages.makeWrapper ];
1792 postInstall = drv.postInstall or "" + ''
1793 wrapProgram "$out/bin/update-nix-fetchgit" --prefix 'PATH' ':' "${lib.makeBinPath deps}"
1794 '';
1795 }))
1796 (addTestToolDepends deps)
1797 # Patch for hnix compat.
1798 (appendPatches [
1799 (fetchpatch {
1800 url = "https://github.com/expipiplus1/update-nix-fetchgit/commit/dfa34f9823e282aa8c5a1b8bc95ad8def0e8d455.patch";
1801 sha256 = "sha256-yBjn1gVihVTlLewKgJc2I9gEj8ViNBAmw0bcsb5rh1A=";
1802 excludes = [ "cabal.project" ];
1803 })
1804 # Fix for GHC >= 9.8
1805 (fetchpatch {
1806 name = "update-nix-fetchgit-base-4.19.patch";
1807 url = "https://github.com/expipiplus1/update-nix-fetchgit/commit/384d2e259738abf94f5a20717b12648996cf24e2.patch";
1808 sha256 = "11489rpxrrz98f7d3j9mz6npgfg0zp005pghxv9c86rkyg5b10d5";
1809 })
1810 ])
1811 ];
1812
1813 # Raise version bounds: https://github.com/idontgetoutmuch/binary-low-level/pull/16
1814 binary-strict = appendPatches [
1815 (fetchpatch {
1816 url = "https://github.com/idontgetoutmuch/binary-low-level/pull/16/commits/c16d06a1f274559be0dea0b1f7497753e1b1a8ae.patch";
1817 sha256 = "sha256-deSbudy+2je1SWapirWZ1IVWtJ0sJVR5O/fnaAaib2g=";
1818 })
1819 ] super.binary-strict;
1820
1821 # The tests for semver-range need to be updated for the MonadFail change in
1822 # ghc-8.8:
1823 # https://github.com/adnelson/semver-range/issues/15
1824 semver-range = dontCheck super.semver-range;
1825
1826 # 2024-03-02: vty <5.39 - https://github.com/reflex-frp/reflex-ghci/pull/33
1827 reflex-ghci = warnAfterVersion "0.2.0.1" (doJailbreak super.reflex-ghci);
1828
1829 # 2024-09-18: transformers <0.5 https://github.com/reflex-frp/reflex-gloss/issues/6
1830 reflex-gloss = warnAfterVersion "0.2" (doJailbreak super.reflex-gloss);
1831
1832 # 2024-09-18: primitive <0.8 https://gitlab.com/Kritzefitz/reflex-gi-gtk/-/merge_requests/20
1833 reflex-gi-gtk = warnAfterVersion "0.2.0.1" (doJailbreak super.reflex-gi-gtk);
1834
1835 # Due to tests restricting base in 0.8.0.0 release
1836 http-media = doJailbreak super.http-media;
1837
1838 # 2022-03-19: strict upper bounds https://github.com/poscat0x04/hinit/issues/2
1839 hinit = doJailbreak (self.generateOptparseApplicativeCompletions [ "hi" ] super.hinit);
1840
1841 # 2020-11-23: https://github.com/Rufflewind/blas-hs/issues/8
1842 blas-hs = dontCheck super.blas-hs;
1843
1844 # Strange doctest problems
1845 # https://github.com/biocad/servant-openapi3/issues/30
1846 servant-openapi3 = dontCheck super.servant-openapi3;
1847
1848 # Disable test cases that were broken by insignificant changes in icu 76
1849 # https://github.com/haskell/text-icu/issues/108
1850 text-icu = overrideCabal (drv: {
1851 testFlags = drv.testFlags or [ ] ++ [
1852 "-t"
1853 "!Test cases"
1854 ];
1855 }) super.text-icu;
1856
1857 hercules-ci-agent = self.generateOptparseApplicativeCompletions [
1858 "hercules-ci-agent"
1859 ] super.hercules-ci-agent;
1860
1861 hercules-ci-cli = lib.pipe super.hercules-ci-cli [
1862 unmarkBroken
1863 (overrideCabal (drv: {
1864 hydraPlatforms = super.hercules-ci-cli.meta.platforms;
1865 }))
1866 # See hercules-ci-optparse-applicative in non-hackage-packages.nix.
1867 (addBuildDepend super.hercules-ci-optparse-applicative)
1868 (self.generateOptparseApplicativeCompletions [ "hci" ])
1869 ];
1870
1871 # https://github.com/k0001/pipes-aeson/pull/21
1872 pipes-aeson = appendPatch (fetchpatch {
1873 url = "https://github.com/k0001/pipes-aeson/commit/08c25865ef557b41d7e4a783f52e655d2a193e18.patch";
1874 relative = "pipes-aeson";
1875 sha256 = "sha256-kFV6CcwKdMq+qSgyc+eIApnaycq5A++pEEVr2A9xvts=";
1876 }) super.pipes-aeson;
1877
1878 moto-postgresql = appendPatches [
1879 # https://gitlab.com/k0001/moto/-/merge_requests/3
1880 (fetchpatch {
1881 name = "moto-postgresql-monadfail.patch";
1882 url = "https://gitlab.com/k0001/moto/-/commit/09cc1c11d703c25f6e81325be6482dc7ec6cbf58.patch";
1883 relative = "moto-postgresql";
1884 sha256 = "sha256-f2JVX9VveShCeV+T41RQgacpUoh1izfyHlE6VlErkZM=";
1885 })
1886 ] super.moto-postgresql;
1887
1888 moto = appendPatches [
1889 # https://gitlab.com/k0001/moto/-/merge_requests/3
1890 (fetchpatch {
1891 name = "moto-ghc-9.0.patch";
1892 url = "https://gitlab.com/k0001/moto/-/commit/5b6f015a1271765005f03762f1f1aaed3a3198ed.patch";
1893 relative = "moto";
1894 sha256 = "sha256-RMa9tk+2ip3Ks73UFv9Ea9GEnElRtzIjdpld1Fx+dno=";
1895 })
1896 ] super.moto;
1897
1898 # Readline uses Distribution.Simple from Cabal 2, in a way that is not
1899 # compatible with Cabal 3. No upstream repository found so far
1900 readline = appendPatch ./patches/readline-fix-for-cabal-3.patch super.readline;
1901
1902 # DerivingVia is not allowed in safe Haskell
1903 # https://github.com/strake/util.hs/issues/1
1904 util = appendConfigureFlags [
1905 "--ghc-option=-fno-safe-haskell"
1906 "--haddock-option=--optghc=-fno-safe-haskell"
1907 ] super.util;
1908 category = appendConfigureFlags [
1909 "--ghc-option=-fno-safe-haskell"
1910 "--haddock-option=--optghc=-fno-safe-haskell"
1911 ] super.category;
1912 alg = appendConfigureFlags [
1913 "--ghc-option=-fno-safe-haskell"
1914 "--haddock-option=--optghc=-fno-safe-haskell"
1915 ] super.alg;
1916
1917 # 2025-02-11: Too strict bounds on hedgehog < 1.5
1918 nothunks = doJailbreak super.nothunks;
1919
1920 # Test suite fails, upstream not reachable for simple fix (not responsive on github)
1921 vivid-supercollider = dontCheck super.vivid-supercollider;
1922
1923 # Test suite does not compile.
1924 feed = dontCheck super.feed;
1925
1926 spacecookie = overrideCabal (old: {
1927 buildTools = (old.buildTools or [ ]) ++ [ pkgs.buildPackages.installShellFiles ];
1928 # let testsuite discover the resulting binary
1929 preCheck = ''
1930 export SPACECOOKIE_TEST_BIN=./dist/build/spacecookie/spacecookie
1931 ''
1932 + (old.preCheck or "");
1933 # install man pages shipped in the sdist
1934 postInstall = ''
1935 installManPage docs/man/*
1936 ''
1937 + (old.postInstall or "");
1938 }) super.spacecookie;
1939
1940 # Patch and jailbreak can be removed at next release, chatter > 0.9.1.0
1941 # * Remove dependency on regex-tdfa-text
1942 # * Jailbreak as bounds on cereal are too strict
1943 # * Disable test suite which doesn't compile
1944 # https://github.com/creswick/chatter/issues/38
1945 chatter = appendPatch (fetchpatch {
1946 url = "https://github.com/creswick/chatter/commit/e8c15a848130d7d27b8eb5e73e8a0db1366b2e62.patch";
1947 sha256 = "1dzak8d12h54vss5fxnrclygz0fz9ygbqvxd5aifz5n3vrwwpj3g";
1948 }) (dontCheck (doJailbreak (super.chatter.override { regex-tdfa-text = null; })));
1949
1950 # test suite doesn't compile anymore due to changed hunit/tasty APIs
1951 fullstop = dontCheck super.fullstop;
1952
1953 # * doctests don't work without cabal
1954 # https://github.com/noinia/hgeometry/issues/132
1955 # * Too strict version bound on vector-builder
1956 # https://github.com/noinia/hgeometry/commit/a6abecb1ce4a7fd96b25cc1a5c65cd4257ecde7a#commitcomment-49282301
1957 hgeometry-combinatorial = dontCheck (doJailbreak super.hgeometry-combinatorial);
1958
1959 # Too strict bounds on containers
1960 # https://github.com/jswebtools/language-ecmascript-analysis/issues/1
1961 language-ecmascript-analysis = doJailbreak super.language-ecmascript-analysis;
1962
1963 cli-git = addBuildTool pkgs.git super.cli-git;
1964
1965 cli-nix = addBuildTools [
1966 pkgs.nix
1967 pkgs.nix-prefetch-git
1968 ] super.cli-nix;
1969
1970 # list `modbus` in librarySystemDepends, correct to `libmodbus`
1971 libmodbus = doJailbreak (addExtraLibrary pkgs.libmodbus super.libmodbus);
1972
1973 # Too strict version bounds on ghc-events
1974 # https://github.com/mpickering/hs-speedscope/issues/16
1975 hs-speedscope = doJailbreak super.hs-speedscope;
1976
1977 # Missing test files in sdist tarball:
1978 # https://gitlab.com/dpwiz/geomancy-layout/-/issues/1
1979 geomancy-layout = dontCheck super.geomancy-layout;
1980
1981 # 2025-02-11: Too strict bounds on base < 4.19, bytestring < 0.12, tasty < 1.5, tasty-quickcheck < 0.11
1982 blake2 = doJailbreak super.blake2;
1983
1984 # Test suite doesn't support base16-bytestring >= 1.0
1985 # https://github.com/serokell/haskell-crypto/issues/25
1986 crypto-sodium = dontCheck super.crypto-sodium;
1987
1988 # 2021-04-09: too strict time bound
1989 # PR pending https://github.com/zohl/cereal-time/pull/2
1990 cereal-time = doJailbreak super.cereal-time;
1991
1992 # 2021-04-16: too strict bounds on QuickCheck and tasty
1993 # https://github.com/hasufell/lzma-static/issues/1
1994 lzma-static = doJailbreak super.lzma-static;
1995
1996 # Too strict version bounds on base:
1997 # https://github.com/obsidiansystems/database-id/issues/1
1998 database-id-class = doJailbreak super.database-id-class;
1999
2000 # Too strict version bounds on base
2001 # https://github.com/gibiansky/IHaskell/issues/1217
2002 ihaskell-display = doJailbreak super.ihaskell-display;
2003 ihaskell-basic = doJailbreak super.ihaskell-basic;
2004
2005 # Tests need to lookup target triple x86_64-unknown-linux
2006 # https://github.com/llvm-hs/llvm-hs/issues/334
2007 llvm-hs = dontCheckIf (pkgs.stdenv.targetPlatform.system != "x86_64-linux") super.llvm-hs;
2008
2009 # Fix build with bytestring >= 0.11 (GHC 9.2)
2010 # https://github.com/llvm-hs/llvm-hs/pull/389
2011 llvm-hs-pure =
2012 appendPatches
2013 [
2014 (fetchpatch {
2015 name = "llvm-hs-pure-bytestring-0.11.patch";
2016 url = "https://github.com/llvm-hs/llvm-hs/commit/fe8fd556e8d2cc028f61d4d7b4b6bf18c456d090.patch";
2017 sha256 = "sha256-1d4wQg6JEJL3GwmXQpvbW7VOY5DwjUPmIsLEEur0Kps=";
2018 relative = "llvm-hs-pure";
2019 excludes = [ "**/Triple.hs" ]; # doesn't exist in 9.0.0
2020 })
2021 ]
2022 (
2023 overrideCabal {
2024 # Hackage Revision prevents patch from applying. Revision 1 does not allow
2025 # bytestring-0.11.4 which is bundled with 9.2.6.
2026 editedCabalFile = null;
2027 revision = null;
2028 } super.llvm-hs-pure
2029 );
2030
2031 # 2025-02-11: Too strict bounds on tasty-quickcheck < 0.11
2032 exact-pi = doJailbreak super.exact-pi;
2033
2034 # Too strict bounds on dimensional
2035 # https://github.com/enomsg/science-constants-dimensional/pull/1
2036 science-constants-dimensional = doJailbreak super.science-constants-dimensional;
2037
2038 # Tests are flaky on busy machines, upstream doesn't intend to fix
2039 # https://github.com/merijn/paramtree/issues/4
2040 paramtree = dontCheck super.paramtree;
2041
2042 # Flaky test suites
2043 ticker = dontCheck super.ticker;
2044 powerqueue-distributed = dontCheck super.powerqueue-distributed;
2045 job = dontCheck super.job;
2046 scheduler = dontCheck super.scheduler;
2047
2048 # 2024-09-18: Make compatible with haskell-gi 0.26.10
2049 # https://github.com/owickstrom/gi-gtk-declarative/pull/118
2050 gi-gtk-declarative = warnAfterVersion "0.7.1" (
2051 overrideCabal (drv: {
2052 jailbreak = true;
2053 postPatch = ''
2054 sed -i '1 i {-# LANGUAGE FlexibleContexts #-}' \
2055 src/GI/Gtk/Declarative/Widget/Conversions.hs
2056 '';
2057 }) super.gi-gtk-declarative
2058 );
2059 gi-gtk-declarative-app-simple = doJailbreak super.gi-gtk-declarative-app-simple;
2060
2061 # FIXME: These should be removed as gi-gtk4/gi-gdk4 become the standard
2062 gi-gtk_4 = self.gi-gtk_4_0_12;
2063 gi-gdk_4 = self.gi-gdk_4_0_10;
2064
2065 # 2023-04-09: haskell-ci needs Cabal-syntax 3.10
2066 # 2024-03-21: pins specific version of ShellCheck
2067 # 2025-03-10: jailbreak, https://github.com/haskell-CI/haskell-ci/issues/771
2068 haskell-ci = doJailbreak (
2069 super.haskell-ci.overrideScope (
2070 self: super: {
2071 Cabal-syntax = self.Cabal-syntax_3_10_3_0;
2072 ShellCheck = self.ShellCheck_0_9_0;
2073 }
2074 )
2075 );
2076
2077 stack = super.stack.overrideScope (
2078 self: super: {
2079 # stack needs to be built with the same hpack version that the upstream releases use.
2080 # https://github.com/NixOS/nixpkgs/issues/223390
2081 hpack = self.hpack_0_38_1;
2082 }
2083 );
2084
2085 # ShellCheck < 0.10.0 needs to be adjusted for changes in fgl >= 5.8
2086 # https://github.com/koalaman/shellcheck/issues/2677
2087 ShellCheck_0_9_0 = doJailbreak (
2088 appendPatches [
2089 (fetchpatch {
2090 name = "shellcheck-fgl-5.8.1.1.patch";
2091 url = "https://github.com/koalaman/shellcheck/commit/c05380d518056189412e12128a8906b8ca6f6717.patch";
2092 sha256 = "0gbx46x1a2sh5mvgpqxlx9xkqcw4wblpbgqdkqccxdzf7vy50xhm";
2093 })
2094 ] super.ShellCheck_0_9_0
2095 );
2096
2097 # Too strict bound on hspec (<2.11)
2098 utf8-light = doJailbreak super.utf8-light;
2099
2100 # BSON defaults to requiring network instead of network-bsd which is
2101 # required nowadays: https://github.com/mongodb-haskell/bson/issues/26
2102 bson = appendConfigureFlag "-f-_old_network" (
2103 super.bson.override {
2104 network = self.network-bsd;
2105 }
2106 );
2107
2108 # Disable flaky tests
2109 # https://github.com/DavidEichmann/alpaca-netcode/issues/2
2110 alpaca-netcode = overrideCabal {
2111 testFlags = [
2112 "--pattern"
2113 "!/[NOCI]/"
2114 ];
2115 } super.alpaca-netcode;
2116
2117 # 2021-05-22: Tests fail sometimes (even consistently on hydra)
2118 # when running a fs-related test with >= 12 jobs. To work around
2119 # this, run tests with only a single job.
2120 # https://github.com/vmchale/libarchive/issues/20
2121 libarchive = overrideCabal {
2122 testFlags = [ "-j1" ];
2123 } super.libarchive;
2124
2125 # https://github.com/plow-technologies/hspec-golden-aeson/issues/17
2126 hspec-golden-aeson = dontCheck super.hspec-golden-aeson;
2127
2128 # To strict bound on hspec
2129 # https://github.com/dagit/zenc/issues/5
2130 zenc = doJailbreak super.zenc;
2131
2132 # https://github.com/ajscholl/basic-cpuid/pull/1
2133 basic-cpuid = appendPatch (fetchpatch {
2134 url = "https://github.com/ajscholl/basic-cpuid/commit/2f2bd7a7b53103fb0cf26883f094db9d7659887c.patch";
2135 sha256 = "0l15ccfdys100jf50s9rr4p0d0ikn53bkh7a9qlk9i0y0z5jc6x1";
2136 }) super.basic-cpuid;
2137
2138 # Allow building with language-docker >= 13 (!); waiting for 2.13 release.
2139 hadolint = doJailbreak (
2140 appendPatches [
2141 (pkgs.fetchpatch {
2142 name = "hadolint-language-docker-12.patch";
2143 url = "https://github.com/hadolint/hadolint/commit/593ccde5af13c9b960b3ea815c47ce028a2e8adc.patch";
2144 sha256 = "07v5c1k8if72j04m017jpsf7gvc5kwyi1q3a532n0zhxqc7w1zjn";
2145 includes = [
2146 "**/DL3011.hs"
2147 "**/DL3011Spec.hs"
2148 ];
2149 })
2150 ] super.hadolint
2151 );
2152
2153 # Too strict lower bounds on (test) deps
2154 # https://github.com/phadej/puresat/issues/6
2155 puresat = doJailbreak super.puresat;
2156
2157 # test suite requires stack to run, https://github.com/dino-/photoname/issues/24
2158 photoname = dontCheck super.photoname;
2159
2160 # Upgrade of unordered-containers in Stackage causes ordering-sensitive test to fail
2161 # https://github.com/commercialhaskell/stackage/issues/6366
2162 # https://github.com/kapralVV/Unique/issues/9
2163 # Too strict bounds on hashable
2164 # https://github.com/kapralVV/Unique/pull/10
2165 Unique = warnAfterVersion "0.4.7.9" (
2166 overrideCabal (drv: {
2167 testFlags = [
2168 "--skip"
2169 "/Data.List.UniqueUnsorted.removeDuplicates/removeDuplicates: simple test/"
2170 "--skip"
2171 "/Data.List.UniqueUnsorted.repeatedBy,repeated,unique/unique: simple test/"
2172 "--skip"
2173 "/Data.List.UniqueUnsorted.repeatedBy,repeated,unique/repeatedBy: simple test/"
2174 ]
2175 ++ drv.testFlags or [ ];
2176 }) super.Unique
2177 );
2178
2179 # https://github.com/AndrewRademacher/aeson-casing/issues/8
2180 aeson-casing = warnAfterVersion "0.2.0.0" (
2181 overrideCabal (drv: {
2182 testFlags = [
2183 "-p"
2184 "! /encode train/"
2185 ]
2186 ++ drv.testFlags or [ ];
2187 }) super.aeson-casing
2188 );
2189
2190 # https://github.com/emc2/HUnit-Plus/issues/26
2191 HUnit-Plus = dontCheck super.HUnit-Plus;
2192 # https://github.com/ewestern/haskell-postgis/issues/7
2193 haskell-postgis = overrideCabal (drv: {
2194 testFlags = [
2195 "--skip"
2196 "/Geo/Hexable/Encodes a linestring/"
2197 ]
2198 ++ drv.testFlags or [ ];
2199 }) super.haskell-postgis;
2200 # https://github.com/ChrisPenner/json-to-haskell/issues/5
2201 json-to-haskell = overrideCabal (drv: {
2202 testFlags = [
2203 "--match"
2204 "/should sanitize weird field and record names/"
2205 ]
2206 ++ drv.testFlags or [ ];
2207 }) super.json-to-haskell;
2208 # https://github.com/fieldstrength/aeson-deriving/issues/5
2209 aeson-deriving = dontCheck super.aeson-deriving;
2210
2211 # 2025-02-11: Too strict bounds on tasty < 1.5, all of the below.
2212 morpheus-graphql-app = doJailbreak super.morpheus-graphql-app;
2213 morpheus-graphql-client = doJailbreak super.morpheus-graphql-client;
2214 morpheus-graphql-core = doJailbreak super.morpheus-graphql-core;
2215 morpheus-graphql-server = doJailbreak super.morpheus-graphql-server;
2216 morpheus-graphql-tests = doJailbreak super.morpheus-graphql-tests;
2217 morpheus-graphql = doJailbreak super.morpheus-graphql;
2218
2219 drunken-bishop = doJailbreak super.drunken-bishop;
2220 # https://github.com/SupercedeTech/dropbox-client/issues/1
2221 dropbox = overrideCabal (drv: {
2222 testFlags = [
2223 "--skip"
2224 "/Dropbox/Dropbox aeson aeson/encodes list folder correctly/"
2225 ]
2226 ++ drv.testFlags or [ ];
2227 }) super.dropbox;
2228 # https://github.com/alonsodomin/haskell-schema/issues/11
2229 hschema-aeson = overrideCabal (drv: {
2230 testFlags = [
2231 "--skip"
2232 "/toJsonSerializer/should generate valid JSON/"
2233 ]
2234 ++ drv.testFlags or [ ];
2235 }) super.hschema-aeson;
2236 # https://github.com/minio/minio-hs/issues/165
2237 # https://github.com/minio/minio-hs/pull/191 Use crypton-connection instead of unmaintained connection
2238 minio-hs = overrideCabal (drv: {
2239 testFlags = [
2240 "-p"
2241 "!/Test mkSelectRequest/"
2242 ]
2243 ++ drv.testFlags or [ ];
2244 patches = drv.patches or [ ] ++ [
2245 (pkgs.fetchpatch {
2246 name = "use-crypton-connection.patch";
2247 url = "https://github.com/minio/minio-hs/commit/786cf1881f0b62b7539e63547e76afc3c1ade36a.patch";
2248 sha256 = "sha256-zw0/jhKzShpqV1sUyxWTl73sQOzm6kA/yQOZ9n0L1Ag";
2249 })
2250 (pkgs.fetchpatch {
2251 name = "compatibility-with-crypton-connection-0-4-0.patch";
2252 url = "https://github.com/minio/minio-hs/commit/e2169892a5fea444aaf9e551243da811003d3188.patch";
2253 sha256 = "sha256-hWphiArv7gZWiDewLHDeU4RASGOE9Z1liahTmAGQIgQ=";
2254 })
2255 ];
2256 }) (super.minio-hs.override { connection = self.crypton-connection; });
2257
2258 # Invalid CPP in test suite: https://github.com/cdornan/memory-cd/issues/1
2259 memory-cd = dontCheck super.memory-cd;
2260
2261 fgl-arbitrary = doJailbreak super.fgl-arbitrary;
2262
2263 # raaz-0.3 onwards uses backpack and it does not play nicely with
2264 # parallel builds using -j
2265 #
2266 # See: https://gitlab.haskell.org/ghc/ghc/-/issues/17188
2267 #
2268 # Overwrite the build cores
2269 raaz = disableParallelBuilding super.raaz;
2270
2271 # Test suite uses SHA as a point of comparison which doesn't
2272 # succeeds its own test suite on 32bit:
2273 # https://github.com/GaloisInc/SHA/issues/16
2274 cryptohash-sha256 =
2275 if pkgs.stdenv.hostPlatform.is32bit then
2276 dontCheck super.cryptohash-sha256
2277 else
2278 super.cryptohash-sha256;
2279
2280 # https://github.com/andreymulik/sdp/issues/3
2281 sdp = disableLibraryProfiling super.sdp;
2282 sdp-binary = disableLibraryProfiling super.sdp-binary;
2283 sdp-deepseq = disableLibraryProfiling super.sdp-deepseq;
2284 sdp-hashable = disableLibraryProfiling super.sdp-hashable;
2285 sdp-io = disableLibraryProfiling super.sdp-io;
2286 sdp-quickcheck = disableLibraryProfiling super.sdp-quickcheck;
2287 sdp4bytestring = disableLibraryProfiling super.sdp4bytestring;
2288 sdp4text = disableLibraryProfiling super.sdp4text;
2289 sdp4unordered = disableLibraryProfiling super.sdp4unordered;
2290 sdp4vector = disableLibraryProfiling super.sdp4vector;
2291
2292 # Fixes compilation with GHC 9.0 and above
2293 # https://hub.darcs.net/shelarcy/regex-compat-tdfa/issue/3
2294 regex-compat-tdfa =
2295 appendPatches
2296 [
2297 ./patches/regex-compat-tdfa-ghc-9.0.patch
2298 ]
2299 (
2300 overrideCabal {
2301 # Revision introduces bound base < 4.15
2302 revision = null;
2303 editedCabalFile = null;
2304 } super.regex-compat-tdfa
2305 );
2306
2307 # 2025-02-11: Too strict bounds on hedgehog < 1.5, hspec-hedgehog < 0.2
2308 validation-selective = doJailbreak super.validation-selective;
2309
2310 # Test suite isn't supposed to succeed yet, apparently…
2311 # https://github.com/andrewufrank/uniform-error/blob/f40629ad119e90f8dae85e65e93d7eb149bddd53/test/Uniform/Error_test.hs#L124
2312 # https://github.com/andrewufrank/uniform-error/issues/2
2313 uniform-error = dontCheck super.uniform-error;
2314 # https://github.com/andrewufrank/uniform-fileio/issues/2
2315 uniform-fileio = dontCheck super.uniform-fileio;
2316
2317 # The shipped Setup.hs file is broken.
2318 csv = overrideCabal (drv: { preCompileBuildDriver = "rm Setup.hs"; }) super.csv;
2319 # Build-type is simple, but ships a broken Setup.hs
2320 digits = overrideCabal (drv: { preCompileBuildDriver = "rm Setup.lhs"; }) super.digits;
2321
2322 cabal-fmt = doJailbreak (
2323 super.cabal-fmt.override {
2324 # Needs newer Cabal-syntax version.
2325 Cabal-syntax = self.Cabal-syntax_3_10_3_0;
2326 }
2327 );
2328
2329 # 2025-02-11: Too strict bounds on base < 4.17
2330 ema = doJailbreak super.ema;
2331
2332 # Too strict bounds on text and tls
2333 # https://github.com/barrucadu/irc-conduit/issues/54
2334 # Use crypton-connection instead of connection
2335 # https://github.com/barrucadu/irc-conduit/pull/60 https://github.com/barrucadu/irc-client/pull/101
2336 irc-conduit =
2337 appendPatch
2338 (pkgs.fetchpatch {
2339 url = "https://github.com/barrucadu/irc-conduit/pull/60/commits/58f6b5ee0c23a0615e43292dbbacf40636dcd7a6.patch";
2340 hash = "sha256-d08tb9iL07mBWdlZ7PCfTLVFJLgcxeGVPzJ+jOej8io=";
2341 })
2342 (
2343 doJailbreak (
2344 super.irc-conduit.override {
2345 connection = self.crypton-connection;
2346 x509-validation = self.crypton-x509-validation;
2347 }
2348 )
2349 );
2350 irc-client =
2351 appendPatch
2352 (pkgs.fetchpatch {
2353 url = "https://github.com/barrucadu/irc-client/pull/101/commits/0440b7e2ce943d960234c50957a55025771f567a.patch";
2354 hash = "sha256-iZyZMrodgViXFCMH9y2wIJZRnjd6WhkqInAdykqTdkY=";
2355 })
2356 (
2357 doJailbreak (
2358 super.irc-client.override {
2359 connection = self.crypton-connection;
2360 x509 = self.crypton-x509;
2361 x509-store = self.crypton-x509-store;
2362 x509-validation = self.crypton-x509-validation;
2363 }
2364 )
2365 );
2366
2367 # 2022-03-16: Upstream stopped updating bounds https://github.com/haskell-hvr/base-noprelude/pull/15
2368 base-noprelude = doJailbreak super.base-noprelude;
2369
2370 # 2025-01-07: unreleased upstream supports hedgehog 1.5 but drifted quite a bit from hackage revisions so hard to patch
2371 hw-hspec-hedgehog = doJailbreak super.hw-hspec-hedgehog;
2372
2373 # Test suite doesn't support hspec 2.8
2374 # https://github.com/zellige/hs-geojson/issues/29
2375 geojson = dontCheck super.geojson;
2376
2377 # Test data missing from sdist
2378 # https://github.com/ngless-toolkit/ngless/issues/152
2379 NGLess = dontCheck super.NGLess;
2380
2381 # Too strict bound on network (<3.2)
2382 hookup = appendPatches [
2383 (pkgs.fetchpatch {
2384 name = "hookup-network-3.2.patch";
2385 url = "https://github.com/glguy/irc-core/commit/a3ec982e729b0f77b2db336ec32c5e4b7283bed5.patch";
2386 sha256 = "0qc1qszn3l69xlbpfv8vz9ld0q7sghfcbp0wjds81kwcpdpl4jgv";
2387 stripLen = 1;
2388 includes = [ "hookup.cabal" ];
2389 })
2390 ] super.hookup;
2391
2392 # Raise version bounds: https://github.com/kosmikus/records-sop/pull/15
2393 records-sop = appendPatch (fetchpatch {
2394 url = "https://github.com/kosmikus/records-sop/commit/fb149f453a816ff14d0cb20b3ea56b80ff49d9f1.patch";
2395 sha256 = "sha256-iHiF4EWL/GjJFnr/6aR+yMZKLMLAZK+gsgSxG8YaeDI=";
2396 }) super.records-sop;
2397
2398 # Fix build failures for ghc 9 (https://github.com/mokus0/polynomial/pull/20)
2399 polynomial =
2400 appendPatch
2401 (fetchpatch {
2402 name = "haskell-polynomial.20.patch";
2403 url = "https://github.com/mokus0/polynomial/pull/20.diff";
2404 sha256 = "1bwivimpi2hiil3zdnl5qkds1inyn239wgxbn3y8l2pwyppnnfl0";
2405 })
2406 (
2407 overrideCabal (drv: {
2408 revision = null;
2409 editedCabalFile = null;
2410 doCheck = false; # Source dist doesn't include the checks
2411 }) super.polynomial
2412 );
2413
2414 # lucid-htmx has restrictive upper bounds on lucid and servant:
2415 #
2416 # Setup: Encountered missing or private dependencies:
2417 # lucid >=2.9.12.1 && <=2.11, servant >=0.18.3 && <0.19
2418 #
2419 # Can be removed once
2420 #
2421 # > https://github.com/MonadicSystems/lucid-htmx/issues/6
2422 #
2423 # has been resolved.
2424 lucid-htmx = doJailbreak super.lucid-htmx;
2425
2426 clash-prelude = dontCheck super.clash-prelude;
2427
2428 krank = appendPatches [
2429 # Deal with removed exports in base
2430 (pkgs.fetchpatch {
2431 name = "krank-issue-97.patch";
2432 url = "https://github.com/guibou/krank/commit/f6b676774537f8e2357115fd8cd3c93fb68e8a85.patch";
2433 sha256 = "0d85q2x37yhjwp17wmqvblkna7p7vnl7rwdqr3kday46wvdgblgl";
2434 excludes = [ ".envrc" ];
2435 })
2436 # Fix build of tests with http-client >=0.7.16
2437 (pkgs.fetchpatch {
2438 name = "krank-http-client-0.7.16.patch";
2439 url = "https://github.com/guibou/krank/commit/50fd3d08526f3ed6add3352460d3d1ce9dc15f6d.patch";
2440 sha256 = "0h15iir2v4pli2b72gv69amxs277xmmzw3wavrix74h9prbs4pms";
2441 })
2442 ] super.krank;
2443
2444 hermes-json = overrideCabal (drv: {
2445 # 2025-02-11: Upper bounds on hedgehog < 1.5 too strict.
2446 jailbreak = true;
2447
2448 # vendored simdjson breaks with clang-19. apply patches that work with
2449 # a more recent simdjson so we can un-vendor it
2450 patches = drv.patches or [ ] ++ [
2451 (fetchpatch {
2452 url = "https://github.com/velveteer/hermes/commit/6fd9904d93a5c001aadb27c114345a6958904d71.patch";
2453 hash = "sha256-Pv09XP0/VjUiAFp237Adj06PIZU21mQRh7guTlKksvA=";
2454 excludes = [
2455 ".github/*"
2456 "hermes-bench/*"
2457 ];
2458 })
2459 (fetchpatch {
2460 url = "https://github.com/velveteer/hermes/commit/ca8dddbf52f9d7788460a056fefeb241bcd09190.patch";
2461 hash = "sha256-tDDGS0QZ3YWe7+SP09wnxx6lIWL986ce5Zhqr7F2sBk=";
2462 excludes = [
2463 "README.md"
2464 ".github/*"
2465 "hermes-bench/*"
2466 ];
2467 })
2468 ];
2469 postPatch = drv.postPatch or "" + ''
2470 ln -fs ${pkgs.simdjson.src} simdjson
2471 '';
2472 }) super.hermes-json;
2473
2474 # hexstring is not compatible with newer versions of base16-bytestring
2475 # See https://github.com/solatis/haskell-hexstring/issues/3
2476 hexstring = overrideCabal (old: {
2477 # Prevent DOS line endings from Hackage from breaking a patch
2478 prePatch = old.prePatch or "" + ''
2479 ${pkgs.buildPackages.dos2unix}/bin/dos2unix src/Data/HexString.hs
2480 '';
2481 patches = old.patches or [ ] ++ [
2482 (pkgs.fetchpatch {
2483 name = "fix-base16-bytestring-compat";
2484 url = "https://github.com/solatis/haskell-hexstring/commit/4f0a27c64ecb4a767eeea2efebebfd7edba18de0.patch";
2485 hash = "sha256-DHT566Ov1D++1VNjUor9xSeOsuSi2LPiIAGT55gqr8s=";
2486 })
2487 ];
2488 }) super.hexstring;
2489
2490 # Disabling doctests.
2491 regex-tdfa = overrideCabal {
2492 testTargets = [ "regex-tdfa-unittest" ];
2493 } super.regex-tdfa;
2494
2495 # Missing test files https://github.com/kephas/xdg-basedir-compliant/issues/1
2496 xdg-basedir-compliant = dontCheck super.xdg-basedir-compliant;
2497
2498 # Test failure after libxcrypt migration, reported upstream at
2499 # https://github.com/phadej/crypt-sha512/issues/13
2500 crypt-sha512 = dontCheck super.crypt-sha512;
2501
2502 # Latest release depends on crypton-connection ==0.3.2 https://github.com/ndmitchell/hoogle/issues/435
2503 hoogle = overrideSrc {
2504 version = "unstable-2024-07-29";
2505 src = pkgs.fetchFromGitHub {
2506 owner = "ndmitchell";
2507 repo = "hoogle";
2508 rev = "8149c93c40a542bf8f098047e1acbc347fc9f4e6";
2509 hash = "sha256-k3UdmTq8c+iNF8inKM+oWf/NgJqRgUSFS3YwRKVg8Mw=";
2510 };
2511 } super.hoogle;
2512
2513 inherit
2514 (
2515 let
2516 # We need to build purescript with these dependencies and thus also its reverse
2517 # dependencies to avoid version mismatches in their dependency closure.
2518 # TODO: maybe unify with the spago overlay in configuration-nix.nix?
2519 purescriptOverlay = self: super: {
2520 # As of 2021-11-08, the latest release of `language-javascript` is 0.7.1.0,
2521 # but it has a problem with parsing the `async` keyword. It doesn't allow
2522 # `async` to be used as an object key:
2523 # https://github.com/erikd/language-javascript/issues/131
2524 language-javascript = self.language-javascript_0_7_0_0;
2525 };
2526 in
2527 {
2528 purescript = lib.pipe (super.purescript.overrideScope purescriptOverlay) [
2529 # https://github.com/purescript/purescript/pull/4547
2530 (appendPatches [
2531 (pkgs.fetchpatch {
2532 name = "purescript-import-fix";
2533 url = "https://github.com/purescript/purescript/commit/c610ec18391139a67dc9dcf19233f57d2c5413f7.patch";
2534 hash = "sha256-7s/ygzAFJ1ocZIj3OSd3TbsmGki46WViPIZOU1dfQFg=";
2535 })
2536 ])
2537 # PureScript uses nodejs to run tests, so the tests have been disabled
2538 # for now. If someone is interested in figuring out how to get this
2539 # working, it seems like it might be possible.
2540 dontCheck
2541 # The current version of purescript (0.14.5) has version bounds for LTS-17,
2542 # but it compiles cleanly using deps in LTS-18 as well. This jailbreak can
2543 # likely be removed when purescript-0.14.6 is released.
2544 doJailbreak
2545 # Generate shell completions
2546 (self.generateOptparseApplicativeCompletions [ "purs" ])
2547 ];
2548
2549 purenix = lib.pipe (super.purenix.overrideScope purescriptOverlay) [
2550 (appendPatches [
2551 # https://github.com/purenix-org/purenix/pull/63
2552 (pkgs.fetchpatch {
2553 name = "purenix-purescript-0_15_12";
2554 url = "https://github.com/purenix-org/purenix/commit/2dae563f887c7c8daf3dd3e292ee3580cb70d528.patch";
2555 hash = "sha256-EZXf95BJINyqnRb2t/Ao/9C8ttNp3A27rpKiEKJjO6Y=";
2556 })
2557 (pkgs.fetchpatch {
2558 name = "purenix-import-fix";
2559 url = "https://github.com/purenix-org/purenix/commit/f1890690264e7e5ce7f5b0a32d73d910ce2cbd73.patch";
2560 hash = "sha256-MRITcNOiaWmzlTd9l7sIz/LhlnpW8T02CXdcc1qQt3c=";
2561 })
2562 ])
2563 ];
2564 }
2565 )
2566 purescript
2567 purenix
2568 ;
2569
2570 # containers <0.6, semigroupoids <5.3
2571 data-lens = doJailbreak super.data-lens;
2572
2573 # hashable <1.4, mmorph <1.2
2574 composite-aeson = doJailbreak super.composite-aeson;
2575
2576 # Overly strict bounds on tasty-quickcheck (test suite) (< 0.11)
2577 hashable = doJailbreak super.hashable;
2578 cborg = lib.pipe super.cborg [
2579 # Fix build on 32-bit: https://github.com/well-typed/cborg/pull/322
2580 (appendPatches (
2581 lib.optionals pkgs.stdenv.hostPlatform.is32bit [
2582 (pkgs.fetchpatch {
2583 name = "cborg-i686-1.patch";
2584 url = "https://github.com/well-typed/cborg/commit/a4757c46219afe6d235652ae642786f2e2977020.patch";
2585 sha256 = "01n0x2l605x7in9hriz9asmzsfb5f8d6zkwgypckfj1r18qbs2hj";
2586 includes = [ "**/Codec/CBOR/**" ];
2587 stripLen = 1;
2588 })
2589 (pkgs.fetchpatch {
2590 name = "cborg-i686-2.patch";
2591 url = "https://github.com/well-typed/cborg/commit/94a856e4e544a5bc7f927cfb728de385d6260af4.patch";
2592 sha256 = "03iz85gsll38q5bl3m024iv7yb1k5sisly7jvgf66zic8fbvkhcn";
2593 includes = [ "**/Codec/CBOR/**" ];
2594 stripLen = 1;
2595 })
2596 ]
2597 ))
2598 ];
2599 # Doesn't compile with tasty-quickcheck == 0.11 (see issue above)
2600 serialise = dontCheck super.serialise;
2601 # https://github.com/Bodigrim/data-array-byte/issues/1
2602 data-array-byte = doJailbreak super.data-array-byte;
2603 # 2025-02-06: Allow tasty-quickcheck == 0.11.*
2604 # https://github.com/google/ghc-source-gen/issues/120
2605 ghc-source-gen = doJailbreak super.ghc-source-gen;
2606 # https://github.com/byteverse/bytebuild/issues/20#issuecomment-2652113837
2607 bytebuild = doJailbreak super.bytebuild;
2608 # https://github.com/haskellari/lattices/issues/132
2609 lattices = doJailbreak super.lattices;
2610
2611 # Too strict bounds on tasty <1.5 and tasty-quickcheck <0.11
2612 # https://github.com/phadej/aeson-extra/issues/62
2613 aeson-extra = doJailbreak super.aeson-extra;
2614
2615 # Support tasty-quickcheck 0.11: https://github.com/Bodigrim/mod/pull/26
2616 mod = appendPatch (fetchpatch {
2617 url = "https://github.com/Bodigrim/mod/commit/30596fb9d85b69ec23ecb05ef9a7c91d67901cfd.patch";
2618 sha256 = "sha256-9XuzIxEbepaw5bRoIOUka8fkiZBfturIybh/9nhGmWQ=";
2619 }) super.mod;
2620
2621 # Fixes build of test suite: not yet released
2622 primitive-unlifted = appendPatch (fetchpatch {
2623 url = "https://github.com/haskell-primitive/primitive-unlifted/commit/26922952ef20c4771d857f3e96c9e710cb3c2df9.patch";
2624 sha256 = "0h9xxrv78spqi93l9206398gmsliaz0w6xy37nrvx3daqr1y4big";
2625 excludes = [ "*.cabal" ];
2626 }) super.primitive-unlifted;
2627
2628 # composite-aeson <0.8, composite-base <0.8
2629 compdoc = doJailbreak super.compdoc;
2630
2631 # composite-aeson <0.8, composite-base <0.8
2632 haskell-coffee = doJailbreak super.haskell-coffee;
2633
2634 # Test suite doesn't compile anymore
2635 twitter-types = dontCheck super.twitter-types;
2636
2637 # Tests open file "data/test_vectors_aserti3-2d_run01.txt" but it doesn't exist
2638 haskoin-core = dontCheck super.haskoin-core;
2639
2640 # unix-compat <0.5
2641 hxt-cache = doJailbreak super.hxt-cache;
2642
2643 # QuickCheck <2.14
2644 term-rewriting = doJailbreak super.term-rewriting;
2645
2646 # tests can't find the test binary anymore - parseargs-example
2647 parseargs = dontCheck super.parseargs;
2648
2649 # base <4.14
2650 decimal-literals = doJailbreak super.decimal-literals;
2651
2652 # Test failure https://gitlab.com/lysxia/ap-normalize/-/issues/2
2653 ap-normalize = dontCheck super.ap-normalize;
2654
2655 heist-extra = doJailbreak super.heist-extra; # base <4.18.0.0.0
2656 unionmount = doJailbreak super.unionmount; # base <4.18
2657 tailwind = doJailbreak super.tailwind; # base <=4.17.0.0
2658 commonmark-wikilink = doJailbreak super.commonmark-wikilink; # base <4.18.0.0.0
2659
2660 # 2024-03-02: Apply unreleased changes necessary for compatibility
2661 # with commonmark-extensions-0.2.5.3.
2662 commonmark-simple = warnAfterVersion "0.1.0.0" (
2663 appendPatches (map
2664 (
2665 { rev, hash }:
2666 fetchpatch {
2667 name = "commonmark-simple-${lib.substring 0 7 rev}.patch";
2668 url = "https://github.com/srid/commonmark-simple/commit/${rev}.patch";
2669 includes = [ "src/Commonmark/Simple.hs" ];
2670 inherit hash;
2671 }
2672 )
2673 [
2674 {
2675 rev = "71f5807ed4cbd8da915bf5ba04cd115b49980bcb";
2676 hash = "sha256-ibDQbyTd2BoA0V+ldMOr4XYurnqk1nWzbJ15tKizHrM=";
2677 }
2678 {
2679 rev = "fc106c94f781f6a35ef66900880edc08cbe3b034";
2680 hash = "sha256-9cpgRNFWhpSuSttAvnwPiLmi1sIoDSYbp0sMwcKWgDQ=";
2681 }
2682 ]
2683 ) (doJailbreak super.commonmark-simple)
2684 );
2685
2686 # Test files missing from sdist
2687 # https://github.com/tweag/webauthn/issues/166
2688 webauthn = dontCheck super.webauthn;
2689
2690 # calls ghc in tests
2691 # https://github.com/brandonchinn178/tasty-autocollect/issues/54
2692 tasty-autocollect = dontCheck super.tasty-autocollect;
2693
2694 postgres-websockets = lib.pipe super.postgres-websockets [
2695 (addTestToolDepends [
2696 pkgs.postgresql
2697 pkgs.postgresqlTestHook
2698 ])
2699 (dontCheckIf pkgs.postgresqlTestHook.meta.broken)
2700 (overrideCabal {
2701 preCheck = ''
2702 export postgresqlEnableTCP=1
2703 export PGDATABASE=postgres_ws_test
2704 '';
2705 })
2706 ];
2707
2708 postgrest =
2709 lib.pipe
2710 (super.postgrest.overrideScope (
2711 self: super: {
2712 # 2025-01-19: Upstream is stuck at hasql < 1.7
2713 # Jailbreaking for newer postgresql-libpq, which seems to work fine
2714 postgresql-binary = dontCheck (doJailbreak super.postgresql-binary_0_13_1_3);
2715 hasql = dontCheck (doJailbreak super.hasql_1_6_4_4);
2716 # Matching dependencies for hasql < 1.6.x
2717 hasql-dynamic-statements = dontCheck super.hasql-dynamic-statements_0_3_1_5;
2718 hasql-implicits = dontCheck super.hasql-implicits_0_1_1_3;
2719 hasql-notifications = dontCheck super.hasql-notifications_0_2_2_2;
2720 hasql-pool = dontCheck super.hasql-pool_1_0_1;
2721 hasql-transaction = dontCheck super.hasql-transaction_1_1_0_1;
2722 }
2723 ))
2724 [
2725 # 2023-12-20: New version needs extra dependencies
2726 (addBuildDepends [
2727 self.cache
2728 self.extra
2729 self.fuzzyset_0_2_4
2730 self.jose-jwt
2731 self.neat-interpolation
2732 self.prometheus-client
2733 self.timeit
2734 ])
2735 # 2022-12-02: Too strict bounds.
2736 doJailbreak
2737 # 2022-12-02: Hackage release lags behind actual releases: https://github.com/PostgREST/postgrest/issues/2275
2738 (overrideSrc rec {
2739 version = "13.0.4";
2740 src = pkgs.fetchFromGitHub {
2741 owner = "PostgREST";
2742 repo = "postgrest";
2743 rev = "v${version}";
2744 hash = "sha256-Y9Nxfs2w3Iinx61Om7dd+R8TTsK12oWD+3vki3WUz9Y=";
2745 };
2746 })
2747 ];
2748
2749 # Too strict bounds on hspec < 2.11
2750 fuzzyset_0_2_4 = doJailbreak super.fuzzyset_0_2_4;
2751
2752 html-charset = dontCheck super.html-charset;
2753
2754 # bytestring <0.11.0, optparse-applicative <0.13.0
2755 # https://github.com/kseo/sfnt2woff/issues/1
2756 sfnt2woff = doJailbreak super.sfnt2woff;
2757
2758 # libfuse3 fails to mount fuse file systems within the build environment
2759 libfuse3 = dontCheck super.libfuse3;
2760
2761 # Merged upstream, but never released. Allows both intel and aarch64 darwin to build.
2762 # https://github.com/vincenthz/hs-gauge/pull/106
2763 gauge = appendPatch (pkgs.fetchpatch {
2764 name = "darwin-aarch64-fix.patch";
2765 url = "https://github.com/vincenthz/hs-gauge/commit/3d7776f41187c70c4f0b4517e6a7dde10dc02309.patch";
2766 hash = "sha256-4osUMo0cvTvyDTXF8lY9tQbFqLywRwsc3RkHIhqSriQ=";
2767 }) super.gauge;
2768
2769 # The hackage source is somehow missing a file present in the repo (tests/ListStat.hs).
2770 sym = dontCheck super.sym;
2771
2772 # 2024-01-24: https://github.com/haskellari/tree-diff/issues/79
2773 # exprParser fails to parse pretty printed structure correctly when the randomizer uses newlines (?)
2774 tree-diff = overrideCabal (drv: {
2775 testFlags = drv.testFlags or [ ] ++ [
2776 "-p"
2777 "!/parsec-ansi-wl-pprint/"
2778 ];
2779 }) super.tree-diff;
2780
2781 # base <4.19
2782 # https://github.com/well-typed/large-records/issues/168
2783 large-generics = doJailbreak super.large-generics;
2784
2785 # Too strict bound on bytestring < 0.12
2786 # https://github.com/raehik/heystone/issues/2
2787 heystone = doJailbreak super.heystone;
2788
2789 # Too strict bounds on base, ghc-prim, primitive
2790 # https://github.com/kowainik/typerep-map/pull/128
2791 typerep-map = doJailbreak super.typerep-map;
2792
2793 # Too strict bounds on base
2794 kewar = doJailbreak super.kewar;
2795
2796 # Tests rely on (missing) submodule
2797 unleash-client-haskell-core = dontCheck super.unleash-client-haskell-core;
2798
2799 # Workaround for Cabal failing to find nonexistent SDL2 library?!
2800 # https://github.com/NixOS/nixpkgs/issues/260863
2801 sdl2-gfx = overrideCabal { __propagatePkgConfigDepends = false; } super.sdl2-gfx;
2802
2803 # Needs git for compile-time insertion of commit hash into --version string.
2804 kmonad = overrideCabal (drv: {
2805 libraryToolDepends = (drv.libraryToolDepends or [ ]) ++ [ pkgs.buildPackages.git ];
2806 }) super.kmonad;
2807
2808 # 2024-03-17: broken
2809 vaultenv = dontDistribute super.vaultenv;
2810
2811 # 2024-01-24: support optparse-applicative 0.18
2812 niv = appendPatches [
2813 (fetchpatch {
2814 # needed for the following patch to apply
2815 url = "https://github.com/nmattia/niv/commit/7b76374b2b44152bfbf41fcb60162c2ce9182e7a.patch";
2816 includes = [ "src/*" ];
2817 hash = "sha256-3xG+GD6fUCGgi2EgS7WUpjfn6gvc2JurJcIrnyy4ys8=";
2818 })
2819 (fetchpatch {
2820 # Update to optparse-applicative 0.18
2821 url = "https://github.com/nmattia/niv/commit/290965abaa02be33b601032d850c588a6bafb1a5.patch";
2822 hash = "sha256-YxUdv4r/Fx+8YxHhqEuS9uZR1XKzVCPrLmj5+AY5GRA=";
2823 })
2824 ] super.niv;
2825
2826 # 2024-03-25: HSH broken because of the unix-2.8.0.0 breaking change
2827 HSH = appendPatches [ ./patches/HSH-unix-openFd.patch ] super.HSH;
2828
2829 # Support unix < 2.8 to build in older ghc than 9.6
2830 linux-namespaces = appendPatch (fetchpatch {
2831 url = "https://github.com/redneb/hs-linux-namespaces/commit/f4a3546541bb6c7172fdd03e177a961da60e3951.patch";
2832 sha256 = "sha256-6Qv7NWIbzR3ktMGFogw5597bIqPH7Z4hoFvvBQAoquY=";
2833 }) super.linux-namespaces;
2834
2835 # Use recent git version as the hackage version is outdated and not building on recent GHC versions
2836 haskell-to-elm = overrideSrc {
2837 version = "unstable-2023-12-02";
2838 src = pkgs.fetchFromGitHub {
2839 owner = "haskell-to-elm";
2840 repo = "haskell-to-elm";
2841 rev = "52ab086a320a14051aa38d0353d957fb6b2525e9";
2842 hash = "sha256-j6F4WplJy7NyhTAuiDd/tHT+Agk1QdyPjOEkceZSxq8=";
2843 };
2844 } super.haskell-to-elm;
2845
2846 # Overly strict upper bounds on esqueleto
2847 # https://github.com/jonschoning/espial/issues/61
2848 espial = doJailbreak super.espial;
2849
2850 # https://github.com/isovector/type-errors/issues/9
2851 type-errors = dontCheck super.type-errors;
2852
2853 # Too strict bounds on text. Can be removed after https://github.com/alx741/currencies/pull/3 is merged
2854 currencies = doJailbreak super.currencies;
2855
2856 argon2 = appendPatch (fetchpatch {
2857 # https://github.com/haskell-hvr/argon2/pull/20
2858 url = "https://github.com/haskell-hvr/argon2/commit/f7cc92f18e233e6b1dabf1798dd099e17b6a81a1.patch";
2859 hash = "sha256-JxraFWzErJT4EhELa3PWBGHaLT9OLgEPNSnxwpdpHd0=";
2860 }) (doJailbreak super.argon2); # Unmaintained
2861
2862 # 2024-07-09: zinza has bumped their QuickCheck and tasty dependencies beyond stackage lts.
2863 # Can possibly be removed once QuickCheck >= 2.15 and tasty >= 1.5
2864 zinza = dontCheck super.zinza;
2865
2866 pdftotext = overrideCabal (drv: {
2867 postPatch = ''
2868 # Fixes https://todo.sr.ht/~geyaeb/haskell-pdftotext/6
2869 substituteInPlace pdftotext.cabal --replace-quiet c-sources cxx-sources
2870
2871 # Fix cabal ignoring cxx because the cabal format version is too old
2872 substituteInPlace pdftotext.cabal --replace-quiet ">=1.10" 2.2
2873
2874 # Fix wrong license name that breaks recent cabal version
2875 substituteInPlace pdftotext.cabal --replace-quiet BSD3 BSD-3-Clause
2876 ''
2877 + (drv.postPatch or "");
2878 }) (doJailbreak (addExtraLibrary pkgs.pkg-config (addExtraLibrary pkgs.poppler super.pdftotext)));
2879
2880 proto3-wire = appendPatch (fetchpatch {
2881 # https://github.com/awakesecurity/proto3-wire/pull/109
2882 url = "https://github.com/awakesecurity/proto3-wire/commit/b32f3db6f8d36ea0708fb2f371f62d439ea45b42.patch";
2883 hash = "sha256-EGFyk3XawU0+zk299WGwFKB2uW9eJrCDM6NgfIKWgRY=";
2884 }) super.proto3-wire;
2885
2886 # 2024-07-27: building test component requires non-trivial custom build steps
2887 # https://github.com/awakesecurity/proto3-suite/blob/bec9d40e2767143deed5b2d451197191f1d8c7d5/nix/overlays/haskell-packages.nix#L311
2888 proto3-suite = lib.pipe super.proto3-suite [
2889 dontCheck # Hackage release trails a good deal behind master
2890 doJailbreak
2891 ];
2892
2893 # Tests require docker
2894 testcontainers = dontCheck super.testcontainers;
2895
2896 # https://bitbucket.org/echo_rm/hailgun/pull-requests/27
2897 hailgun = appendPatches [
2898 (fetchpatch {
2899 url = "https://bitbucket.org/nh2/hailgun/commits/ac2bc2a3003e4b862625862c4565fece01c0cf57/raw";
2900 sha256 = "sha256-MWeK9nzMVP6cQs2GBFkohABgL8iWcT7YzwF+tLOkIjo=";
2901 })
2902 (fetchpatch {
2903 url = "https://bitbucket.org/nh2/hailgun/commits/583daaf87265a7fa67ce5171fe1077e61be9b39c/raw";
2904 sha256 = "sha256-6WITonLoONxZzzkS7EI79LwmwSdkt6TCgvHA2Hwy148=";
2905 })
2906 (fetchpatch {
2907 url = "https://bitbucket.org/nh2/hailgun/commits/b9680b82f6d58f807828c1bbb57e26c7af394501/raw";
2908 sha256 = "sha256-MnOc51tTNg8+HDu1VS2Ct7Mtu0vuuRd3DjzOAOF+t7Q=";
2909 })
2910 ] super.hailgun;
2911
2912 # opencascade-hs requires the include path configuring relative to the
2913 # opencascade subdirectory in include.
2914 opencascade-hs = appendConfigureFlags [
2915 "--extra-include-dirs=${lib.getDev pkgs.opencascade-occt}/include/opencascade"
2916 ] super.opencascade-hs;
2917
2918 # https://github.com/haskell-grpc-native/http2-client/pull/95
2919 # https://github.com/haskell-grpc-native/http2-client/pull/96
2920 # https://github.com/haskell-grpc-native/http2-client/pull/97
2921 # Apply patch for http2 >= 5.2, allow tls >= 2.1 and network >= 3.2
2922 http2-client = appendPatches [
2923 (fetchpatch {
2924 name = "http2-client-fix-build-with-http2-5.3.patch";
2925 url = "https://github.com/haskell-grpc-native/http2-client/pull/97/commits/95143e4843253913097838ab791ef39ddfd90b33.patch";
2926 sha256 = "09205ziac59axld8v1cyxa9xl42srypaq8d1gf6y3qwpmrx3rgr9";
2927 })
2928 ] (doJailbreak super.http2-client);
2929
2930 # https://github.com/snoyberg/http-client/pull/563
2931 http-client-tls = doJailbreak super.http-client-tls;
2932
2933 # agda2hs 1.3 is not compatible with Agda 2.8.0
2934 agda2hs = lib.pipe super.agda2hs [
2935 (warnAfterVersion "1.3")
2936 (overrideSrc rec {
2937 version = "1.4";
2938 src = pkgs.fetchFromGitHub {
2939 owner = "agda";
2940 repo = "agda2hs";
2941 rev = "v${version}";
2942 hash = "sha256-ZhemGUY6V0cplSwDAXkny+s6yQWKDDShTiUotIDhTXY=";
2943 };
2944 })
2945 ];
2946
2947 bsb-http-chunked = lib.pipe super.bsb-http-chunked [
2948 (warnAfterVersion "0.0.0.4")
2949 # Last released in 2018
2950 # https://github.com/sjakobi/bsb-http-chunked/issues/38
2951 # https://github.com/sjakobi/bsb-http-chunked/issues/45
2952 (overrideSrc {
2953 src = pkgs.fetchFromGitHub {
2954 owner = "sjakobi";
2955 repo = "bsb-http-chunked";
2956 rev = "c0ecd72fe2beb1cf7de9340cc8b4a31045460532";
2957 hash = "sha256-+UDxfywXPjxPuFupcB8veyMYWVQCKha64me9HADtFGg=";
2958 };
2959 })
2960 # https://github.com/sjakobi/bsb-http-chunked/pull/49
2961 (appendPatch (fetchpatch {
2962 url = "https://github.com/sjakobi/bsb-http-chunked/commit/689bf9ce12b8301d0e13a68e4a515c2779b62947.patch";
2963 sha256 = "sha256-ZdCXMhni+RGisRODiElObW5c4hKy2giWQmWnatqeRJo=";
2964 }))
2965 ];
2966
2967 # jailbreak to allow deepseq >= 1.5, https://github.com/jumper149/blucontrol/issues/3
2968 blucontrol = doJailbreak super.blucontrol;
2969
2970 # Needs to match pandoc, see:
2971 # https://github.com/jgm/pandoc/commit/97b36ecb7703b434ed4325cc128402a9eb32418d
2972 commonmark-pandoc = doDistribute self.commonmark-pandoc_0_2_2_3;
2973
2974 pandoc = lib.pipe super.pandoc [
2975 dontCheck # test errors in "jats-writer" possibly fixed in newer release
2976 # Test output changes with newer version of texmath
2977 (appendPatch (fetchpatch {
2978 name = "jats:update-for-texmath";
2979 url = "https://github.com/jgm/pandoc/commit/e2a0cc9ddaf9e7d35cbd3c76f37e39737a79c2bf.patch";
2980 sha256 = "sha256-qA9mfYS/VhWwYbB9yu7wbHwozz3cqequ361PxkbAt08=";
2981 includes = [ "test/*" ];
2982 }))
2983 (appendPatch (fetchpatch {
2984 name = "jats:update-for-mathml";
2985 url = "https://github.com/jgm/pandoc/commit/4ba0bac5c118da4da1d44e3bbb38d7c7aef19e3b.patch";
2986 sha256 = "sha256-ayRKeCqYKgZVA826xgAXxGhttm0Gx4ZrIRJlFlXPKhw=";
2987 }))
2988 (appendPatch (fetchpatch {
2989 name = "jats:use-texmath-0.12.10.1";
2990 url = "https://github.com/jgm/pandoc/commit/d3d5366e5197330e035f9f1700929c9b5a24d532.patch";
2991 sha256 = "sha256-skG7LbKl4ypVnEYA9xMtDbUmHrjuXWfuchV8iMn8Yy0=";
2992 includes = [ "test/*" ];
2993 }))
2994 ];
2995
2996 HList = lib.pipe super.HList [
2997 # Fixes syntax error in tests
2998 (appendPatch (fetchpatch {
2999 url = "https://bitbucket.org/HList/hlist/commits/e688f11d7432c812c2b238464401a86f588f81e1/raw";
3000 sha256 = "sha256-XIBIrR2MFmhKaocZJ4p57CgmAaFmMU5Z5a0rk2CjIcM=";
3001 }))
3002
3003 ];
3004
3005 # 2025-04-09: jailbreak to allow hedgehog >= 1.5
3006 hw-int = warnAfterVersion "0.0.2.0" (doJailbreak super.hw-int);
3007
3008 # 2025-04-09: jailbreak to allow tasty-quickcheck >= 0.11
3009 chimera = warnAfterVersion "0.4.1.0" (doJailbreak super.chimera);
3010
3011 # 2025-04-09: jailbreak to allow tasty-quickcheck >= 0.11
3012 bzlib = warnAfterVersion "0.5.2.0" (doJailbreak super.bzlib);
3013
3014 inherit
3015 (lib.mapAttrs (
3016 _: pkg:
3017 lib.pipe pkg [
3018 (addTestToolDepends (
3019 with pkgs;
3020 [
3021 cvc4
3022 cvc5
3023 z3
3024 ]
3025 ))
3026 # 2025-04-09: FIXME: template_tests still failing with:
3027 # fd:9: hPutBuf: resource vanished (Broken pipe)
3028 dontCheck
3029
3030 doDistribute
3031 ]
3032 ) super)
3033 what4
3034 what4_1_7
3035 ;
3036
3037 copilot-theorem = lib.pipe super.copilot-theorem [
3038 (addTestToolDepends (with pkgs; [ z3 ]))
3039 ];
3040
3041 # 2025-04-09: jailbreak to allow mtl >= 2.3, template-haskell >= 2.17, text >= 1.3
3042 egison-pattern-src-th-mode = warnAfterVersion "0.2.1.2" (
3043 doJailbreak super.egison-pattern-src-th-mode
3044 );
3045
3046 # 2025-04-09: jailbreak to allow base >= 4.17, hasql >= 1.6, hasql-transaction-io >= 0.2
3047 hasql-streams-core = warnAfterVersion "0.1.0.0" (doJailbreak super.hasql-streams-core);
3048
3049 # 2025-04-09: jailbreak to allow bytestring >= 0.12, text >= 2.1
3050 pipes-text = warnAfterVersion "1.0.1" (doJailbreak super.pipes-text);
3051
3052 # 2025-04-09: jailbreak to allow bytestring >= 0.12
3053 array-builder = warnAfterVersion "0.1.4.1" (doJailbreak super.array-builder);
3054
3055 # 2025-04-09: missing dependency - somehow it's not listed on hackage
3056 broadcast-chan = addExtraLibrary self.conduit super.broadcast-chan;
3057
3058 # 2025-04-09: jailbreak to allow template-haskell >= 2.21, th-abstraction >= 0.7
3059 kind-generics-th = warnAfterVersion "0.2.3.3" (doJailbreak super.kind-generics-th);
3060
3061 # 2025-04-09: jailbreak to allow tasty >= 1.5
3062 cvss = warnAfterVersion "0.1" (doJailbreak super.cvss);
3063
3064 # 2025-04-09: jailbreak to allow aeson >= 2.2, base >= 4.19, text >= 2.1
3065 ebird-api = warnAfterVersion "0.2.0.0" (doJailbreak super.ebird-api);
3066
3067 # 2025-04-13: jailbreak to allow bytestring >= 0.12
3068 strings = warnAfterVersion "1.1" (doJailbreak super.strings);
3069
3070 # 2025-04-13: jailbreak to allow bytestring >= 0.12
3071 twain = warnAfterVersion "2.2.0.1" (doJailbreak super.twain);
3072
3073 # 2025-04-13: jailbreak to allow hedgehog >= 1.5
3074 hw-bits = warnAfterVersion "0.7.2.2" (doJailbreak super.hw-bits);
3075
3076 # 2025-04-23: jailbreak to allow bytestring >= 0.12
3077 brillo-rendering = warnAfterVersion "1.13.3" (doJailbreak super.brillo-rendering);
3078 brillo-examples = warnAfterVersion "1.13.3" (doJailbreak super.brillo-examples);
3079 brillo-juicy = warnAfterVersion "0.2.4" (doJailbreak super.brillo-juicy);
3080 brillo = warnAfterVersion "1.13.3" (doJailbreak super.brillo);
3081
3082 # Floating point precision issues. Test suite is only checked on x86_64.
3083 # https://github.com/tweag/monad-bayes/issues/368
3084 monad-bayes = dontCheckIf (
3085 let
3086 inherit (pkgs.stdenv) hostPlatform;
3087 in
3088 !hostPlatform.isx86_64
3089 # Presumably because we emulate x86_64-darwin via Rosetta, x86_64-darwin
3090 # also fails on Hydra
3091 || hostPlatform.isDarwin
3092 ) super.monad-bayes;
3093
3094 # 2025-04-13: jailbreak to allow th-abstraction >= 0.7
3095 crucible = warnAfterVersion "0.7.2" (
3096 doJailbreak (
3097 super.crucible.override {
3098 what4 = self.what4_1_7;
3099 }
3100 )
3101 );
3102
3103 crucible-llvm = super.crucible-llvm.override {
3104 what4 = self.what4_1_7;
3105 };
3106
3107 # Test suite invokes cabal-install in a way incompatible with our generic builder
3108 # (i.e. tries to re-use the ghc package db / environment from dist-newstyle).
3109 sensei = dontCheck super.sensei;
3110
3111 crux = super.crux.override {
3112 simple-get-opt = self.simple-get-opt_0_4;
3113 };
3114
3115 # 2025-04-23: jailbreak to allow megaparsec >= 9.7
3116 # 2025-04-23: test data missing from tarball
3117 crucible-syntax = doJailbreak (dontCheck super.crucible-syntax);
3118 # 2025-04-23: missing test data
3119 crucible-debug = overrideCabal (drv: {
3120 testFlags = drv.testFlags or [ ] ++ [
3121 "-p"
3122 (lib.concatStringsSep "&&" [
3123 "!/backtrace.txt/"
3124 "!/block.txt/"
3125 "!/call-basic.txt/"
3126 "!/clear.txt/"
3127 "!/frame.txt/"
3128 "!/load-empty.txt/"
3129 "!/obligation-false.txt/"
3130 "!/prove-false.txt/"
3131 "!/prove-true.txt/"
3132 "!/test-data\\/.break.txt/"
3133 "!/test-data\\/.reg.txt/"
3134 "!/test-data\\/.reg.txt/"
3135 "!/test-data\\/.trace.txt/"
3136 "!/test-data\\/complete\\/.break.txt/"
3137 ])
3138 ];
3139 }) super.crucible-debug;
3140 # 2025-04-23: missing test data
3141 llvm-pretty-bc-parser = dontCheck super.llvm-pretty-bc-parser;
3142
3143 # 2025-04-23: Allow bytestring >= 0.12
3144 # https://github.com/mrkkrp/wave/issues/48
3145 wave = doJailbreak super.wave;
3146
3147 # 2025-04-23: disable bounds microlens <0.5, QuickCheck < 2.16
3148 # https://github.com/debug-ito/wild-bind/issues/7
3149 wild-bind = doJailbreak super.wild-bind;
3150
3151 # Test suite no longer compiles with hspec-hedgehog >= 0.3
3152 finitary = dontCheck super.finitary;
3153
3154 # 2025-04-13: jailbreak to allow bytestring >= 0.12, text >= 2.1
3155 ktx-codec = warnAfterVersion "0.0.2.1" (doJailbreak super.ktx-codec);
3156
3157 # 2025-04-13: jailbreak to allow template-haskell >= 2.17
3158 sr-extra = warnAfterVersion "1.88" (
3159 overrideCabal (drv: {
3160 version = "1.88-unstable-2025-03-30";
3161 # includes https://github.com/seereason/sr-extra/pull/7
3162 src = pkgs.fetchFromGitHub {
3163 owner = "seereason";
3164 repo = "sr-extra";
3165 rev = "2b18ced8d07aa8832168971842b20ea49369e4f0";
3166 hash = "sha256-jInfHA1xkLjx5PfsgQVzeQIN3OjTUpEz7dpVNOGNo3g=";
3167 };
3168 editedCabalFile = null;
3169 revision = null;
3170 }) super.sr-extra
3171 );
3172
3173 # Too strict bounds on base <4.19 and tasty <1.5
3174 # https://github.com/maoe/ghc-prof/issues/25
3175 ghc-prof = doJailbreak super.ghc-prof;
3176 # aeson <2.2, bytestring <0.12, text <2.1
3177 # https://github.com/jaspervdj/profiteur/issues/43
3178 profiteur = doJailbreak super.profiteur;
3179
3180 # 2025-04-19: Tests randomly fail 6 out of 10 times
3181 coinor-clp = dontCheck super.coinor-clp;
3182
3183 # 2025-04-19: Tests randomly fail 5 out of 10 times
3184 fft = dontCheck super.fft;
3185
3186 # 2025-5-15: Too strict bounds on base <4.19, see: https://github.com/zachjs/sv2v/issues/317
3187 sv2v = doJailbreak super.sv2v;
3188
3189 # 2025-06-25: Upper bounds of transformers and bytestring too strict,
3190 # as haskore 0.2.0.8 was released in 2016 and is quite outdated.
3191 # Tests fail with:
3192 # ### Error in: 11:comparison with MIDI files generated by former Haskore versions:23:Ssf:1
3193 # src/Test/MIDI/Ssf.mid: openBinaryFile: does not exist (No such file or directory)
3194 # Necessary files aren't listed in extra-source-files in the cabal file
3195 # and therefore aren't uploaded to hackage
3196 # Needs to be fixed upstream
3197 haskore = dontCheck (doJailbreak super.haskore);
3198
3199 # 2025-08-01: Fixes few build errors related to pointers.
3200 # https://github.com/haskell-cryptography/botan/pull/17
3201 botan-bindings = appendPatch (pkgs.fetchpatch2 {
3202 url = "https://github.com/haskell-cryptography/botan/commit/99de68c3938187b7ab740c6534ec032a4a236747.patch";
3203 sha256 = "sha256-v255WFO9HsRuTAWFZG27TYbpoK7rJ1AuiCFNFIV18mI=";
3204 stripLen = 1;
3205 }) super.botan-bindings;
3206
3207 # 2025-08-04: Disable failing testcases. It would feel bad to disable all the
3208 # checks in a cryptography related package.
3209 botan-low = overrideCabal (drv: {
3210 testFlags =
3211 drv.testFlags or [ ]
3212 ++ (lib.concatMap (x: [ "--skip" ] ++ [ x ]) [
3213 # botan-low-cipher-tests
3214 "/AES-128/SIV/can incrementally / online encipher a message/"
3215 "/AES-128/SIV/can incrementally / online decipher a message/"
3216 "/AES-128/SIV/has parity between online and offline/"
3217 "/AES-192/SIV/can incrementally / online encipher a message/"
3218 "/AES-192/SIV/can incrementally / online decipher a message/"
3219 "/AES-192/SIV/has parity between online and offline/"
3220 "/AES-256/SIV/can incrementally / online encipher a message/"
3221 "/AES-256/SIV/can incrementally / online decipher a message/"
3222 "/AES-256/SIV/has parity between online and offline/"
3223 "/ARIA-128/SIV/can incrementally / online encipher a message/"
3224 "/ARIA-128/SIV/can incrementally / online decipher a message/"
3225 "/ARIA-128/SIV/has parity between online and offline/"
3226 "/ARIA-192/SIV/can incrementally / online encipher a message/"
3227 "/ARIA-192/SIV/can incrementally / online decipher a message/"
3228 "/ARIA-192/SIV/has parity between online and offline/"
3229 "/ARIA-256/SIV/can incrementally / online encipher a message/"
3230 "/ARIA-256/SIV/can incrementally / online decipher a message/"
3231 "/ARIA-256/SIV/has parity between online and offline/"
3232 "/Camellia-128/SIV/can incrementally / online encipher a message/"
3233 "/Camellia-128/SIV/can incrementally / online decipher a message/"
3234 "/Camellia-128/SIV/has parity between online and offline/"
3235 "/Camellia-192/SIV/can incrementally / online encipher a message/"
3236 "/Camellia-192/SIV/can incrementally / online decipher a message/"
3237 "/Camellia-192/SIV/has parity between online and offline/"
3238 "/Camellia-256/SIV/can incrementally / online encipher a message/"
3239 "/Camellia-256/SIV/can incrementally / online decipher a message/"
3240 "/Camellia-256/SIV/has parity between online and offline/"
3241 "/Noekeon/SIV/can incrementally / online encipher a message/"
3242 "/Noekeon/SIV/can incrementally / online decipher a message/"
3243 "/Noekeon/SIV/has parity between online and offline/"
3244 "/SEED/SIV/can incrementally / online encipher a message/"
3245 "/SEED/SIV/can incrementally / online decipher a message/"
3246 "/SEED/SIV/has parity between online and offline/"
3247 "/SM4/SIV/can incrementally / online encipher a message/"
3248 "/SM4/SIV/can incrementally / online decipher a message/"
3249 "/SM4/SIV/has parity between online and offline/"
3250 "/Serpent/SIV/can incrementally / online encipher a message/"
3251 "/Serpent/SIV/can incrementally / online decipher a message/"
3252 "/Serpent/SIV/has parity between online and offline/"
3253 "/Twofish/SIV/can incrementally / online encipher a message/"
3254 "/Twofish/SIV/can incrementally / online decipher a message/"
3255 "/Twofish/SIV/has parity between online and offline/"
3256 "/AES-128/CCM/can incrementally / online encipher a message/"
3257 "/AES-128/CCM/can incrementally / online decipher a message/"
3258 "/AES-128/CCM/has parity between online and offline/"
3259 "/AES-192/CCM/can incrementally / online encipher a message/"
3260 "/AES-192/CCM/can incrementally / online decipher a message/"
3261 "/AES-192/CCM/has parity between online and offline/"
3262 "/AES-256/CCM/can incrementally / online encipher a message/"
3263 "/AES-256/CCM/can incrementally / online decipher a message/"
3264 "/AES-256/CCM/has parity between online and offline/"
3265 "/ARIA-128/CCM/can incrementally / online encipher a message/"
3266 "/ARIA-128/CCM/can incrementally / online decipher a message/"
3267 "/ARIA-128/CCM/has parity between online and offline/"
3268 "/ARIA-192/CCM/can incrementally / online encipher a message/"
3269 "/ARIA-192/CCM/can incrementally / online decipher a message/"
3270 "/ARIA-192/CCM/has parity between online and offline/"
3271 "/ARIA-256/CCM/can incrementally / online encipher a message/"
3272 "/ARIA-256/CCM/can incrementally / online decipher a message/"
3273 "/ARIA-256/CCM/has parity between online and offline/"
3274 "/Camellia-128/CCM/can incrementally / online encipher a message/"
3275 "/Camellia-128/CCM/can incrementally / online decipher a message/"
3276 "/Camellia-128/CCM/has parity between online and offline/"
3277 "/Camellia-192/CCM/can incrementally / online encipher a message/"
3278 "/Camellia-192/CCM/can incrementally / online decipher a message/"
3279 "/Camellia-192/CCM/has parity between online and offline/"
3280 "/Camellia-256/CCM/can incrementally / online encipher a message/"
3281 "/Camellia-256/CCM/can incrementally / online decipher a message/"
3282 "/Camellia-256/CCM/has parity between online and offline/"
3283 "/Noekeon/CCM/can incrementally / online encipher a message/"
3284 "/Noekeon/CCM/can incrementally / online decipher a message/"
3285 "/Noekeon/CCM/has parity between online and offline/"
3286 "/SEED/CCM/can incrementally / online encipher a message/"
3287 "/SEED/CCM/can incrementally / online decipher a message/"
3288 "/SEED/CCM/has parity between online and offline/"
3289 "/SM4/CCM/can incrementally / online encipher a message/"
3290 "/SM4/CCM/can incrementally / online decipher a message/"
3291 "/SM4/CCM/has parity between online and offline/"
3292 "/Serpent/CCM/can incrementally / online encipher a message/"
3293 "/Serpent/CCM/can incrementally / online decipher a message/"
3294 "/Serpent/CCM/has parity between online and offline/"
3295 "/Twofish/CCM/can incrementally / online encipher a message/"
3296 "/Twofish/CCM/can incrementally / online decipher a message/"
3297 "/Twofish/CCM/has parity between online and offline/"
3298 # botan-low-mpi-tests
3299 "/can compute the modular inverse/"
3300 # botan-low-pubkey-dsa-tests
3301 "/modp/srp/1024/privKeyLoadDSA/"
3302 "/modp/srp/1024/pubKeyLoadDSA/"
3303 "/modp/srp/1536/privKeyLoadDSA/"
3304 "/modp/srp/1536/pubKeyLoadDSA/"
3305 "/modp/srp/2048/privKeyLoadDSA/"
3306 "/modp/srp/2048/pubKeyLoadDSA/"
3307 "/modp/srp/3072/privKeyLoadDSA/"
3308 "/modp/srp/3072/pubKeyLoadDSA/"
3309 "/modp/srp/4096/privKeyLoadDSA/"
3310 "/modp/srp/4096/pubKeyLoadDSA/"
3311 "/modp/srp/6144/privKeyLoadDSA/"
3312 "/modp/srp/6144/pubKeyLoadDSA/"
3313 "/modp/srp/8192/privKeyLoadDSA/"
3314 "/modp/srp/8192/pubKeyLoadDSA/"
3315 # botan-low-pubkey-decrypt-tests
3316 "/SM2 sm2p256v1 SHA-256/decrypt/"
3317 # botan-low-pubkey-encrypt-tests
3318 "/SM2 sm2p256v1 SHA-256/encrypt/"
3319 # botan-low-pwdhash-tests
3320 "/Scrypt/pwdhashTimed/"
3321 # botan-low-srp6-tests
3322 "/ffdhe/ietf/2048/can negotiate a shared secret/"
3323 "/ffdhe/ietf/3072/can negotiate a shared secret/"
3324 "/ffdhe/ietf/4096/can negotiate a shared secret/"
3325 "/ffdhe/ietf/6144/can negotiate a shared secret/"
3326 "/ffdhe/ietf/8192/can negotiate a shared secret/"
3327 "/modp/ietf/1024/can negotiate a shared secret/"
3328 "/modp/ietf/1536/can negotiate a shared secret/"
3329 "/modp/ietf/2048/can negotiate a shared secret/"
3330 "/modp/ietf/3072/can negotiate a shared secret/"
3331 "/modp/ietf/4096/can negotiate a shared secret/"
3332 "/modp/ietf/6144/can negotiate a shared secret/"
3333 "/modp/ietf/8192/can negotiate a shared secret/"
3334 "/modp/srp/1024/can negotiate a shared secret/"
3335 "/modp/srp/1536/can negotiate a shared secret/"
3336 "/modp/srp/2048/can negotiate a shared secret/"
3337 "/modp/srp/3072/can negotiate a shared secret/"
3338 "/modp/srp/4096/can negotiate a shared secret/"
3339 "/modp/srp/6144/can negotiate a shared secret/"
3340 "/modp/srp/8192/can negotiate a shared secret/"
3341 "/dsa/jce/1024/can negotiate a shared secret/"
3342 "/dsa/botan/2048/can negotiate a shared secret/"
3343 "/dsa/botan/3072/can negotiate a shared secret/"
3344 ]);
3345 }) super.botan-low;
3346}
3347// import ./configuration-tensorflow.nix { inherit pkgs haskellLib; } self super
3348
3349# Amazonka Packages
3350# 2025-01-24: use latest source files from github, as the hackage release is outdated, https://github.com/brendanhay/amazonka/issues/1001
3351// (
3352 let
3353 amazonkaSrc = pkgs.fetchFromGitHub {
3354 owner = "brendanhay";
3355 repo = "amazonka";
3356 rev = "f3a7fca02fdbb832cc348e991983b1465225d50c";
3357 sha256 = "sha256-u+R+4WeCd16X8H2dkDHzD3nOLsvsTB0lLNUsbRT23aE=";
3358 };
3359 setAmazonkaSourceRoot =
3360 dir: drv:
3361 (overrideSrc {
3362 version = "2.0";
3363 src = amazonkaSrc + "/${dir}";
3364 })
3365 drv;
3366 # To get the list of amazonka services run:
3367 # > nix eval --impure --expr 'builtins.attrNames (import ./. {}).haskellPackages' --json | jq '.[]' | grep '^"amazonka'
3368 # NB: we exclude amazonka-test and amazonka-s3-streaming
3369 amazonkaServices = [
3370 "amazonka"
3371 "amazonka-accessanalyzer"
3372 "amazonka-account"
3373 "amazonka-alexa-business"
3374 "amazonka-amp"
3375 "amazonka-amplify"
3376 "amazonka-amplifybackend"
3377 "amazonka-amplifyuibuilder"
3378 "amazonka-apigateway"
3379 "amazonka-apigatewaymanagementapi"
3380 "amazonka-apigatewayv2"
3381 "amazonka-appconfig"
3382 "amazonka-appconfigdata"
3383 "amazonka-appflow"
3384 "amazonka-appintegrations"
3385 "amazonka-application-autoscaling"
3386 "amazonka-application-insights"
3387 "amazonka-applicationcostprofiler"
3388 "amazonka-appmesh"
3389 "amazonka-apprunner"
3390 "amazonka-appstream"
3391 "amazonka-appsync"
3392 "amazonka-arc-zonal-shift"
3393 "amazonka-athena"
3394 "amazonka-auditmanager"
3395 "amazonka-autoscaling"
3396 "amazonka-autoscaling-plans"
3397 "amazonka-backup"
3398 "amazonka-backup-gateway"
3399 "amazonka-backupstorage"
3400 "amazonka-batch"
3401 "amazonka-billingconductor"
3402 "amazonka-braket"
3403 "amazonka-budgets"
3404 "amazonka-certificatemanager"
3405 "amazonka-certificatemanager-pca"
3406 "amazonka-chime"
3407 "amazonka-chime-sdk-identity"
3408 "amazonka-chime-sdk-media-pipelines"
3409 "amazonka-chime-sdk-meetings"
3410 "amazonka-chime-sdk-messaging"
3411 "amazonka-chime-sdk-voice"
3412 "amazonka-cloud9"
3413 "amazonka-cloudcontrol"
3414 "amazonka-clouddirectory"
3415 "amazonka-cloudformation"
3416 "amazonka-cloudfront"
3417 "amazonka-cloudhsm"
3418 "amazonka-cloudhsmv2"
3419 "amazonka-cloudsearch"
3420 "amazonka-cloudsearch-domains"
3421 "amazonka-cloudtrail"
3422 "amazonka-cloudwatch"
3423 "amazonka-cloudwatch-events"
3424 "amazonka-cloudwatch-logs"
3425 "amazonka-codeartifact"
3426 "amazonka-codebuild"
3427 "amazonka-codecommit"
3428 "amazonka-codedeploy"
3429 "amazonka-codeguru-reviewer"
3430 "amazonka-codeguruprofiler"
3431 "amazonka-codepipeline"
3432 "amazonka-codestar"
3433 "amazonka-codestar-connections"
3434 "amazonka-codestar-notifications"
3435 "amazonka-cognito-identity"
3436 "amazonka-cognito-idp"
3437 "amazonka-cognito-sync"
3438 "amazonka-comprehend"
3439 "amazonka-comprehendmedical"
3440 "amazonka-compute-optimizer"
3441 "amazonka-config"
3442 "amazonka-connect"
3443 "amazonka-connect-contact-lens"
3444 "amazonka-connectcampaigns"
3445 "amazonka-connectcases"
3446 "amazonka-connectparticipant"
3447 "amazonka-contrib-rds-utils"
3448 "amazonka-controltower"
3449 "amazonka-core"
3450 "amazonka-cost-explorer"
3451 "amazonka-cur"
3452 "amazonka-customer-profiles"
3453 "amazonka-databrew"
3454 "amazonka-dataexchange"
3455 "amazonka-datapipeline"
3456 "amazonka-datasync"
3457 "amazonka-detective"
3458 "amazonka-devicefarm"
3459 "amazonka-devops-guru"
3460 "amazonka-directconnect"
3461 "amazonka-discovery"
3462 "amazonka-dlm"
3463 "amazonka-dms"
3464 "amazonka-docdb"
3465 "amazonka-docdb-elastic"
3466 "amazonka-drs"
3467 "amazonka-ds"
3468 "amazonka-dynamodb"
3469 "amazonka-dynamodb-dax"
3470 "amazonka-dynamodb-streams"
3471 "amazonka-ebs"
3472 "amazonka-ec2"
3473 "amazonka-ec2-instance-connect"
3474 "amazonka-ecr"
3475 "amazonka-ecr-public"
3476 "amazonka-ecs"
3477 "amazonka-efs"
3478 "amazonka-eks"
3479 "amazonka-elastic-inference"
3480 "amazonka-elasticache"
3481 "amazonka-elasticbeanstalk"
3482 "amazonka-elasticsearch"
3483 "amazonka-elastictranscoder"
3484 "amazonka-elb"
3485 "amazonka-elbv2"
3486 "amazonka-emr"
3487 "amazonka-emr-containers"
3488 "amazonka-emr-serverless"
3489 "amazonka-evidently"
3490 "amazonka-finspace"
3491 "amazonka-finspace-data"
3492 "amazonka-fis"
3493 "amazonka-fms"
3494 "amazonka-forecast"
3495 "amazonka-forecastquery"
3496 "amazonka-frauddetector"
3497 "amazonka-fsx"
3498 "amazonka-gamelift"
3499 "amazonka-gamesparks"
3500 "amazonka-glacier"
3501 "amazonka-globalaccelerator"
3502 "amazonka-glue"
3503 "amazonka-grafana"
3504 "amazonka-greengrass"
3505 "amazonka-greengrassv2"
3506 "amazonka-groundstation"
3507 "amazonka-guardduty"
3508 "amazonka-health"
3509 "amazonka-healthlake"
3510 "amazonka-honeycode"
3511 "amazonka-iam"
3512 "amazonka-iam-policy"
3513 "amazonka-identitystore"
3514 "amazonka-imagebuilder"
3515 "amazonka-importexport"
3516 "amazonka-inspector"
3517 "amazonka-inspector2"
3518 "amazonka-iot"
3519 "amazonka-iot-analytics"
3520 "amazonka-iot-dataplane"
3521 "amazonka-iot-jobs-dataplane"
3522 "amazonka-iot-roborunner"
3523 "amazonka-iot1click-devices"
3524 "amazonka-iot1click-projects"
3525 "amazonka-iotdeviceadvisor"
3526 "amazonka-iotevents"
3527 "amazonka-iotevents-data"
3528 "amazonka-iotfleethub"
3529 "amazonka-iotfleetwise"
3530 "amazonka-iotsecuretunneling"
3531 "amazonka-iotsitewise"
3532 "amazonka-iotthingsgraph"
3533 "amazonka-iottwinmaker"
3534 "amazonka-iotwireless"
3535 "amazonka-ivs"
3536 "amazonka-ivschat"
3537 "amazonka-kafka"
3538 "amazonka-kafkaconnect"
3539 "amazonka-kendra"
3540 "amazonka-keyspaces"
3541 "amazonka-kinesis"
3542 "amazonka-kinesis-analytics"
3543 "amazonka-kinesis-firehose"
3544 "amazonka-kinesis-video"
3545 "amazonka-kinesis-video-archived-media"
3546 "amazonka-kinesis-video-media"
3547 "amazonka-kinesis-video-signaling"
3548 "amazonka-kinesis-video-webrtc-storage"
3549 "amazonka-kinesisanalyticsv2"
3550 "amazonka-kms"
3551 "amazonka-lakeformation"
3552 "amazonka-lambda"
3553 "amazonka-lex-models"
3554 "amazonka-lex-runtime"
3555 "amazonka-lexv2-models"
3556 "amazonka-license-manager"
3557 "amazonka-license-manager-linux-subscriptions"
3558 "amazonka-license-manager-user-subscriptions"
3559 "amazonka-lightsail"
3560 "amazonka-location"
3561 "amazonka-lookoutequipment"
3562 "amazonka-lookoutmetrics"
3563 "amazonka-lookoutvision"
3564 "amazonka-m2"
3565 "amazonka-macie"
3566 "amazonka-maciev2"
3567 "amazonka-managedblockchain"
3568 "amazonka-marketplace-analytics"
3569 "amazonka-marketplace-catalog"
3570 "amazonka-marketplace-entitlement"
3571 "amazonka-marketplace-metering"
3572 "amazonka-mechanicalturk"
3573 "amazonka-mediaconnect"
3574 "amazonka-mediaconvert"
3575 "amazonka-medialive"
3576 "amazonka-mediapackage"
3577 "amazonka-mediapackage-vod"
3578 "amazonka-mediastore"
3579 "amazonka-mediastore-dataplane"
3580 "amazonka-mediatailor"
3581 "amazonka-memorydb"
3582 "amazonka-mgn"
3583 "amazonka-migration-hub-refactor-spaces"
3584 "amazonka-migrationhub"
3585 "amazonka-migrationhub-config"
3586 "amazonka-migrationhuborchestrator"
3587 "amazonka-migrationhubstrategy"
3588 "amazonka-ml"
3589 "amazonka-mobile"
3590 "amazonka-mq"
3591 "amazonka-mtl"
3592 "amazonka-mwaa"
3593 "amazonka-neptune"
3594 "amazonka-network-firewall"
3595 "amazonka-networkmanager"
3596 "amazonka-nimble"
3597 "amazonka-oam"
3598 "amazonka-omics"
3599 "amazonka-opensearch"
3600 "amazonka-opensearchserverless"
3601 "amazonka-opsworks"
3602 "amazonka-opsworks-cm"
3603 "amazonka-organizations"
3604 "amazonka-outposts"
3605 "amazonka-panorama"
3606 "amazonka-personalize"
3607 "amazonka-personalize-events"
3608 "amazonka-personalize-runtime"
3609 "amazonka-pi"
3610 "amazonka-pinpoint"
3611 "amazonka-pinpoint-email"
3612 "amazonka-pinpoint-sms-voice"
3613 "amazonka-pinpoint-sms-voice-v2"
3614 "amazonka-pipes"
3615 "amazonka-polly"
3616 "amazonka-pricing"
3617 "amazonka-privatenetworks"
3618 "amazonka-proton"
3619 "amazonka-qldb"
3620 "amazonka-qldb-session"
3621 "amazonka-quicksight"
3622 "amazonka-ram"
3623 "amazonka-rbin"
3624 "amazonka-rds"
3625 "amazonka-rds-data"
3626 "amazonka-redshift"
3627 "amazonka-redshift-data"
3628 "amazonka-redshift-serverless"
3629 "amazonka-rekognition"
3630 "amazonka-resiliencehub"
3631 "amazonka-resource-explorer-v2"
3632 "amazonka-resourcegroups"
3633 "amazonka-resourcegroupstagging"
3634 "amazonka-robomaker"
3635 "amazonka-rolesanywhere"
3636 "amazonka-route53"
3637 "amazonka-route53-autonaming"
3638 "amazonka-route53-domains"
3639 "amazonka-route53-recovery-cluster"
3640 "amazonka-route53-recovery-control-config"
3641 "amazonka-route53-recovery-readiness"
3642 "amazonka-route53resolver"
3643 "amazonka-rum"
3644 "amazonka-s3"
3645 "amazonka-s3-encryption"
3646 #"amazonka-s3-streaming"
3647 "amazonka-s3outposts"
3648 "amazonka-sagemaker"
3649 "amazonka-sagemaker-a2i-runtime"
3650 "amazonka-sagemaker-edge"
3651 "amazonka-sagemaker-featurestore-runtime"
3652 "amazonka-sagemaker-geospatial"
3653 "amazonka-sagemaker-metrics"
3654 "amazonka-sagemaker-runtime"
3655 "amazonka-savingsplans"
3656 "amazonka-scheduler"
3657 "amazonka-schemas"
3658 "amazonka-sdb"
3659 "amazonka-secretsmanager"
3660 "amazonka-securityhub"
3661 "amazonka-securitylake"
3662 "amazonka-serverlessrepo"
3663 "amazonka-service-quotas"
3664 "amazonka-servicecatalog"
3665 "amazonka-servicecatalog-appregistry"
3666 "amazonka-ses"
3667 "amazonka-sesv2"
3668 "amazonka-shield"
3669 "amazonka-signer"
3670 "amazonka-simspaceweaver"
3671 "amazonka-sms"
3672 "amazonka-sms-voice"
3673 "amazonka-snow-device-management"
3674 "amazonka-snowball"
3675 "amazonka-sns"
3676 "amazonka-sqs"
3677 "amazonka-ssm"
3678 "amazonka-ssm-contacts"
3679 "amazonka-ssm-incidents"
3680 "amazonka-ssm-sap"
3681 "amazonka-sso"
3682 "amazonka-sso-admin"
3683 "amazonka-sso-oidc"
3684 "amazonka-stepfunctions"
3685 "amazonka-storagegateway"
3686 "amazonka-sts"
3687 "amazonka-support"
3688 "amazonka-support-app"
3689 "amazonka-swf"
3690 "amazonka-synthetics"
3691 #"amazonka-test"
3692 "amazonka-textract"
3693 "amazonka-timestream-query"
3694 "amazonka-timestream-write"
3695 "amazonka-transcribe"
3696 "amazonka-transfer"
3697 "amazonka-translate"
3698 "amazonka-voice-id"
3699 "amazonka-waf"
3700 "amazonka-waf-regional"
3701 "amazonka-wafv2"
3702 "amazonka-wellarchitected"
3703 "amazonka-wisdom"
3704 "amazonka-workdocs"
3705 "amazonka-worklink"
3706 "amazonka-workmail"
3707 "amazonka-workmailmessageflow"
3708 "amazonka-workspaces"
3709 "amazonka-workspaces-web"
3710 "amazonka-xray"
3711 ];
3712 amazonkaServiceOverrides = (
3713 lib.genAttrs amazonkaServices (
3714 name:
3715 lib.pipe super.${name} [
3716 (setAmazonkaSourceRoot "lib/services/${name}")
3717 (x: x)
3718 ]
3719 )
3720 );
3721 in
3722 amazonkaServiceOverrides
3723 // {
3724 amazonka-core = lib.pipe super.amazonka-core [
3725 (warnAfterVersion "2.0")
3726 (setAmazonkaSourceRoot "lib/amazonka-core")
3727 (addBuildDepends [
3728 self.microlens
3729 self.microlens-contra
3730 self.microlens-pro
3731 ])
3732 ];
3733 amazonka = warnAfterVersion "2.0" (
3734 setAmazonkaSourceRoot "lib/amazonka" (doJailbreak super.amazonka)
3735 );
3736 }
3737)