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
14let
15 inherit (pkgs) fetchpatch lib;
16 inherit (lib) throwIfNot versionOlder;
17in
18
19with haskellLib;
20
21self: super: {
22
23 # There are numerical tests on random data, that may fail occasionally
24 lapack = dontCheck super.lapack;
25
26 # fix tests failure for base≥4.15 (https://github.com/kim/leveldb-haskell/pull/41)
27 leveldb-haskell = appendPatch (fetchpatch {
28 url = "https://github.com/kim/leveldb-haskell/commit/f5249081f589233890ddb1945ec548ca9fb717cf.patch";
29 sha256 = "14gllipl28lqry73c5dnclsskzk1bsrrgazibl4lkl8z98j2csjb";
30 }) super.leveldb-haskell;
31
32 # Arion's test suite needs a Nixpkgs, which is cumbersome to do from Nixpkgs
33 # itself. For instance, pkgs.path has dirty sources and puts a huge .git in the
34 # store. Testing is done upstream.
35 arion-compose = dontCheck super.arion-compose;
36
37 # This used to be a core package provided by GHC, but then the compiler
38 # dropped it. We define the name here to make sure that old packages which
39 # depend on this library still evaluate (even though they won't compile
40 # successfully with recent versions of the compiler).
41 bin-package-db = null;
42
43 # waiting for release: https://github.com/jwiegley/c2hsc/issues/41
44 c2hsc = appendPatch (fetchpatch {
45 url = "https://github.com/jwiegley/c2hsc/commit/490ecab202e0de7fc995eedf744ad3cb408b53cc.patch";
46 sha256 = "1c7knpvxr7p8c159jkyk6w29653z5yzgjjqj11130bbb8mk9qhq7";
47 }) super.c2hsc;
48
49 # Some Hackage packages reference this attribute, which exists only in the
50 # GHCJS package set. We provide a dummy version here to fix potential
51 # evaluation errors.
52 ghcjs-base = null;
53 ghcjs-prim = null;
54
55 # Needs older QuickCheck version
56 attoparsec-varword = dontCheck super.attoparsec-varword;
57
58 # These packages (and their reverse deps) cannot be built with profiling enabled.
59 ghc-heap-view = disableLibraryProfiling super.ghc-heap-view;
60 ghc-datasize = disableLibraryProfiling super.ghc-datasize;
61 ghc-vis = disableLibraryProfiling super.ghc-vis;
62
63 # The latest release on hackage has an upper bound on containers which
64 # breaks the build, though it works with the version of containers present
65 # and the upper bound doesn't exist in code anymore:
66 # > https://github.com/roelvandijk/numerals
67 numerals = doJailbreak (dontCheck super.numerals);
68
69 # Waiting on a release with the following for bumping base and
70 # attoparsec upper bounds:
71 # > https://github.com/snapframework/io-streams-haproxy/pull/21
72 # > https://github.com/snapframework/io-streams-haproxy/pull/24
73 io-streams-haproxy = doJailbreak super.io-streams-haproxy;
74
75 # xmlhtml's test suite depends on hspec with an invalid boundry range for
76 # the version we currently track, even though the upper bound is relaxed on
77 # github it doesn't have a release yet; though there's an MR preparing the
78 # next release:
79 # > https://github.com/snapframework/xmlhtml/pull/40
80 # Once that's out we can re-enable version checks.
81 xmlhtml = doJailbreak super.xmlhtml;
82
83 # map-syntax has a restrictive upper bound on base, can be removed once
84 # > https://github.com/mightybyte/map-syntax/pull/14
85 # is released.
86 map-syntax = doJailbreak super.map-syntax;
87
88 # This test keeps being aborted because it runs too quietly for too long
89 Lazy-Pbkdf2 = if pkgs.stdenv.isi686 then dontCheck super.Lazy-Pbkdf2 else super.Lazy-Pbkdf2;
90
91 # check requires mysql server
92 mysql-simple = dontCheck super.mysql-simple;
93 mysql-haskell = dontCheck super.mysql-haskell;
94
95 # The Hackage tarball is purposefully broken, because it's not intended to be, like, useful.
96 # https://git-annex.branchable.com/bugs/bash_completion_file_is_missing_in_the_6.20160527_tarball_on_hackage/
97 git-annex = overrideCabal (drv: {
98 src = pkgs.fetchgit {
99 name = "git-annex-${super.git-annex.version}-src";
100 url = "git://git-annex.branchable.com/";
101 rev = "refs/tags/" + super.git-annex.version;
102 sha256 = "0p9qd7yasdji5kwxn4d0hrv9hnxbzfsczknldh8jav3ynhg8k6c9";
103 # delete android and Android directories which cause issues on
104 # darwin (case insensitive directory). Since we don't need them
105 # during the build process, we can delete it to prevent a hash
106 # mismatch on darwin.
107 postFetch = ''
108 rm -r $out/doc/?ndroid*
109 '';
110 };
111
112 # Git annex provides a restricted login shell. Setting
113 # passthru.shellPath here allows a user's login shell to be set to
114 # `git-annex-shell` by making `shell = haskellPackages.git-annex`.
115 # https://git-annex.branchable.com/git-annex-shell/
116 passthru.shellPath = "/bin/git-annex-shell";
117 }) super.git-annex;
118
119 # Fix test trying to access /home directory
120 shell-conduit = overrideCabal (drv: {
121 postPatch = "sed -i s/home/tmp/ test/Spec.hs";
122 }) super.shell-conduit;
123
124 # https://github.com/froozen/kademlia/issues/2
125 kademlia = dontCheck super.kademlia;
126
127 # https://github.com/haskell-game/dear-imgui.hs/issues/116
128 dear-imgui = doJailbreak super.dear-imgui;
129
130 # Tests require older versions of tasty.
131 hzk = dontCheck super.hzk;
132 resolv = doJailbreak super.resolv;
133 tdigest = doJailbreak super.tdigest;
134 text-short = doJailbreak super.text-short;
135 tree-diff = doJailbreak super.tree-diff;
136 zinza = doJailbreak super.zinza;
137
138 # Too strict upper bound on base, no upstream issue tracker nor repository
139 mmsyn5 = doJailbreak super.mmsyn5;
140
141 # Tests require a Kafka broker running locally
142 haskakafka = dontCheck super.haskakafka;
143
144 bindings-levmar = overrideCabal (drv: {
145 extraLibraries = [ pkgs.blas ];
146 }) super.bindings-levmar;
147
148 # Requires wrapQtAppsHook
149 qtah-cpp-qt5 = overrideCabal (drv: {
150 buildDepends = [ pkgs.qt5.wrapQtAppsHook ];
151 }) super.qtah-cpp-qt5;
152
153 # The Haddock phase fails for one reason or another.
154 deepseq-magic = dontHaddock super.deepseq-magic;
155 feldspar-signal = dontHaddock super.feldspar-signal; # https://github.com/markus-git/feldspar-signal/issues/1
156 hoodle-core = dontHaddock super.hoodle-core;
157 hsc3-db = dontHaddock super.hsc3-db;
158
159 # Pick patch from master for GHC 9.0 support
160 flat = assert versionOlder super.flat.version "0.5"; appendPatches [
161 (fetchpatch {
162 name = "flat-ghc-9.0.patch";
163 url = "https://github.com/Quid2/flat/commit/d32c2c0c0c3c38c41177684ade9febe92d279b06.patch";
164 sha256 = "0ay0c53jpjmnnh7ylfpzpxqkhs1vq9jdwm9f84d40r88ki8hls8g";
165 })
166 ] super.flat;
167
168 # Too strict bounds on base, optparse-applicative: https://github.com/edsko/friendly/issues/5
169 friendly = doJailbreak super.friendly;
170
171 # Too strict bound on hspec: https://github.com/ivan-m/graphviz/issues/55
172 graphviz = doJailbreak super.graphviz;
173
174 # https://github.com/techtangents/ablist/issues/1
175 ABList = dontCheck super.ABList;
176
177 # sse2 flag due to https://github.com/haskell/vector/issues/47.
178 # Jailbreak is necessary for QuickCheck dependency.
179 vector = doJailbreak (if pkgs.stdenv.isi686 then appendConfigureFlag "--ghc-options=-msse2" super.vector else super.vector);
180
181 inline-c-cpp = overrideCabal (drv: {
182 patches = drv.patches or [] ++ [
183 (fetchpatch {
184 # awaiting release >0.5.0.0
185 url = "https://github.com/fpco/inline-c/commit/e176b8e8c3c94e7d8289a8b7cc4ce8e737741730.patch";
186 name = "inline-c-cpp-pr-132-1.patch";
187 sha256 = "sha256-CdZXAT3Ar4KKDGyAUu8A7hzddKe5/AuMKoZSjt3o0UE=";
188 stripLen = 1;
189 })
190 ];
191 postPatch = (drv.postPatch or "") + ''
192 substituteInPlace inline-c-cpp.cabal --replace "-optc-std=c++11" ""
193 '';
194 }) super.inline-c-cpp;
195
196 inline-java = addBuildDepend pkgs.jdk super.inline-java;
197
198 # Upstream notified by e-mail.
199 permutation = dontCheck super.permutation;
200
201 # https://github.com/jputcu/serialport/issues/25
202 serialport = dontCheck super.serialport;
203
204 # Test suite depends on source code being available
205 simple-affine-space = dontCheck super.simple-affine-space;
206
207 # Fails no apparent reason. Upstream has been notified by e-mail.
208 assertions = dontCheck super.assertions;
209
210 # These packages try to execute non-existent external programs.
211 cmaes = dontCheck super.cmaes; # http://hydra.cryp.to/build/498725/log/raw
212 dbmigrations = dontCheck super.dbmigrations;
213 filestore = dontCheck super.filestore;
214 graceful = dontCheck super.graceful;
215 HList = dontCheck super.HList;
216 ide-backend = dontCheck super.ide-backend;
217 marquise = dontCheck super.marquise; # https://github.com/anchor/marquise/issues/69
218 memcached-binary = dontCheck super.memcached-binary;
219 msgpack-rpc = dontCheck super.msgpack-rpc;
220 persistent-zookeeper = dontCheck super.persistent-zookeeper;
221 pocket-dns = dontCheck super.pocket-dns;
222 postgresql-simple = dontCheck super.postgresql-simple;
223 squeal-postgresql = dontCheck super.squeal-postgresql;
224 postgrest = dontCheck super.postgrest;
225 postgrest-ws = dontCheck super.postgrest-ws;
226 snowball = dontCheck super.snowball;
227 sophia = dontCheck super.sophia;
228 test-sandbox = dontCheck super.test-sandbox;
229 texrunner = dontCheck super.texrunner;
230 users-postgresql-simple = dontCheck super.users-postgresql-simple;
231 wai-middleware-hmac = dontCheck super.wai-middleware-hmac;
232 xkbcommon = dontCheck super.xkbcommon;
233 xmlgen = dontCheck super.xmlgen;
234 HerbiePlugin = dontCheck super.HerbiePlugin;
235 wai-cors = dontCheck super.wai-cors;
236
237 # base bound
238 digit = doJailbreak super.digit;
239
240 # 2020-06-05: HACK: does not pass own build suite - `dontCheck`
241 # 2022-06-17: Use hnix-store 0.5 until hnix 0.17
242 hnix = generateOptparseApplicativeCompletion "hnix" (dontCheck (
243 super.hnix.overrideScope (hself: hsuper: {
244 hnix-store-core = hself.hnix-store-core_0_5_0_0;
245 hnix-store-remote = hself.hnix-store-remote_0_5_0_0;
246 })
247 ));
248 # Too strict bounds on algebraic-graphs
249 # https://github.com/haskell-nix/hnix-store/issues/180
250 hnix-store-core_0_5_0_0 = doJailbreak super.hnix-store-core_0_5_0_0;
251
252 # Fails for non-obvious reasons while attempting to use doctest.
253 focuslist = dontCheck super.focuslist;
254 search = dontCheck super.search;
255
256 # see https://github.com/LumiGuide/haskell-opencv/commit/cd613e200aa20887ded83256cf67d6903c207a60
257 opencv = dontCheck (appendPatch ./patches/opencv-fix-116.patch super.opencv);
258 opencv-extra = dontCheck (appendPatch ./patches/opencv-fix-116.patch super.opencv-extra);
259
260 # https://github.com/ekmett/structures/issues/3
261 structures = dontCheck super.structures;
262
263 # Disable test suites to fix the build.
264 acme-year = dontCheck super.acme-year; # http://hydra.cryp.to/build/497858/log/raw
265 aeson-lens = dontCheck super.aeson-lens; # http://hydra.cryp.to/build/496769/log/raw
266 aeson-schema = dontCheck super.aeson-schema; # https://github.com/timjb/aeson-schema/issues/9
267 angel = dontCheck super.angel;
268 apache-md5 = dontCheck super.apache-md5; # http://hydra.cryp.to/build/498709/nixlog/1/raw
269 app-settings = dontCheck super.app-settings; # http://hydra.cryp.to/build/497327/log/raw
270 aws-kinesis = dontCheck super.aws-kinesis; # needs aws credentials for testing
271 binary-protocol = dontCheck super.binary-protocol; # http://hydra.cryp.to/build/499749/log/raw
272 binary-search = dontCheck super.binary-search;
273 bits = dontCheck super.bits; # http://hydra.cryp.to/build/500239/log/raw
274 bloodhound = dontCheck super.bloodhound; # https://github.com/plow-technologies/quickcheck-arbitrary-template/issues/10
275 buildwrapper = dontCheck super.buildwrapper;
276 burst-detection = dontCheck super.burst-detection; # http://hydra.cryp.to/build/496948/log/raw
277 cabal-meta = dontCheck super.cabal-meta; # http://hydra.cryp.to/build/497892/log/raw
278 camfort = dontCheck super.camfort;
279 cjk = dontCheck super.cjk;
280 CLI = dontCheck super.CLI; # Upstream has no issue tracker.
281 command-qq = dontCheck super.command-qq; # http://hydra.cryp.to/build/499042/log/raw
282 conduit-connection = dontCheck super.conduit-connection;
283 craftwerk = dontCheck super.craftwerk;
284 crc = dontCheck super.crc; # https://github.com/MichaelXavier/crc/issues/2
285 css-text = dontCheck super.css-text;
286 damnpacket = dontCheck super.damnpacket; # http://hydra.cryp.to/build/496923/log
287 data-hash = dontCheck super.data-hash;
288 Deadpan-DDP = dontCheck super.Deadpan-DDP; # http://hydra.cryp.to/build/496418/log/raw
289 DigitalOcean = dontCheck super.DigitalOcean;
290 direct-sqlite = dontCheck super.direct-sqlite;
291 directory-layout = dontCheck super.directory-layout;
292 dlist = dontCheck super.dlist;
293 docopt = dontCheck super.docopt; # http://hydra.cryp.to/build/499172/log/raw
294 dom-selector = dontCheck super.dom-selector; # http://hydra.cryp.to/build/497670/log/raw
295 dotenv = dontCheck super.dotenv; # Tests fail because of missing test file on version 0.8.0.2 fixed on version 0.8.0.4
296 dotfs = dontCheck super.dotfs; # http://hydra.cryp.to/build/498599/log/raw
297 DRBG = dontCheck super.DRBG; # http://hydra.cryp.to/build/498245/nixlog/1/raw
298 ed25519 = dontCheck super.ed25519;
299 etcd = dontCheck super.etcd;
300 fb = dontCheck super.fb; # needs credentials for Facebook
301 fptest = dontCheck super.fptest; # http://hydra.cryp.to/build/499124/log/raw
302 friday-juicypixels = dontCheck super.friday-juicypixels; #tarball missing test/rgba8.png
303 ghc-events = dontCheck super.ghc-events; # http://hydra.cryp.to/build/498226/log/raw
304 ghc-events-parallel = dontCheck super.ghc-events-parallel; # http://hydra.cryp.to/build/496828/log/raw
305 ghc-imported-from = dontCheck super.ghc-imported-from;
306 ghc-parmake = dontCheck super.ghc-parmake;
307 ghcid = dontCheck super.ghcid;
308 git-vogue = dontCheck super.git-vogue;
309 github-rest = dontCheck super.github-rest; # test suite needs the network
310 gitlib-cmdline = dontCheck super.gitlib-cmdline;
311 GLFW-b = dontCheck super.GLFW-b; # https://github.com/bsl/GLFW-b/issues/50
312 hackport = dontCheck super.hackport;
313 hadoop-formats = dontCheck super.hadoop-formats;
314 haeredes = dontCheck super.haeredes;
315 hashed-storage = dontCheck super.hashed-storage;
316 hashring = dontCheck super.hashring;
317 hath = dontCheck super.hath;
318 haxl = dontCheck super.haxl; # non-deterministic failure https://github.com/facebook/Haxl/issues/85
319 haxl-facebook = dontCheck super.haxl-facebook; # needs facebook credentials for testing
320 hdbi-postgresql = dontCheck super.hdbi-postgresql;
321 hedis = dontCheck super.hedis;
322 hedis-pile = dontCheck super.hedis-pile;
323 hedis-tags = dontCheck super.hedis-tags;
324 hedn = dontCheck super.hedn;
325 hgdbmi = dontCheck super.hgdbmi;
326 hi = dontCheck super.hi;
327 hierarchical-clustering = dontCheck super.hierarchical-clustering;
328 hlibgit2 = disableHardening [ "format" ] super.hlibgit2;
329 hmatrix-tests = dontCheck super.hmatrix-tests;
330 hquery = dontCheck super.hquery;
331 hs2048 = dontCheck super.hs2048;
332 hsbencher = dontCheck super.hsbencher;
333 hsexif = dontCheck super.hsexif;
334 hspec-server = dontCheck super.hspec-server;
335 HTF = overrideCabal (orig: {
336 # The scripts in scripts/ are needed to build the test suite.
337 preBuild = "patchShebangs --build scripts";
338 # test suite doesn't compile with aeson >= 2.0
339 # https://github.com/skogsbaer/HTF/issues/114
340 doCheck = false;
341 }) super.HTF;
342 htsn = dontCheck super.htsn;
343 htsn-import = dontCheck super.htsn-import;
344 http-link-header = dontCheck super.http-link-header; # non deterministic failure https://hydra.nixos.org/build/75041105
345 influxdb = dontCheck super.influxdb;
346 integer-roots = dontCheck super.integer-roots; # requires an old version of smallcheck, will be fixed in > 1.0
347 itanium-abi = dontCheck super.itanium-abi;
348 katt = dontCheck super.katt;
349 language-slice = dontCheck super.language-slice;
350 ldap-client = dontCheck super.ldap-client;
351 lensref = dontCheck super.lensref;
352 lvmrun = disableHardening ["format"] (dontCheck super.lvmrun);
353 matplotlib = dontCheck super.matplotlib;
354
355 brick_0_73 = doDistribute (super.brick_0_73.overrideScope (self: super: {
356 vty = self.vty_5_36;
357 text-zipper = self.text-zipper_0_12;
358 }));
359
360 # https://github.com/matterhorn-chat/matterhorn/issues/679 they do not want to be on stackage
361 matterhorn = doJailbreak (appendPatches [
362 # Fix build with brick 0.73
363 (fetchpatch {
364 name = "matterhorn-brick-0.72.patch";
365 url = "https://github.com/matterhorn-chat/matterhorn/commit/d52df3342b8420e219095aad477205e47fbef11b.patch";
366 sha256 = "1ifvv926g9m8niyc9nl1hy9bkx4kf12ciyv2v8vnrzz3njp4fsrz";
367 })
368 ] (super.matterhorn.overrideScope (self: super: {
369 brick = self.brick_0_73;
370 })));
371
372 memcache = dontCheck super.memcache;
373 metrics = dontCheck super.metrics;
374 milena = dontCheck super.milena;
375 modular-arithmetic = dontCheck super.modular-arithmetic; # tests require a very old Glob (0.7.*)
376 nats-queue = dontCheck super.nats-queue;
377 netpbm = dontCheck super.netpbm;
378 network = dontCheck super.network;
379 network_2_6_3_1 = dontCheck super.network_2_6_3_1; # package is missing files for test
380 network-dbus = dontCheck super.network-dbus;
381 notcpp = dontCheck super.notcpp;
382 ntp-control = dontCheck super.ntp-control;
383 odpic-raw = dontCheck super.odpic-raw; # needs a running oracle database server
384 opaleye = dontCheck super.opaleye;
385 openpgp = dontCheck super.openpgp;
386 optional = dontCheck super.optional;
387 orgmode-parse = dontCheck super.orgmode-parse;
388 os-release = dontCheck super.os-release;
389 parameterized = dontCheck super.parameterized; # https://github.com/louispan/parameterized/issues/2
390 persistent-redis = dontCheck super.persistent-redis;
391 pipes-extra = dontCheck super.pipes-extra;
392 pipes-websockets = dontCheck super.pipes-websockets;
393 posix-pty = dontCheck super.posix-pty; # https://github.com/merijn/posix-pty/issues/12
394 postgresql-binary = dontCheck super.postgresql-binary; # needs a running postgresql server
395 postgresql-simple-migration = dontCheck super.postgresql-simple-migration;
396 powerdns = dontCheck super.powerdns; # Tests require networking and external services
397 process-streaming = dontCheck super.process-streaming;
398 punycode = dontCheck super.punycode;
399 pwstore-cli = dontCheck super.pwstore-cli;
400 quantities = dontCheck super.quantities;
401 redis-io = dontCheck super.redis-io;
402 rethinkdb = dontCheck super.rethinkdb;
403 Rlang-QQ = dontCheck super.Rlang-QQ;
404 safecopy = dontCheck super.safecopy;
405 sai-shape-syb = dontCheck super.sai-shape-syb;
406 saltine = dontCheck super.saltine; # https://github.com/tel/saltine/pull/56
407 scp-streams = dontCheck super.scp-streams;
408 sdl2 = dontCheck super.sdl2; # the test suite needs an x server
409 sdl2-ttf = dontCheck super.sdl2-ttf; # as of version 0.2.1, the test suite requires user intervention
410 separated = dontCheck super.separated;
411 shadowsocks = dontCheck super.shadowsocks;
412 shake-language-c = dontCheck super.shake-language-c;
413 snap-core = doJailbreak (dontCheck super.snap-core); # attoparsec bound is too strict. This has been fixed on master
414 snap-server = doJailbreak super.snap-server; # attoparsec bound is too strict
415 sourcemap = dontCheck super.sourcemap;
416 static-resources = dontCheck super.static-resources;
417 strive = dontCheck super.strive; # fails its own hlint test with tons of warnings
418 svndump = dontCheck super.svndump;
419 tar = dontCheck super.tar; #https://hydra.nixos.org/build/25088435/nixlog/2 (fails only on 32-bit)
420 th-printf = dontCheck super.th-printf;
421 thumbnail-plus = dontCheck super.thumbnail-plus;
422 tickle = dontCheck super.tickle;
423 tpdb = dontCheck super.tpdb;
424 translatable-intset = dontCheck super.translatable-intset;
425 ua-parser = dontCheck super.ua-parser;
426 unagi-chan = dontCheck super.unagi-chan;
427 wai-logger = dontCheck super.wai-logger;
428 WebBits = dontCheck super.WebBits; # http://hydra.cryp.to/build/499604/log/raw
429 webdriver = dontCheck super.webdriver;
430 webdriver-angular = dontCheck super.webdriver-angular;
431 xsd = dontCheck super.xsd;
432 zip-archive = dontCheck super.zip-archive; # https://github.com/jgm/zip-archive/issues/57
433
434 # These test suites run for ages, even on a fast machine. This is nuts.
435 Random123 = dontCheck super.Random123;
436 systemd = dontCheck super.systemd;
437
438 # https://github.com/eli-frey/cmdtheline/issues/28
439 cmdtheline = dontCheck super.cmdtheline;
440
441 # https://github.com/bos/snappy/issues/1
442 snappy = dontCheck super.snappy;
443
444 # https://ghc.haskell.org/trac/ghc/ticket/9625
445 vty = dontCheck super.vty;
446
447 # https://github.com/vincenthz/hs-crypto-pubkey/issues/20
448 crypto-pubkey = dontCheck super.crypto-pubkey;
449
450 # Test suite works with aeson 2.0 only starting with 0.14.1
451 vinyl = assert versionOlder super.vinyl.version "0.14.1";
452 dontCheck super.vinyl;
453
454 # https://github.com/Philonous/xml-picklers/issues/5
455 xml-picklers = dontCheck super.xml-picklers;
456
457 # https://github.com/joeyadams/haskell-stm-delay/issues/3
458 stm-delay = dontCheck super.stm-delay;
459
460 # https://github.com/pixbi/duplo/issues/25
461 duplo = dontCheck super.duplo;
462
463 # https://github.com/evanrinehart/mikmod/issues/1
464 mikmod = addExtraLibrary pkgs.libmikmod super.mikmod;
465
466 # https://github.com/basvandijk/threads/issues/10
467 threads = dontCheck super.threads;
468
469 # Missing module.
470 rematch = dontCheck super.rematch; # https://github.com/tcrayford/rematch/issues/5
471 rematch-text = dontCheck super.rematch-text; # https://github.com/tcrayford/rematch/issues/6
472
473 # no haddock since this is an umbrella package.
474 cloud-haskell = dontHaddock super.cloud-haskell;
475
476 # This packages compiles 4+ hours on a fast machine. That's just unreasonable.
477 CHXHtml = dontDistribute super.CHXHtml;
478
479 # https://github.com/NixOS/nixpkgs/issues/6350
480 paypal-adaptive-hoops = overrideCabal (drv: { testTarget = "local"; }) super.paypal-adaptive-hoops;
481
482 # Avoid "QuickCheck >=2.3 && <2.10" dependency we cannot fulfill in lts-11.x.
483 test-framework = dontCheck super.test-framework;
484
485 # Depends on broken test-framework-quickcheck.
486 apiary = dontCheck super.apiary;
487 apiary-authenticate = dontCheck super.apiary-authenticate;
488 apiary-clientsession = dontCheck super.apiary-clientsession;
489 apiary-cookie = dontCheck super.apiary-cookie;
490 apiary-eventsource = dontCheck super.apiary-eventsource;
491 apiary-logger = dontCheck super.apiary-logger;
492 apiary-memcached = dontCheck super.apiary-memcached;
493 apiary-mongoDB = dontCheck super.apiary-mongoDB;
494 apiary-persistent = dontCheck super.apiary-persistent;
495 apiary-purescript = dontCheck super.apiary-purescript;
496 apiary-session = dontCheck super.apiary-session;
497 apiary-websockets = dontCheck super.apiary-websockets;
498
499 # https://github.com/junjihashimoto/test-sandbox-compose/issues/2
500 test-sandbox-compose = dontCheck super.test-sandbox-compose;
501
502 # Waiting on language-python 0.5.8 https://github.com/bjpop/language-python/issues/60
503 xcffib = dontCheck super.xcffib;
504
505 # https://github.com/afcowie/locators/issues/1
506 locators = dontCheck super.locators;
507
508 # Test suite won't compile against tasty-hunit 0.10.x.
509 binary-parser = dontCheck super.binary-parser;
510 binary-parsers = dontCheck super.binary-parsers;
511 bytestring-strict-builder = dontCheck super.bytestring-strict-builder;
512 bytestring-tree-builder = dontCheck super.bytestring-tree-builder;
513
514 # https://github.com/byteverse/bytebuild/issues/19
515 bytebuild = dontCheck super.bytebuild;
516
517 # https://github.com/andrewthad/haskell-ip/issues/67
518 ip = dontCheck super.ip;
519
520 # https://github.com/ndmitchell/shake/issues/804
521 shake = dontCheck super.shake;
522
523 # https://github.com/nushio3/doctest-prop/issues/1
524 doctest-prop = dontCheck super.doctest-prop;
525
526 # Missing file in source distribution:
527 # - https://github.com/karun012/doctest-discover/issues/22
528 # - https://github.com/karun012/doctest-discover/issues/23
529 #
530 # When these are fixed the following needs to be enabled again:
531 #
532 # # Depends on itself for testing
533 # doctest-discover = addBuildTool super.doctest-discover
534 # (if pkgs.buildPlatform != pkgs.hostPlatform
535 # then self.buildHaskellPackages.doctest-discover
536 # else dontCheck super.doctest-discover);
537 doctest-discover = dontCheck super.doctest-discover;
538
539 tasty-discover = overrideCabal (drv: {
540 # Depends on itself for testing
541 preBuild = ''
542 export PATH="$PWD/dist/build/tasty-discover:$PATH"
543 '' + (drv.preBuild or "");
544 }) super.tasty-discover;
545
546 # Known issue with nondeterministic test suite failure
547 # https://github.com/nomeata/tasty-expected-failure/issues/21
548 tasty-expected-failure = dontCheck super.tasty-expected-failure;
549
550 # Waiting on https://github.com/RaphaelJ/friday/pull/36
551 friday = doJailbreak super.friday;
552
553 # Won't compile with recent versions of QuickCheck.
554 inilist = dontCheck super.inilist;
555
556 # https://github.com/yaccz/saturnin/issues/3
557 Saturnin = dontCheck super.Saturnin;
558
559 # https://github.com/kkardzis/curlhs/issues/6
560 curlhs = dontCheck super.curlhs;
561
562 # https://github.com/hvr/token-bucket/issues/3
563 token-bucket = dontCheck super.token-bucket;
564
565 # https://github.com/alphaHeavy/lzma-enumerator/issues/3
566 lzma-enumerator = dontCheck super.lzma-enumerator;
567
568 # FPCO's fork of Cabal won't succeed its test suite.
569 Cabal-ide-backend = dontCheck super.Cabal-ide-backend;
570
571 # QuickCheck version, also set in cabal2nix
572 websockets = dontCheck super.websockets;
573
574 # Avoid spurious test suite failures.
575 fft = dontCheck super.fft;
576
577 # This package can't be built on non-Windows systems.
578 Win32 = overrideCabal (drv: { broken = !pkgs.stdenv.isCygwin; }) super.Win32;
579 inline-c-win32 = dontDistribute super.inline-c-win32;
580 Southpaw = dontDistribute super.Southpaw;
581
582 # Hydra no longer allows building texlive packages.
583 lhs2tex = dontDistribute super.lhs2tex;
584
585 # https://ghc.haskell.org/trac/ghc/ticket/9825
586 vimus = overrideCabal (drv: { broken = pkgs.stdenv.isLinux && pkgs.stdenv.isi686; }) super.vimus;
587
588 # https://github.com/kazu-yamamoto/logger/issues/42
589 logger = dontCheck super.logger;
590
591 # vector dependency < 0.12
592 imagemagick = doJailbreak super.imagemagick;
593
594 # https://github.com/liyang/thyme/issues/36
595 thyme = dontCheck super.thyme;
596
597 # Elm is no longer actively maintained on Hackage: https://github.com/NixOS/nixpkgs/pull/9233.
598 Elm = markBroken super.Elm;
599 elm-build-lib = markBroken super.elm-build-lib;
600 elm-compiler = markBroken super.elm-compiler;
601 elm-get = markBroken super.elm-get;
602 elm-make = markBroken super.elm-make;
603 elm-package = markBroken super.elm-package;
604 elm-reactor = markBroken super.elm-reactor;
605 elm-repl = markBroken super.elm-repl;
606 elm-server = markBroken super.elm-server;
607 elm-yesod = markBroken super.elm-yesod;
608
609 # https://github.com/Euterpea/Euterpea2/issues/40
610 Euterpea = doJailbreak super.Euterpea;
611
612 # Install icons, metadata and cli program.
613 bustle = overrideCabal (drv: {
614 buildDepends = [ pkgs.libpcap ];
615 buildTools = with pkgs.buildPackages; [ gettext perl help2man ];
616 postInstall = ''
617 make install PREFIX=$out
618 '';
619 }) super.bustle;
620
621 # Byte-compile elisp code for Emacs.
622 ghc-mod = overrideCabal (drv: {
623 preCheck = "export HOME=$TMPDIR";
624 testToolDepends = drv.testToolDepends or [] ++ [self.cabal-install];
625 doCheck = false; # https://github.com/kazu-yamamoto/ghc-mod/issues/335
626 executableToolDepends = drv.executableToolDepends or [] ++ [pkgs.buildPackages.emacs];
627 postInstall = ''
628 local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/*/${drv.pname}-${drv.version}/elisp" )
629 make -C $lispdir
630 mkdir -p $data/share/emacs/site-lisp
631 ln -s "$lispdir/"*.el{,c} $data/share/emacs/site-lisp/
632 '';
633 }) super.ghc-mod;
634
635 # 2022-03-20: descriptive is unmaintained since 2018 and archived on github.com
636 # It does not support aeson 2.0
637 descriptive = super.descriptive.override { aeson = self.aeson_1_5_6_0; };
638
639 # 2022-03-19: Testsuite is failing: https://github.com/puffnfresh/haskell-jwt/issues/2
640 jwt = dontCheck super.jwt;
641
642 # Build the latest git version instead of the official release. This isn't
643 # ideal, but Chris doesn't seem to make official releases any more.
644 structured-haskell-mode = overrideCabal (drv: {
645 src = pkgs.fetchFromGitHub {
646 owner = "projectional-haskell";
647 repo = "structured-haskell-mode";
648 rev = "7f9df73f45d107017c18ce4835bbc190dfe6782e";
649 sha256 = "1jcc30048j369jgsbbmkb63whs4wb37bq21jrm3r6ry22izndsqa";
650 };
651 version = "20170205-git";
652 editedCabalFile = null;
653 # Make elisp files available at a location where people expect it. We
654 # cannot easily byte-compile these files, unfortunately, because they
655 # depend on a new version of haskell-mode that we don't have yet.
656 postInstall = ''
657 local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" )
658 mkdir -p $data/share/emacs
659 ln -s $lispdir $data/share/emacs/site-lisp
660 '';
661 }) super.structured-haskell-mode;
662
663 # Make elisp files available at a location where people expect it.
664 hindent = (overrideCabal (drv: {
665 # We cannot easily byte-compile these files, unfortunately, because they
666 # depend on a new version of haskell-mode that we don't have yet.
667 postInstall = ''
668 local lispdir=( "$data/share/${self.ghc.targetPrefix}${self.ghc.haskellCompilerName}/"*"/${drv.pname}-"*"/elisp" )
669 mkdir -p $data/share/emacs
670 ln -s $lispdir $data/share/emacs/site-lisp
671 '';
672 doCheck = false; # https://github.com/chrisdone/hindent/issues/299
673 }) super.hindent);
674
675 # https://github.com/bos/configurator/issues/22
676 configurator = dontCheck super.configurator;
677
678 # https://github.com/basvandijk/concurrent-extra/issues/12
679 concurrent-extra = dontCheck super.concurrent-extra;
680
681 # https://github.com/bos/bloomfilter/issues/7
682 bloomfilter = appendPatch ./patches/bloomfilter-fix-on-32bit.patch super.bloomfilter;
683
684 # https://github.com/ashutoshrishi/hunspell-hs/pull/3
685 hunspell-hs = addPkgconfigDepend pkgs.hunspell (dontCheck (appendPatch ./patches/hunspell.patch super.hunspell-hs));
686
687 # https://github.com/pxqr/base32-bytestring/issues/4
688 base32-bytestring = dontCheck super.base32-bytestring;
689
690 # Djinn's last release was 2014, incompatible with Semigroup-Monoid Proposal
691 # https://github.com/augustss/djinn/pull/8
692 djinn = appendPatch (fetchpatch {
693 url = "https://github.com/augustss/djinn/commit/6cb9433a137fb6b5194afe41d616bd8b62b95630.patch";
694 sha256 = "0s021y5nzrh74gfp8xpxpxm11ivzfs3jwg6mkrlyry3iy584xqil";
695 }) super.djinn;
696
697 # We cannot build this package w/o the C library from <http://www.phash.org/>.
698 phash = markBroken super.phash;
699
700 # https://github.com/Philonous/hs-stun/pull/1
701 # Remove if a version > 0.1.0.1 ever gets released.
702 stunclient = overrideCabal (drv: {
703 postPatch = (drv.postPatch or "") + ''
704 substituteInPlace source/Network/Stun/MappedAddress.hs --replace "import Network.Endian" ""
705 '';
706 }) super.stunclient;
707
708 d-bus = let
709 # The latest release on hackage is missing necessary patches for recent compilers
710 # https://github.com/Philonous/d-bus/issues/24
711 newer = overrideSrc {
712 version = "unstable-2021-01-08";
713 src = pkgs.fetchFromGitHub {
714 owner = "Philonous";
715 repo = "d-bus";
716 rev = "fb8a948a3b9d51db618454328dbe18fb1f313c70";
717 hash = "sha256-R7/+okb6t9DAkPVUV70QdYJW8vRcvBdz4zKJT13jb3A=";
718 };
719 } super.d-bus;
720 # Add now required extension on recent compilers.
721 # https://github.com/Philonous/d-bus/pull/23
722 in appendPatch (fetchpatch {
723 url = "https://github.com/Philonous/d-bus/commit/e5f37900a3a301c41d98bdaa134754894c705681.patch";
724 sha256 = "6rQ7H9t483sJe1x95yLPAZ0BKTaRjgqQvvrQv7HkJRE=";
725 }) newer;
726
727 # * The standard libraries are compiled separately.
728 # * We need multiple patches from master to fix compilation with
729 # updated dependencies (haskeline and megaparsec) which can be
730 # removed when the next idris release (1.3.4 probably) comes
731 # around.
732 idris = generateOptparseApplicativeCompletion "idris"
733 (doJailbreak (dontCheck super.idris));
734
735 # https://github.com/pontarius/pontarius-xmpp/issues/105
736 pontarius-xmpp = dontCheck super.pontarius-xmpp;
737
738 # fails with sandbox
739 yi-keymap-vim = dontCheck super.yi-keymap-vim;
740
741 # https://github.com/bmillwood/applicative-quoters/issues/6
742 applicative-quoters = doJailbreak super.applicative-quoters;
743
744 # https://hydra.nixos.org/build/42769611/nixlog/1/raw
745 # note: the library is unmaintained, no upstream issue
746 dataenc = doJailbreak super.dataenc;
747
748 # https://github.com/divipp/ActiveHs-misc/issues/10
749 data-pprint = doJailbreak super.data-pprint;
750
751 # horribly outdated (X11 interface changed a lot)
752 sindre = markBroken super.sindre;
753
754 # Test suite occasionally runs for 1+ days on Hydra.
755 distributed-process-tests = dontCheck super.distributed-process-tests;
756
757 # https://github.com/mulby/diff-parse/issues/9
758 diff-parse = doJailbreak super.diff-parse;
759
760 # https://github.com/josefs/STMonadTrans/issues/4
761 STMonadTrans = dontCheck super.STMonadTrans;
762
763 # No upstream issue tracker
764 hspec-expectations-pretty-diff = dontCheck super.hspec-expectations-pretty-diff;
765
766 # Don't depend on chell-quickcheck, which doesn't compile due to restricting
767 # QuickCheck to versions ">=2.3 && <2.9".
768 system-filepath = dontCheck super.system-filepath;
769
770 # https://github.com/hvr/uuid/issues/28
771 uuid-types = doJailbreak super.uuid-types;
772 uuid = doJailbreak super.uuid;
773
774 # The tests spuriously fail
775 libmpd = dontCheck super.libmpd;
776
777 # https://github.com/diagrams/diagrams-braille/issues/1
778 diagrams-braille = doJailbreak super.diagrams-braille;
779
780 # https://github.com/xu-hao/namespace/issues/1
781 namespace = doJailbreak super.namespace;
782
783 # https://github.com/diagrams/diagrams-solve/issues/4
784 diagrams-solve = dontCheck super.diagrams-solve;
785
786 # https://github.com/danidiaz/streaming-eversion/issues/1
787 streaming-eversion = dontCheck super.streaming-eversion;
788
789 # https://github.com/danidiaz/tailfile-hinotify/issues/2
790 tailfile-hinotify = dontCheck super.tailfile-hinotify;
791
792 # Test suite fails: https://github.com/lymar/hastache/issues/46.
793 # Don't install internal mkReadme tool.
794 hastache = overrideCabal (drv: {
795 doCheck = false;
796 postInstall = "rm $out/bin/mkReadme && rmdir $out/bin";
797 }) super.hastache;
798
799 # Has a dependency on outdated versions of directory.
800 cautious-file = doJailbreak (dontCheck super.cautious-file);
801
802 # test suite does not compile with recent versions of QuickCheck
803 integer-logarithms = dontCheck (super.integer-logarithms);
804
805 # missing dependencies: blaze-html >=0.5 && <0.9, blaze-markup >=0.5 && <0.8
806 digestive-functors-blaze = doJailbreak super.digestive-functors-blaze;
807 digestive-functors = doJailbreak super.digestive-functors;
808
809 # https://github.com/takano-akio/filelock/issues/5
810 filelock = dontCheck super.filelock;
811
812 # Wrap the generated binaries to include their run-time dependencies in
813 # $PATH. Also, cryptol needs a version of sbl that's newer than what we have
814 # in LTS-13.x.
815 cryptol = overrideCabal (drv: {
816 buildTools = drv.buildTools or [] ++ [ pkgs.buildPackages.makeWrapper ];
817 postInstall = drv.postInstall or "" + ''
818 for b in $out/bin/cryptol $out/bin/cryptol-html; do
819 wrapProgram $b --prefix 'PATH' ':' "${lib.getBin pkgs.z3}/bin"
820 done
821 '';
822 }) super.cryptol;
823
824 # Tests try to invoke external process and process == 1.4
825 grakn = dontCheck (doJailbreak super.grakn);
826
827 # test suite requires git and does a bunch of git operations
828 restless-git = dontCheck super.restless-git;
829
830 # requires git at test-time *and* runtime, but we'll just rely on users to
831 # bring their own git at runtime
832 sensei = overrideCabal (drv: {
833 testHaskellDepends = drv.testHaskellDepends or [] ++ [ self.hspec-meta_2_9_3 ];
834 testToolDepends = drv.testToolDepends or [] ++ [ pkgs.git ];
835 }) (super.sensei.override {
836 hspec = self.hspec_2_10_0_1;
837 hspec-wai = super.hspec-wai.override {
838 hspec = self.hspec_2_10_0_1;
839 };
840 });
841
842 # Depends on broken fluid.
843 fluid-idl-http-client = markBroken super.fluid-idl-http-client;
844 fluid-idl-scotty = markBroken super.fluid-idl-scotty;
845
846 # Work around https://github.com/haskell/c2hs/issues/192.
847 c2hs = dontCheck super.c2hs;
848
849 # Needs pginit to function and pgrep to verify.
850 tmp-postgres = overrideCabal (drv: {
851 # Flaky tests: https://github.com/jfischoff/tmp-postgres/issues/274
852 doCheck = false;
853
854 preCheck = ''
855 export HOME="$TMPDIR"
856 '' + (drv.preCheck or "");
857 libraryToolDepends = drv.libraryToolDepends or [] ++ [pkgs.buildPackages.postgresql];
858 testToolDepends = drv.testToolDepends or [] ++ [pkgs.procps];
859 }) super.tmp-postgres;
860
861 # Needs QuickCheck <2.10, which we don't have.
862 edit-distance = doJailbreak super.edit-distance;
863 blaze-html = doJailbreak super.blaze-html;
864 int-cast = doJailbreak super.int-cast;
865
866 # Needs QuickCheck <2.10, HUnit <1.6 and base <4.10
867 pointfree = doJailbreak super.pointfree;
868
869 # The project is stale
870 #
871 # Archiving request: https://github.com/haskell-hvr/cryptohash-sha512/issues/6
872 #
873 # doJailbreak since base <4.12 && bytestring <0.11
874 # Request to support:
875 # https://github.com/haskell-hvr/cryptohash-sha512/issues/4
876 # PRs to support base <4.12:
877 # https://github.com/haskell-hvr/cryptohash-sha512/pull/3
878 # https://github.com/haskell-hvr/cryptohash-sha512/pull/5
879 #
880 # dontCheck since test suite does not support new `base16-bytestring` >= 1 format
881 # https://github.com/haskell-hvr/cryptohash-sha512/pull/5#issuecomment-752796913
882 cryptohash-sha512 = dontCheck (doJailbreak super.cryptohash-sha512);
883
884 # https://github.com/haskell-hvr/cryptohash-sha256/issues/11
885 # Jailbreak is necessary to break out of tasty < 1.x dependency.
886 # hackage2nix generates this as a broken package due to the (fake) dependency
887 # missing from hackage, so we need to fix the meta attribute set.
888 cryptohash-sha256 = overrideCabal (drv: {
889 jailbreak = true;
890 broken = false;
891 hydraPlatforms = lib.platforms.all;
892 }) super.cryptohash-sha256;
893
894 # The test suite has all kinds of out-dated dependencies, so it feels easier
895 # to just disable it.
896 cryptohash-sha1 = dontCheck super.cryptohash-sha1;
897 cryptohash-md5 = dontCheck super.cryptohash-md5;
898
899 # Needs tasty-quickcheck ==0.8.*, which we don't have.
900 gitHUD = dontCheck super.gitHUD;
901 githud = dontCheck super.githud;
902
903 # https://github.com/aisamanra/config-ini/issues/12
904 config-ini = dontCheck super.config-ini;
905
906 # doctest >=0.9 && <0.12
907 path = dontCheck super.path;
908
909 # Test suite fails due to trying to create directories
910 path-io = dontCheck super.path-io;
911
912 # Duplicate instance with smallcheck.
913 store = dontCheck super.store;
914
915 # With ghc-8.2.x haddock would time out for unknown reason
916 # See https://github.com/haskell/haddock/issues/679
917 language-puppet = dontHaddock super.language-puppet;
918
919 # https://github.com/alphaHeavy/protobuf/issues/34
920 protobuf = dontCheck super.protobuf;
921
922 # Is this package still maintained? https://github.com/haskell/text-icu/issues/30
923 text-icu = overrideCabal (drv: {
924 doCheck = false; # https://github.com/bos/text-icu/issues/32
925 configureFlags = ["--ghc-option=-DU_DEFINE_FALSE_AND_TRUE=1"]; # https://github.com/haskell/text-icu/issues/49
926 }) super.text-icu;
927
928 # jailbreak tasty < 1.2 until servant-docs > 0.11.3 is on hackage.
929 servant-docs = doJailbreak super.servant-docs;
930 snap-templates = doJailbreak super.snap-templates; # https://github.com/snapframework/snap-templates/issues/22
931
932 # Copy hledger man pages from data directory into the proper place. This code
933 # should be moved into the cabal2nix generator.
934 hledger = overrideCabal (drv: {
935 postInstall = ''
936 # Don't install files that don't belong into this package to avoid
937 # conflicts when hledger and hledger-ui end up in the same profile.
938 rm embeddedfiles/hledger-{api,ui,web}.*
939 for i in $(seq 1 9); do
940 for j in embeddedfiles/*.$i; do
941 mkdir -p $out/share/man/man$i
942 cp -v $j $out/share/man/man$i/
943 done
944 done
945 mkdir -p $out/share/info
946 cp -v embeddedfiles/*.info* $out/share/info/
947 '';
948 }) super.hledger;
949 hledger-ui = overrideCabal (drv: {
950 postInstall = ''
951 for i in $(seq 1 9); do
952 for j in *.$i; do
953 mkdir -p $out/share/man/man$i
954 cp -v $j $out/share/man/man$i/
955 done
956 done
957 mkdir -p $out/share/info
958 cp -v *.info* $out/share/info/
959 '';
960 }) super.hledger-ui;
961 hledger-web = overrideCabal (drv: {
962 preCheck = "export HOME=$TMPDIR";
963 postInstall = ''
964 for i in $(seq 1 9); do
965 for j in *.$i; do
966 mkdir -p $out/share/man/man$i
967 cp -v $j $out/share/man/man$i/
968 done
969 done
970 mkdir -p $out/share/info
971 cp -v *.info* $out/share/info/
972 '';
973 }) super.hledger-web;
974
975
976 # https://github.com/haskell-hvr/resolv/pull/6
977 resolv_0_1_1_2 = dontCheck super.resolv_0_1_1_2;
978
979 # The test suite does not know how to find the 'alex' binary.
980 alex = overrideCabal (drv: {
981 testSystemDepends = (drv.testSystemDepends or []) ++ [pkgs.which];
982 preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"'';
983 }) super.alex;
984
985 # This package refers to the wrong library (itself in fact!)
986 vulkan = super.vulkan.override { vulkan = pkgs.vulkan-loader; };
987
988 # Compiles some C or C++ source which requires these headers
989 VulkanMemoryAllocator = addExtraLibrary pkgs.vulkan-headers super.VulkanMemoryAllocator;
990 vulkan-utils = addExtraLibrary pkgs.vulkan-headers super.vulkan-utils;
991
992 # https://github.com/dmwit/encoding/pull/3
993 encoding = doJailbreak (appendPatch ./patches/encoding-Cabal-2.0.patch super.encoding);
994
995 # Work around overspecified constraint on github ==0.18.
996 github-backup = doJailbreak super.github-backup;
997
998 # https://github.com/andrewthad/chronos/issues/62
999 # doctests are failing on newer GHC versions
1000 chronos = dontCheck super.chronos;
1001
1002 # Test suite depends on cabal-install
1003 doctest = dontCheck super.doctest;
1004
1005 # dontCheck: https://github.com/haskell-servant/servant-auth/issues/113
1006 # doJailbreak: waiting on revision 1 to hit hackage
1007 servant-auth-client = doJailbreak (dontCheck super.servant-auth-client);
1008 servant-auth-server = doJailbreak super.servant-auth-server;
1009
1010 # Generate cli completions for dhall.
1011 dhall = generateOptparseApplicativeCompletion "dhall" super.dhall;
1012 # For reasons that are not quire clear 'dhall-json' won't compile without 'tasty 1.4' due to its tests
1013 # https://github.com/commercialhaskell/stackage/issues/5795
1014 # This issue can be mitigated with 'dontCheck' which skips the tests and their compilation.
1015 dhall-json = generateOptparseApplicativeCompletions ["dhall-to-json" "dhall-to-yaml"] (dontCheck super.dhall-json);
1016 dhall-nix = generateOptparseApplicativeCompletion "dhall-to-nix" super.dhall-nix;
1017 dhall-yaml = generateOptparseApplicativeCompletions ["dhall-to-yaml-ng" "yaml-to-dhall"] super.dhall-yaml;
1018 dhall-nixpkgs = generateOptparseApplicativeCompletion "dhall-to-nixpkgs" super.dhall-nixpkgs;
1019
1020 # https://github.com/haskell-hvr/netrc/pull/2#issuecomment-469526558
1021 netrc = doJailbreak super.netrc;
1022
1023 # https://github.com/haskell-hvr/hgettext/issues/14
1024 hgettext = doJailbreak super.hgettext;
1025
1026 # Generate shell completion.
1027 cabal2nix = generateOptparseApplicativeCompletion "cabal2nix" super.cabal2nix;
1028
1029 ormolu = generateOptparseApplicativeCompletion "ormolu" super.ormolu;
1030
1031 stack =
1032 generateOptparseApplicativeCompletion "stack"
1033 (doJailbreak # for Cabal constraint added on hackage
1034 (appendPatch
1035 (fetchpatch {
1036 # https://github.com/commercialhaskell/stack/pull/5559
1037 # When removing, also remove doJailbreak.
1038 name = "stack-pull-5559.patch";
1039 url = "https://github.com/hercules-ci/stack/compare/v2.7.5...brandon-leapyear/chinn/cabal-0.patch";
1040 sha256 = "sha256-OXmdGgQ2KSKtQKOK6eePLgvUOTlzac544HQYKJpcjnU=";
1041 })
1042 (super.stack.overrideScope (self: super: {
1043 # stack 2.7.5 requires aeson <= 1.6.
1044 aeson = self.aeson_1_5_6_0;
1045 }))
1046 ));
1047
1048 # Too strict version bound on hashable-time.
1049 # Tests require newer package version.
1050 aeson_1_5_6_0 = dontCheck (doJailbreak super.aeson_1_5_6_0);
1051
1052 # musl fixes
1053 # dontCheck: use of non-standard strptime "%s" which musl doesn't support; only used in test
1054 unix-time = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.unix-time else super.unix-time;
1055
1056 # hslua has tests that appear to break when using musl.
1057 # https://github.com/hslua/hslua/issues/106
1058 # Note that hslua is currently version 1.3. However, in the latest version
1059 # (>= 2.0), hslua has been split into multiple packages and this override
1060 # will likely need to be moved to the hslua-core package.
1061 hslua = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.hslua else super.hslua;
1062
1063 # The test suite runs for 20+ minutes on a very fast machine, which feels kinda disproportionate.
1064 prettyprinter = dontCheck super.prettyprinter;
1065 brittany = doJailbreak (dontCheck super.brittany); # Outdated upperbound on ghc-exactprint: https://github.com/lspitzner/brittany/issues/342
1066
1067 # Fix with Cabal 2.2, https://github.com/guillaume-nargeot/hpc-coveralls/pull/73
1068 hpc-coveralls = appendPatch (fetchpatch {
1069 url = "https://github.com/guillaume-nargeot/hpc-coveralls/pull/73/commits/344217f513b7adfb9037f73026f5d928be98d07f.patch";
1070 sha256 = "056rk58v9h114mjx62f41x971xn9p3nhsazcf9zrcyxh1ymrdm8j";
1071 }) super.hpc-coveralls;
1072
1073 # sexpr is old, broken and has no issue-tracker. Let's fix it the best we can.
1074 sexpr = appendPatch ./patches/sexpr-0.2.1.patch
1075 (overrideCabal (drv: {
1076 isExecutable = false;
1077 libraryHaskellDepends = drv.libraryHaskellDepends ++ [self.QuickCheck];
1078 }) super.sexpr);
1079
1080 # https://github.com/haskell/hoopl/issues/50
1081 hoopl = dontCheck super.hoopl;
1082
1083 # Generate shell completion for spago
1084 spago = generateOptparseApplicativeCompletion "spago" super.spago;
1085
1086 # 2020-06-05: HACK: Package can not pass test suite,
1087 # Upstream Report: https://github.com/kcsongor/generic-lens/issues/83
1088 generic-lens = dontCheck super.generic-lens;
1089
1090 # https://github.com/danfran/cabal-macosx/issues/13
1091 cabal-macosx = dontCheck super.cabal-macosx;
1092
1093 # https://github.com/DanielG/cabal-helper/pull/123
1094 cabal-helper = doJailbreak super.cabal-helper;
1095
1096 # TODO(Profpatsch): factor out local nix store setup from
1097 # lib/tests/release.nix and use that for the tests of libnix
1098 # libnix = overrideCabal (old: {
1099 # testToolDepends = old.testToolDepends or [] ++ [ pkgs.nix ];
1100 # }) super.libnix;
1101 libnix = dontCheck super.libnix;
1102
1103 # dontCheck: The test suite tries to mess with ALSA, which doesn't work in the build sandbox.
1104 xmobar = dontCheck super.xmobar;
1105
1106 # https://github.com/mgajda/json-autotype/issues/25
1107 json-autotype = dontCheck super.json-autotype;
1108
1109 # Requires dlist <0.9 but it works fine with dlist-1.0
1110 # https://github.com/haskell-beam/beam/issues/581
1111 beam-core = doJailbreak super.beam-core;
1112
1113 # Requires pg_ctl command during tests
1114 beam-postgres = overrideCabal (drv: {
1115 testToolDepends = (drv.testToolDepends or []) ++ [pkgs.postgresql];
1116 }) super.beam-postgres;
1117
1118 # Fix for base >= 4.11
1119 scat = overrideCabal (drv: {
1120 patches = [(fetchpatch {
1121 url = "https://github.com/redelmann/scat/pull/6.diff";
1122 sha256 = "07nj2p0kg05livhgp1hkkdph0j0a6lb216f8x348qjasy0lzbfhl";
1123 })];
1124 }) super.scat;
1125
1126 # Fix build with attr-2.4.48 (see #53716)
1127 xattr = appendPatch ./patches/xattr-fix-build.patch super.xattr;
1128
1129 esqueleto =
1130 overrideCabal
1131 (drv: {
1132 postPatch = drv.postPatch or "" + ''
1133 # patch out TCP usage: https://nixos.org/manual/nixpkgs/stable/#sec-postgresqlTestHook-tcp
1134 sed -i test/PostgreSQL/Test.hs \
1135 -e s^host=localhost^^
1136 '';
1137 # Match the test suite defaults (or hardcoded values?)
1138 preCheck = drv.preCheck or "" + ''
1139 PGUSER=esqutest
1140 PGDATABASE=esqutest
1141 '';
1142 testFlags = drv.testFlags or [] ++ [
1143 # We don't have a MySQL test hook yet
1144 "--skip=/Esqueleto/MySQL"
1145 ];
1146 testToolDepends = drv.testToolDepends or [] ++ [
1147 pkgs.postgresql
1148 pkgs.postgresqlTestHook
1149 ];
1150 })
1151 super.esqueleto;
1152
1153 # Requires API keys to run tests
1154 algolia = dontCheck super.algolia;
1155
1156 # antiope-s3's latest stackage version has a hspec < 2.6 requirement, but
1157 # hspec which isn't in stackage is already past that
1158 antiope-s3 = doJailbreak super.antiope-s3;
1159
1160 # Has tasty < 1.2 requirement, but works just fine with 1.2
1161 temporary-resourcet = doJailbreak super.temporary-resourcet;
1162
1163 # Test suite doesn't work with current QuickCheck
1164 # https://github.com/pruvisto/heap/issues/11
1165 heap = dontCheck super.heap;
1166
1167 # Test suite won't link for no apparent reason.
1168 constraints-deriving = dontCheck super.constraints-deriving;
1169
1170 # https://github.com/elliottt/hsopenid/issues/15
1171 openid = markBroken super.openid;
1172
1173 # https://github.com/erikd/hjsmin/issues/32
1174 hjsmin = dontCheck super.hjsmin;
1175
1176 # upstream issue: https://github.com/vmchale/atspkg/issues/12
1177 language-ats = dontCheck super.language-ats;
1178
1179 # Remove for hail > 0.2.0.0
1180 hail = overrideCabal (drv: {
1181 patches = [
1182 (fetchpatch {
1183 # Relax dependency constraints,
1184 # upstream PR: https://github.com/james-preston/hail/pull/13
1185 url = "https://patch-diff.githubusercontent.com/raw/james-preston/hail/pull/13.patch";
1186 sha256 = "039p5mqgicbhld2z44cbvsmam3pz0py3ybaifwrjsn1y69ldsmkx";
1187 })
1188 (fetchpatch {
1189 # Relax dependency constraints,
1190 # upstream PR: https://github.com/james-preston/hail/pull/16
1191 url = "https://patch-diff.githubusercontent.com/raw/james-preston/hail/pull/16.patch";
1192 sha256 = "0dpagpn654zjrlklihsg911lmxjj8msylbm3c68xa5aad1s9gcf7";
1193 })
1194 ];
1195 }) super.hail;
1196
1197 # https://github.com/kazu-yamamoto/dns/issues/150
1198 dns = dontCheck super.dns;
1199
1200 # https://github.com/haskell-servant/servant-blaze/issues/17
1201 servant-blaze = doJailbreak super.servant-blaze;
1202
1203 # https://github.com/haskell-servant/servant-ekg/issues/15
1204 servant-ekg = doJailbreak super.servant-ekg;
1205
1206 # the test suite has an overly tight restriction on doctest
1207 # See https://github.com/ekmett/perhaps/pull/5
1208 perhaps = doJailbreak super.perhaps;
1209
1210 # it wants to build a statically linked binary by default
1211 hledger-flow = overrideCabal (drv: {
1212 postPatch = (drv.postPatch or "") + ''
1213 substituteInPlace hledger-flow.cabal --replace "-static" ""
1214 '';
1215 }) super.hledger-flow;
1216
1217 # Chart-tests needs and compiles some modules from Chart itself
1218 Chart-tests = overrideCabal (old: {
1219 # https://github.com/timbod7/haskell-chart/issues/233
1220 jailbreak = true;
1221 preCheck = old.preCheck or "" + ''
1222 tar --one-top-level=../chart --strip-components=1 -xf ${self.Chart.src}
1223 '';
1224 }) (addExtraLibrary self.QuickCheck super.Chart-tests);
1225
1226 # This breaks because of version bounds, but compiles and runs fine.
1227 # Last commit is 5 years ago, so we likely won't get upstream fixed soon.
1228 # https://bitbucket.org/rvlm/hakyll-contrib-hyphenation/src/master/
1229 # Therefore we jailbreak it.
1230 hakyll-contrib-hyphenation = doJailbreak super.hakyll-contrib-hyphenation;
1231 # 2021-10-04: too strict upper bound on Hakyll
1232 hakyll-filestore = doJailbreak super.hakyll-filestore;
1233
1234 # 2020-06-22: NOTE: > 0.4.0 => rm Jailbreak: https://github.com/serokell/nixfmt/issues/71
1235 nixfmt = doJailbreak super.nixfmt;
1236
1237 # The test suite depends on an impure cabal-install installation in
1238 # $HOME, which we don't have in our build sandbox.
1239 cabal-install-parsers = dontCheck (super.cabal-install-parsers.override {
1240 Cabal = self.Cabal_3_6_3_0;
1241 });
1242
1243 # 2022-03-12: Pick patches from master for compat with Stackage Nightly
1244 gitit = appendPatches [
1245 (fetchpatch {
1246 name = "gitit-allow-pandoc-2.17.patch";
1247 url = "https://github.com/jgm/gitit/commit/9eddd1d3bde46bccb23c6d21e15b289f2a9ebe66.patch";
1248 sha256 = "09ahvwyaqzqaa9gnpbffncs9574d20mfy30zz2ww67cmm8f2a8iv";
1249 })
1250 (fetchpatch {
1251 name = "gitit-fix-build-with-hoauth2-2.3.0.patch";
1252 url = "https://github.com/jgm/gitit/commit/fd534c0155eef1790500c834e612ab22cf9b67b6.patch";
1253 sha256 = "0hmlqkavn8hr0b4y4hxs1yyg0r79ylkzhzwy1dzbb3a2q86ydd2f";
1254 })
1255 ] super.gitit;
1256
1257 # Test suite requires database
1258 persistent-mysql = dontCheck super.persistent-mysql;
1259 persistent-postgresql =
1260 overrideCabal
1261 (drv: {
1262 postPatch = drv.postPath or "" + ''
1263 # patch out TCP usage: https://nixos.org/manual/nixpkgs/stable/#sec-postgresqlTestHook-tcp
1264 # NOTE: upstream host variable takes only two values...
1265 sed -i test/PgInit.hs \
1266 -e s^'host=" <> host <> "'^^
1267 '';
1268 preCheck = drv.preCheck or "" + ''
1269 PGDATABASE=test
1270 PGUSER=test
1271 '';
1272 testToolDepends = drv.testToolDepends or [] ++ [
1273 pkgs.postgresql
1274 pkgs.postgresqlTestHook
1275 ];
1276 })
1277 super.persistent-postgresql;
1278
1279 # Fix EdisonAPI and EdisonCore for GHC 8.8:
1280 # https://github.com/robdockins/edison/pull/16
1281 EdisonAPI = appendPatch (fetchpatch {
1282 url = "https://github.com/robdockins/edison/pull/16/commits/8da6c0f7d8666766e2f0693425c347c0adb492dc.patch";
1283 postFetch = ''
1284 ${pkgs.buildPackages.patchutils}/bin/filterdiff --include='a/edison-api/*' --strip=1 "$out" > "$tmpfile"
1285 mv "$tmpfile" "$out"
1286 '';
1287 sha256 = "0yi5pz039lcm4pl9xnl6krqxyqq5rgb5b6m09w0sfy06x0n4x213";
1288 }) super.EdisonAPI;
1289
1290 EdisonCore = appendPatch (fetchpatch {
1291 url = "https://github.com/robdockins/edison/pull/16/commits/8da6c0f7d8666766e2f0693425c347c0adb492dc.patch";
1292 postFetch = ''
1293 ${pkgs.buildPackages.patchutils}/bin/filterdiff --include='a/edison-core/*' --strip=1 "$out" > "$tmpfile"
1294 mv "$tmpfile" "$out"
1295 '';
1296 sha256 = "097wqn8hxsr50b9mhndg5pjim5jma2ym4ylpibakmmb5m98n17zp";
1297 }) super.EdisonCore;
1298
1299 # 2021-12-26: Too strict bounds on doctest
1300 polysemy-plugin = doJailbreak super.polysemy-plugin;
1301
1302 # hasn‘t bumped upper bounds
1303 # upstream: https://github.com/obsidiansystems/which/pull/6
1304 which = doJailbreak super.which;
1305
1306 # the test suite attempts to run the binaries built in this package
1307 # through $PATH but they aren't in $PATH
1308 dhall-lsp-server = dontCheck super.dhall-lsp-server;
1309
1310 # https://github.com/ocharles/weeder/issues/15
1311 weeder = doJailbreak super.weeder;
1312
1313 # Requested version bump on upstream https://github.com/obsidiansystems/constraints-extras/issues/32
1314 constraints-extras = doJailbreak super.constraints-extras;
1315
1316 # Necessary for stack
1317 # x509-validation test suite hangs: upstream https://github.com/vincenthz/hs-certificate/issues/120
1318 # tls test suite fails: upstream https://github.com/vincenthz/hs-tls/issues/434
1319 x509-validation = dontCheck super.x509-validation;
1320 tls = dontCheck super.tls;
1321
1322 # 2022-03-16: lens bound can be loosened https://github.com/ghcjs/jsaddle-dom/issues/19
1323 jsaddle-dom = overrideCabal (old: {
1324 postPatch = old.postPatch or "" + ''
1325 sed -i 's/lens.*4.20/lens/' jsaddle-dom.cabal
1326 '';
1327 }) super.jsaddle-dom;
1328
1329 # Tests disabled and broken override needed because of missing lib chrome-test-utils: https://github.com/reflex-frp/reflex-dom/issues/392
1330 # 2022-03-16: Pullrequest for ghc 9 compat https://github.com/reflex-frp/reflex-dom/pull/433
1331 reflex-dom-core = doDistribute (unmarkBroken (dontCheck
1332 (appendPatch
1333 (fetchpatch {
1334 url = "https://github.com/reflex-frp/reflex-dom/compare/a0459deafd296656b3e99db01ea7f65b89b0948c...56fa8a484ccfc7d3365d07fea3caa430155dbcac.patch";
1335 sha256 = "sha256-azMF3uX7S1rKKRAVjY+xP2XbQKHvEY/9nU7cH81KKPA=";
1336 relative = "reflex-dom-core";
1337 })
1338 super.reflex-dom-core)));
1339
1340 # Tests disabled because they assume to run in the whole jsaddle repo and not the hackage tarbal of jsaddle-warp.
1341 jsaddle-warp = dontCheck super.jsaddle-warp;
1342
1343 # 2020-06-24: Jailbreaking because of restrictive test dep bounds
1344 # Upstream issue: https://github.com/kowainik/trial/issues/62
1345 trial = doJailbreak super.trial;
1346
1347 # 2020-06-24: Tests are broken in hackage distribution.
1348 # See: https://github.com/robstewart57/rdf4h/issues/39
1349 rdf4h = dontCheck super.rdf4h;
1350
1351 # hasn't bumped upper bounds
1352 # test fails: "floskell-test: styles/base.md: openBinaryFile: does not exist (No such file or directory)"
1353 # https://github.com/ennocramer/floskell/issues/48
1354 floskell = dontCheck (doJailbreak super.floskell);
1355
1356 # hasn't bumped upper bounds
1357 # test fails because of a "Warning: Unused LANGUAGE pragma"
1358 # https://github.com/ennocramer/monad-dijkstra/issues/4
1359 monad-dijkstra = dontCheck (doJailbreak super.monad-dijkstra);
1360
1361 # Fixed upstream but not released to Hackage yet:
1362 # https://github.com/k0001/hs-libsodium/issues/2
1363 libsodium = overrideCabal (drv: {
1364 libraryToolDepends = (drv.libraryToolDepends or []) ++ [self.buildHaskellPackages.c2hs];
1365 }) super.libsodium;
1366
1367 # Too strict version bounds on haskell-gi
1368 gi-cairo-render = doJailbreak super.gi-cairo-render;
1369 gi-cairo-connector = doJailbreak super.gi-cairo-connector;
1370
1371 svgcairo = appendPatches [
1372 # Remove when https://github.com/gtk2hs/svgcairo/pull/12 goes in.
1373 (fetchpatch {
1374 url = "https://github.com/gtk2hs/svgcairo/commit/348c60b99c284557a522baaf47db69322a0a8b67.patch";
1375 sha256 = "0akhq6klmykvqd5wsbdfnnl309f80ds19zgq06sh1mmggi54dnf3";
1376 })
1377 # Remove when https://github.com/gtk2hs/svgcairo/pull/13 goes in.
1378 (fetchpatch {
1379 url = "https://github.com/dalpd/svgcairo/commit/d1e0d7ae04c1edca83d5b782e464524cdda6ae85.patch";
1380 sha256 = "1pq9ld9z67zsxj8vqjf82qwckcp69lvvnrjb7wsyb5jc6jaj3q0a";
1381 })
1382 ] super.svgcairo;
1383
1384 # Missing -Iinclude parameter to doc-tests (pull has been accepted, so should be resolved when 0.5.3 released)
1385 # https://github.com/lehins/massiv/pull/104
1386 massiv = dontCheck super.massiv;
1387
1388 # Upstream PR: https://github.com/jkff/splot/pull/9
1389 splot = appendPatch (fetchpatch {
1390 url = "https://github.com/jkff/splot/commit/a6710b05470d25cb5373481cf1cfc1febd686407.patch";
1391 sha256 = "1c5ck2ibag2gcyag6rjivmlwdlp5k0dmr8nhk7wlkzq2vh7zgw63";
1392 }) super.splot;
1393
1394 # Tests are broken because of missing files in hackage tarball.
1395 # https://github.com/jgm/commonmark-hs/issues/55
1396 commonmark-extensions = dontCheck super.commonmark-extensions;
1397
1398 # Fails with encoding problems, likely needs locale data.
1399 # Test can be executed by adding which to testToolDepends and
1400 # $PWD/dist/build/haskeline-examples-Test to $PATH.
1401 haskeline_0_8_2 = dontCheck super.haskeline_0_8_2;
1402
1403 # Too strict upper bound on HTF
1404 # https://github.com/nikita-volkov/stm-containers/issues/29
1405 stm-containers = doJailbreak super.stm-containers;
1406
1407 # https://github.com/agrafix/Spock/issues/180
1408 # Ignore Stackage LTS bound so we can compile Spock-core again. All other
1409 # reverse dependencies of reroute are marked as broken in nixpkgs, so
1410 # upgrading reroute is probably unproblematic.
1411 reroute = doDistribute self.reroute_0_7_0_0;
1412
1413 # Test suite fails to compile https://github.com/agrafix/Spock/issues/177
1414 Spock = dontCheck super.Spock;
1415
1416 # https://github.com/strake/filtrable.hs/issues/6
1417 filtrable = doJailbreak super.filtrable;
1418
1419 # hasura packages need some extra care
1420 graphql-engine = overrideCabal (drv: {
1421 patches = [
1422 # Compat with unordered-containers >= 0.2.15.0
1423 (fetchpatch {
1424 name = "hasura-graphql-engine-updated-deps.patch";
1425 url = "https://github.com/hasura/graphql-engine/commit/d50aae87a58794bc1fc66c7a60acb0c34b5e70c7.patch";
1426 stripLen = 1;
1427 excludes = [ "cabal.project.freeze" ];
1428 sha256 = "0lb5l9vfynr85i9xs53w4mpgczp04ncxz7846n3y91ri34fa87v3";
1429 })
1430 # Compat with hashable >= 1.3.4.0
1431 (fetchpatch {
1432 name = "hasura-graphql-engine-hashable-1.3.4.0.patch";
1433 url = "https://github.com/hasura/graphql-engine/commit/e48b2287315fb09005ffd52c0a686dc321171ae2.patch";
1434 sha256 = "1jppnanmsyl8npyf59s0d8bgjy7bq50vkh5zx4888jy6jqh27jb6";
1435 stripLen = 1;
1436 })
1437 # Compat with unordered-containers >= 0.2.17.0
1438 (fetchpatch {
1439 name = "hasura-graphql-engine-unordered-containers-0.2.17.0.patch";
1440 url = "https://github.com/hasura/graphql-engine/commit/3a1eb3128a2ded2da7c5fef089738890828cce03.patch";
1441 sha256 = "0vz7s8m8mjvv728vm4q0dvvrirvydaw7xks30b5ddj9f6a72a2f1";
1442 stripLen = 1;
1443 })
1444 ];
1445 doHaddock = false;
1446 version = "2.3.1";
1447 }) (super.graphql-engine.override {
1448 immortal = self.immortal_0_2_2_1;
1449 resource-pool = self.hasura-resource-pool;
1450 ekg-core = self.hasura-ekg-core;
1451 ekg-json = self.hasura-ekg-json;
1452 });
1453 hasura-ekg-json = super.hasura-ekg-json.override {
1454 ekg-core = self.hasura-ekg-core;
1455 };
1456 pg-client = overrideCabal (drv: {
1457 librarySystemDepends = with pkgs; [ postgresql krb5.dev openssl.dev ];
1458 testToolDepends = drv.testToolDepends or [] ++ [
1459 pkgs.postgresql pkgs.postgresqlTestHook
1460 ];
1461 preCheck = drv.preCheck or "" + ''
1462 # empty string means use default connection
1463 export DATABASE_URL=""
1464 '';
1465 }) (super.pg-client.override {
1466 resource-pool = self.hasura-resource-pool;
1467 ekg-core = self.hasura-ekg-core;
1468 });
1469
1470 # https://github.com/bos/statistics/issues/170
1471 statistics = dontCheck super.statistics;
1472
1473 hcoord = overrideCabal (drv: {
1474 # Remove when https://github.com/danfran/hcoord/pull/8 is merged.
1475 patches = [
1476 (fetchpatch {
1477 url = "https://github.com/danfran/hcoord/pull/8/commits/762738b9e4284139f5c21f553667a9975bad688e.patch";
1478 sha256 = "03r4jg9a6xh7w3jz3g4bs7ff35wa4rrmjgcggq51y0jc1sjqvhyz";
1479 })
1480 ];
1481 # Remove when https://github.com/danfran/hcoord/issues/9 is closed.
1482 doCheck = false;
1483 }) super.hcoord;
1484
1485 # Tests rely on `Int` being 64-bit: https://github.com/hspec/hspec/issues/431.
1486 # Also, we need QuickCheck-2.14.x to build the test suite, which isn't easy in LTS-16.x.
1487 # So let's not go there and just disable the tests altogether.
1488 hspec-core = dontCheck super.hspec-core;
1489
1490 # github.com/ucsd-progsys/liquidhaskell/issues/1729
1491 liquidhaskell = super.liquidhaskell.override { Diff = self.Diff_0_3_4; };
1492 Diff_0_3_4 = dontCheck super.Diff_0_3_4;
1493
1494 # jailbreaking pandoc-crossref because it has not bumped its upper bound on pandoc
1495 # https://github.com/lierdakil/pandoc-crossref/issues/350
1496 pandoc-crossref = doJailbreak super.pandoc-crossref;
1497
1498 # The test suite attempts to read `/etc/resolv.conf`, which doesn't work in the sandbox.
1499 domain-auth = dontCheck super.domain-auth;
1500
1501 # Too tight version bounds, see https://github.com/haskell-hvr/microaeson/pull/4
1502 microaeson = doJailbreak super.microaeson;
1503
1504 # - Deps are required during the build for testing and also during execution,
1505 # so add them to build input and also wrap the resulting binary so they're in
1506 # PATH.
1507 # - Patch can be removed on next package set bump
1508 update-nix-fetchgit = let deps = [ pkgs.git pkgs.nix pkgs.nix-prefetch-git ];
1509 in generateOptparseApplicativeCompletion "update-nix-fetchgit" (overrideCabal
1510 (drv: {
1511 buildTools = drv.buildTools or [ ] ++ [ pkgs.buildPackages.makeWrapper ];
1512 postInstall = drv.postInstall or "" + ''
1513 wrapProgram "$out/bin/update-nix-fetchgit" --prefix 'PATH' ':' "${
1514 lib.makeBinPath deps
1515 }"
1516 '';
1517 }) (addTestToolDepends deps (
1518 appendPatch (fetchpatch {
1519 url = "https://github.com/expipiplus1/update-nix-fetchgit/commit/2a4229b04aaeec025f1400a39f4e6390af760b54.patch";
1520 sha256 = "sha256-G3abFWykpvtsh8l3GZhkNUpBo7zRb9Ve4d6mjizysIo=";
1521 includes = [ "src/Update/Nix/FetchGit/Prefetch.hs" ];
1522 })
1523 super.update-nix-fetchgit)));
1524
1525
1526 # Our quickcheck-instances is too old for the newer binary-instances, but
1527 # quickcheck-instances is only used in the tests of binary-instances.
1528 binary-instances = dontCheck super.binary-instances;
1529
1530 # Raise version bounds: https://github.com/idontgetoutmuch/binary-low-level/pull/16
1531 binary-strict = appendPatches [
1532 (fetchpatch {
1533 url = "https://github.com/idontgetoutmuch/binary-low-level/pull/16/commits/c16d06a1f274559be0dea0b1f7497753e1b1a8ae.patch";
1534 sha256 = "sha256-deSbudy+2je1SWapirWZ1IVWtJ0sJVR5O/fnaAaib2g=";
1535 })
1536 ] super.binary-strict;
1537
1538 # 2020-11-19: Checks nearly fixed, but still disabled because of flaky tests:
1539 # https://github.com/haskell/haskell-language-server/issues/610
1540 # https://github.com/haskell/haskell-language-server/issues/611
1541 haskell-language-server = lib.pipe super.haskell-language-server [
1542 dontCheck
1543 (appendConfigureFlags ["-ftactics"])
1544 (overrideCabal (old: {
1545 libraryHaskellDepends = old.libraryHaskellDepends ++ [
1546 super.hls-tactics-plugin
1547 ];
1548 }))
1549 ];
1550
1551 lsp = assert super.lsp.version == "1.4.0.0"; dontCheck super.lsp;
1552
1553 # 2021-05-08: Tests fail: https://github.com/haskell/haskell-language-server/issues/1809
1554 hls-eval-plugin = dontCheck super.hls-eval-plugin;
1555
1556 # 2021-06-20: Tests fail: https://github.com/haskell/haskell-language-server/issues/1949
1557 hls-refine-imports-plugin = dontCheck super.hls-refine-imports-plugin;
1558
1559 # 2021-09-14: Tests are broken because of undeterministic variable names
1560 hls-tactics-plugin = dontCheck super.hls-tactics-plugin;
1561
1562 # 2021-11-20: https://github.com/haskell/haskell-language-server/pull/2373
1563 hls-explicit-imports-plugin = dontCheck super.hls-explicit-imports-plugin;
1564
1565 # 2021-11-20: https://github.com/haskell/haskell-language-server/pull/2374
1566 hls-module-name-plugin = dontCheck super.hls-module-name-plugin;
1567
1568 # 2021-11-20: Testsuite hangs.
1569 # https://github.com/haskell/haskell-language-server/issues/2375
1570 hls-pragmas-plugin = dontCheck super.hls-pragmas-plugin;
1571
1572 # 2021-03-21: Test hangs
1573 # https://github.com/haskell/haskell-language-server/issues/1562
1574 # 2021-11-13: Too strict upper bound on implicit-hie-cradle
1575 ghcide = doJailbreak (dontCheck super.ghcide);
1576
1577 data-tree-print = doJailbreak super.data-tree-print;
1578
1579 # 2020-11-15: nettle tests are pre MonadFail change
1580 # https://github.com/stbuehler/haskell-nettle/issues/10
1581 nettle = dontCheck super.nettle;
1582
1583 # 2020-11-17: Disable tests for hackage-security because of this issue:
1584 # https://github.com/haskell/hackage-security/issues/247
1585 hackage-security = dontCheck super.hackage-security;
1586
1587 # 2020-11-17: persistent-test is ahead of the persistent version in stack
1588 persistent-sqlite = dontCheck super.persistent-sqlite;
1589
1590 # The tests for semver-range need to be updated for the MonadFail change in
1591 # ghc-8.8:
1592 # https://github.com/adnelson/semver-range/issues/15
1593 semver-range = dontCheck super.semver-range;
1594
1595 # https://github.com/obsidiansystems/dependent-sum/issues/55
1596 dependent-sum = doJailbreak super.dependent-sum;
1597
1598 # 2022-03-16 upstream is not updating bounds: https://github.com/srid/rib/issues/169
1599 rib-core = doJailbreak (super.rib-core.override { relude = doJailbreak super.relude_0_7_0_0; });
1600 neuron = assert super.neuron.version == "1.0.0.0"; overrideCabal {
1601 # neuron is soon to be deprecated
1602 # Fixing another ghc 9.0 bug here
1603 postPatch = ''
1604 sed -i 's/asks routeConfigRouteLink/asks (\\x -> routeConfigRouteLink x)/' src/lib/Neuron/Web/Route.hs
1605 '';
1606 }
1607 (doJailbreak (super.neuron.override {
1608 clay = dontCheck self.clay_0_13_3;
1609 relude = doJailbreak self.relude_0_7_0_0;
1610 }));
1611
1612 reflex-dom-pandoc = super.reflex-dom-pandoc.override { clay = dontCheck self.clay_0_13_3; };
1613
1614 # 2022-06-19: Disable checks because of https://github.com/reflex-frp/reflex/issues/475
1615 reflex = dontCheck super.reflex;
1616
1617 # 2020-11-19: jailbreaking because of pretty-simple bound out of date
1618 # https://github.com/kowainik/stan/issues/408
1619 # Tests disabled because of: https://github.com/kowainik/stan/issues/409
1620 stan = doJailbreak (dontCheck super.stan);
1621
1622 # Due to tests restricting base in 0.8.0.0 release
1623 http-media = doJailbreak super.http-media;
1624
1625 # 2022-03-19: strict upper bounds https://github.com/poscat0x04/hinit/issues/2
1626 hinit = doJailbreak (generateOptparseApplicativeCompletion "hi" (super.hinit.override { haskeline = self.haskeline_0_8_2; }));
1627
1628 # 2022-03-19: Keeping jailbreak because of tons of strict bounds: https://github.com/snapframework/snap/issues/220
1629 snap = doJailbreak super.snap;
1630
1631 # 2020-11-23: Jailbreaking until: https://github.com/michaelt/text-pipes/pull/29
1632 pipes-text = doJailbreak super.pipes-text;
1633
1634 # 2020-11-23: https://github.com/Rufflewind/blas-hs/issues/8
1635 blas-hs = dontCheck super.blas-hs;
1636
1637 # 2020-11-23: https://github.com/cdornan/fmt/issues/30
1638 fmt = dontCheck super.fmt;
1639
1640 # 2020-11-27: Tests broken
1641 # Upstream issue: https://github.com/haskell-servant/servant-swagger/issues/129
1642 servant-swagger = dontCheck super.servant-swagger;
1643
1644 # Strange doctest problems
1645 # https://github.com/biocad/servant-openapi3/issues/30
1646 servant-openapi3 = dontCheck super.servant-openapi3;
1647
1648 # Give hspec 2.10.* correct dependency versions without overrideScope
1649 hspec_2_10_0_1 = doDistribute (super.hspec_2_10_0_1.override {
1650 hspec-discover = self.hspec-discover_2_10_0_1;
1651 hspec-core = self.hspec-core_2_10_0_1;
1652 });
1653 hspec-discover_2_10_0_1 = super.hspec-discover_2_10_0_1.override {
1654 hspec-meta = self.hspec-meta_2_9_3;
1655 };
1656 hspec-core_2_10_0_1 = super.hspec-core_2_10_0_1.override {
1657 hspec-meta = self.hspec-meta_2_9_3;
1658 };
1659
1660 # Point hspec 2.7.10 to correct dependencies
1661 hspec_2_7_10 = doDistribute (super.hspec_2_7_10.override {
1662 hspec-discover = self.hspec-discover_2_7_10;
1663 hspec-core = self.hspec-core_2_7_10;
1664 });
1665
1666 # waiting for aeson bump
1667 servant-swagger-ui-core = doJailbreak super.servant-swagger-ui-core;
1668
1669 hercules-ci-agent = generateOptparseApplicativeCompletion "hercules-ci-agent" super.hercules-ci-agent;
1670
1671 # Test suite doesn't compile with aeson 2.0
1672 # https://github.com/hercules-ci/hercules-ci-agent/pull/387
1673 hercules-ci-api-agent = dontCheck super.hercules-ci-api-agent;
1674
1675 hercules-ci-cli = lib.pipe super.hercules-ci-cli [
1676 unmarkBroken
1677 (overrideCabal (drv: { hydraPlatforms = super.hercules-ci-cli.meta.platforms; }))
1678 # See hercules-ci-optparse-applicative in non-hackage-packages.nix.
1679 (addBuildDepend super.hercules-ci-optparse-applicative)
1680 (generateOptparseApplicativeCompletion "hci")
1681 ];
1682
1683 pipes-aeson = appendPatches [
1684 # Dependency of the aeson-2 patch
1685 (fetchpatch {
1686 name = "pipes-aeson-add-loop.patch";
1687 url = "https://github.com/k0001/pipes-aeson/commit/d22133b4a678edbb52bcaec5079dc88ccc0de1d3.patch";
1688 sha256 = "sha256-5o5ys1P1+QB4rjLCYok5AcPRWCtRiecP/TqCFm8ulVY=";
1689 includes = ["src/Pipes/Aeson.hs" "src/Pipes/Aeson/Internal.hs" "src/Pipes/Aeson/Unchecked.hs"];
1690 })
1691 # https://github.com/k0001/pipes-aeson/pull/20
1692 (fetchpatch {
1693 name = "pipes-aeson-aeson-2.patch";
1694 url = "https://github.com/hercules-ci/pipes-aeson/commit/ac735c9cd459c6ef51ba82325d1c55eb67cb7b2c.patch";
1695 sha256 = "sha256-viWZ6D5t79x50RXiOjP6UeQ809opgNFYZOP+h+1KJh0=";
1696 includes = ["src/Pipes/Aeson.hs" "src/Pipes/Aeson/Internal.hs" "src/Pipes/Aeson/Unchecked.hs"];
1697 })
1698 ] super.pipes-aeson;
1699
1700 moto-postgresql = appendPatches [
1701 # https://gitlab.com/k0001/moto/-/merge_requests/3
1702 (fetchpatch {
1703 name = "moto-postgresql-monadfail.patch";
1704 url = "https://gitlab.com/k0001/moto/-/commit/09cc1c11d703c25f6e81325be6482dc7ec6cbf58.patch";
1705 relative = "moto-postgresql";
1706 sha256 = "sha256-f2JVX9VveShCeV+T41RQgacpUoh1izfyHlE6VlErkZM=";
1707 })
1708 ] (unmarkBroken super.moto-postgresql);
1709
1710 moto = appendPatches [
1711 # https://gitlab.com/k0001/moto/-/merge_requests/3
1712 (fetchpatch {
1713 name = "moto-ghc-9.0.patch";
1714 url = "https://gitlab.com/k0001/moto/-/commit/5b6f015a1271765005f03762f1f1aaed3a3198ed.patch";
1715 relative = "moto";
1716 sha256 = "sha256-RMa9tk+2ip3Ks73UFv9Ea9GEnElRtzIjdpld1Fx+dno=";
1717 })
1718 ] super.moto;
1719
1720 # Readline uses Distribution.Simple from Cabal 2, in a way that is not
1721 # compatible with Cabal 3. No upstream repository found so far
1722 readline = appendPatch ./patches/readline-fix-for-cabal-3.patch super.readline;
1723
1724 # 2020-12-05: this package requires a newer version of http-client,
1725 # but it still compiles with older version:
1726 # https://github.com/turion/essence-of-live-coding/pull/86
1727 essence-of-live-coding-warp = doJailbreak super.essence-of-live-coding-warp;
1728
1729 # 2020-12-06: Restrictive upper bounds w.r.t. pandoc-types (https://github.com/owickstrom/pandoc-include-code/issues/27)
1730 pandoc-include-code = doJailbreak super.pandoc-include-code;
1731
1732 # https://github.com/yesodweb/yesod/issues/1714
1733 yesod-core = dontCheck super.yesod-core;
1734
1735 # DerivingVia is not allowed in safe Haskell
1736 # https://github.com/strake/util.hs/issues/1
1737 util = appendConfigureFlags [
1738 "--ghc-option=-fno-safe-haskell"
1739 "--haddock-option=--optghc=-fno-safe-haskell"
1740 ] super.util;
1741 category = appendConfigureFlags [
1742 "--ghc-option=-fno-safe-haskell"
1743 "--haddock-option=--optghc=-fno-safe-haskell"
1744 ] super.category;
1745 alg = appendConfigureFlags [
1746 "--ghc-option=-fno-safe-haskell"
1747 "--haddock-option=--optghc=-fno-safe-haskell"
1748 ] super.alg;
1749
1750 # Break out of overspecified constraint on QuickCheck.
1751 algebraic-graphs = dontCheck super.algebraic-graphs;
1752 attoparsec = doJailbreak super.attoparsec; # https://github.com/haskell/attoparsec/pull/168
1753 cassava = doJailbreak super.cassava;
1754 filepath-bytestring = doJailbreak super.filepath-bytestring;
1755 ghc-source-gen = doJailbreak super.ghc-source-gen;
1756 haddock-library = doJailbreak super.haddock-library;
1757 HsYAML = doJailbreak super.HsYAML;
1758 http-api-data = doJailbreak super.http-api-data;
1759 lzma = doJailbreak super.lzma;
1760 psqueues = doJailbreak super.psqueues;
1761
1762 # Break out of overspecified constraint on QuickCheck.
1763 # https://github.com/Gabriel439/Haskell-Nix-Derivation-Library/pull/10
1764 nix-derivation = doJailbreak super.nix-derivation;
1765
1766 # Break out of overspecified constraint on QuickCheck.
1767 # Fixed by https://github.com/haskell-servant/servant/commit/08579ca0039410e04d6c36c975ddc20165819db6
1768 servant-client = doJailbreak super.servant-client;
1769 servant-client-core = doJailbreak super.servant-client-core;
1770
1771 # overly strict dependency on aeson
1772 # https://github.com/jaspervdj/profiteur/issues/33
1773 profiteur = doJailbreak super.profiteur;
1774
1775 # Test suite has overly strict bounds on tasty.
1776 # https://github.com/input-output-hk/nothunks/issues/9
1777 nothunks = doJailbreak super.nothunks;
1778
1779 # Allow building with recent versions of tasty.
1780 lukko = doJailbreak super.lukko;
1781
1782 # Allow building with older versions of http-client.
1783 http-client-restricted = doJailbreak super.http-client-restricted;
1784
1785 # Test suite fails, upstream not reachable for simple fix (not responsive on github)
1786 vivid-osc = dontCheck super.vivid-osc;
1787 vivid-supercollider = dontCheck super.vivid-supercollider;
1788
1789 # cabal-install switched to build type simple in 3.2.0.0
1790 # as a result, the cabal(1) man page is no longer installed
1791 # automatically. Instead we need to use the `cabal man`
1792 # command which generates the man page on the fly and
1793 # install it to $out/share/man/man1 ourselves in this
1794 # override.
1795 # The commit that introduced this change:
1796 # https://github.com/haskell/cabal/commit/91ac075930c87712eeada4305727a4fa651726e7
1797 cabal-install = overrideCabal (old: {
1798 postInstall = old.postInstall + ''
1799 mkdir -p "$out/share/man/man1"
1800 "$out/bin/cabal" man --raw > "$out/share/man/man1/cabal.1"
1801 '';
1802 }) super.cabal-install;
1803
1804 # while waiting for a new release: https://github.com/brendanhay/amazonka/pull/572
1805 amazonka = appendPatches [
1806 (fetchpatch {
1807 relative = "amazonka";
1808 url = "https://github.com/brendanhay/amazonka/commit/43ddd87b1ebd6af755b166e16336259ec025b337.patch";
1809 sha256 = "sha256-9Ed3qrLGRaNCdvqWMyg8ydAnqDkFqWKLLoObv/5jG54=";
1810 })
1811 ] (doJailbreak super.amazonka);
1812
1813 # Test suite does not compile.
1814 feed = dontCheck super.feed;
1815
1816 spacecookie = overrideCabal (old: {
1817 buildTools = (old.buildTools or []) ++ [ pkgs.buildPackages.installShellFiles ];
1818 # let testsuite discover the resulting binary
1819 preCheck = ''
1820 export SPACECOOKIE_TEST_BIN=./dist/build/spacecookie/spacecookie
1821 '' + (old.preCheck or "");
1822 # install man pages shipped in the sdist
1823 postInstall = ''
1824 installManPage docs/man/*
1825 '' + (old.postInstall or "");
1826 }) super.spacecookie;
1827
1828 # Patch and jailbreak can be removed at next release, chatter > 0.9.1.0
1829 # * Remove dependency on regex-tdfa-text
1830 # * Jailbreak as bounds on cereal are too strict
1831 # * Disable test suite which doesn't compile
1832 # https://github.com/creswick/chatter/issues/38
1833 chatter = appendPatch
1834 (fetchpatch {
1835 url = "https://github.com/creswick/chatter/commit/e8c15a848130d7d27b8eb5e73e8a0db1366b2e62.patch";
1836 sha256 = "1dzak8d12h54vss5fxnrclygz0fz9ygbqvxd5aifz5n3vrwwpj3g";
1837 })
1838 (dontCheck (doJailbreak (super.chatter.override { regex-tdfa-text = null; })));
1839
1840 # test suite doesn't compile anymore due to changed hunit/tasty APIs
1841 fullstop = dontCheck super.fullstop;
1842
1843 # https://github.com/jgm/pandoc/issues/7163
1844 pandoc = dontCheck super.pandoc;
1845
1846 # * doctests don't work without cabal
1847 # https://github.com/noinia/hgeometry/issues/132
1848 # * Too strict version bound on vector-builder
1849 # https://github.com/noinia/hgeometry/commit/a6abecb1ce4a7fd96b25cc1a5c65cd4257ecde7a#commitcomment-49282301
1850 hgeometry-combinatorial = dontCheck (doJailbreak super.hgeometry-combinatorial);
1851
1852 # Too strict version bounds on ansi-terminal
1853 # https://github.com/kowainik/co-log/pull/218
1854 co-log = doJailbreak super.co-log;
1855
1856 # Test suite has a too strict bound on base
1857 # https://github.com/jswebtools/language-ecmascript/pull/88
1858 language-ecmascript = doJailbreak super.language-ecmascript;
1859
1860 # Too strict bounds on containers
1861 # https://github.com/jswebtools/language-ecmascript-analysis/issues/1
1862 language-ecmascript-analysis = doJailbreak super.language-ecmascript-analysis;
1863
1864 # Too strict bounds on optparse-applicative
1865 # https://github.com/faylang/fay/pull/474
1866 fay = doJailbreak super.fay;
1867
1868 # Too strict version bounds on cryptonite.
1869 # Issue reported upstream, no bug tracker url yet.
1870 darcs = doJailbreak super.darcs;
1871
1872 # Too strict verion bounds on cryptonite and github.
1873 # PRs are merged, will be fixed next release or Hackage revision.
1874 nix-thunk = appendPatches [
1875 (fetchpatch {
1876 url = "https://github.com/obsidiansystems/nix-thunk/commit/49d27a85dd39cd9413c99958c67e596756a502b5.patch";
1877 sha256 = "1p1n0123yrbdqyfk4kx3gq6bdv65l1bxgbsg51ckcwclg54xp2p5";
1878 })
1879 (fetchpatch {
1880 url = "https://github.com/obsidiansystems/nix-thunk/commit/512867c651977265d5d8f456b538f7a364ec8a8b.patch";
1881 sha256 = "121yg26y4g28k8xv7y1j6c3pxm17vsjn3vi62kkc8g928c47yd02";
1882 })
1883 ] super.nix-thunk;
1884
1885 # list `modbus` in librarySystemDepends, correct to `libmodbus`
1886 libmodbus = overrideCabal (drv: {
1887 librarySystemDepends = [ pkgs.libmodbus ];
1888 }) super.libmodbus;
1889
1890 # 2021-04-02: Outdated optparse-applicative bound is fixed but not realeased on upstream.
1891 trial-optparse-applicative = assert super.trial-optparse-applicative.version == "0.0.0.0"; doJailbreak super.trial-optparse-applicative;
1892
1893 # 2021-04-02: Outdated optparse-applicative bound is fixed but not realeased on upstream.
1894 extensions = assert super.extensions.version == "0.0.0.1"; doJailbreak super.extensions;
1895
1896 # 2021-04-02: iCalendar is basically unmaintained.
1897 # There are PRs for bumping the bounds: https://github.com/chrra/iCalendar/pull/46
1898 iCalendar = overrideCabal {
1899 # Overriding bounds behind a cabal flag
1900 preConfigure = ''substituteInPlace iCalendar.cabal --replace "network >=2.6 && <2.7" "network -any"'';
1901 } (doJailbreak super.iCalendar);
1902
1903 # Apply patch from master relaxing the version bounds on tasty.
1904 # Can be removed at next release (current is 0.10.1.0).
1905 ginger = appendPatch
1906 (fetchpatch {
1907 url = "https://github.com/tdammers/ginger/commit/bd8cb39c1853d4fb4f663c4c201884575906acea.patch";
1908 sha256 = "1rdy53k0384g52bnc59j1f0i13hr4lbnbksfsabr4av6zmw9wmzf";
1909 }) super.ginger;
1910
1911 # Too strict version bounds on cryptonite
1912 # https://github.com/obsidiansystems/haveibeenpwned/issues/7
1913 haveibeenpwned = doJailbreak super.haveibeenpwned;
1914
1915 # Too strict version bounds on ghc-events
1916 # https://github.com/mpickering/hs-speedscope/issues/16
1917 hs-speedscope = doJailbreak super.hs-speedscope;
1918
1919 # Too strict version bounds on tasty
1920 # Can likely be removed next week (2021-04-09) when 1.1.1.1 is released.
1921 fused-effects = doJailbreak super.fused-effects;
1922
1923 # Test suite doesn't support base16-bytestring >= 1.0
1924 # https://github.com/centromere/blake2/issues/6
1925 blake2 = dontCheck super.blake2;
1926
1927 # Test suite doesn't support base16-bytestring >= 1.0
1928 # https://github.com/serokell/haskell-crypto/issues/25
1929 crypto-sodium = dontCheck super.crypto-sodium;
1930
1931 # Too strict version bounds on a bunch of libraries:
1932 # https://github.com/smallhadroncollider/taskell/issues/100
1933 # May be possible to remove at the next release (1.11.0)
1934 taskell = doJailbreak super.taskell;
1935
1936 # Polyfill for GHCs from the integer-simple days that don't bundle ghc-bignum
1937 ghc-bignum = super.ghc-bignum or self.mkDerivation {
1938 pname = "ghc-bignum";
1939 version = "1.0";
1940 sha256 = "0xl848q8z6qx2bi6xil0d35lra7wshwvysyfblki659d7272b1im";
1941 description = "GHC BigNum library";
1942 license = lib.licenses.bsd3;
1943 # ghc-bignum is not buildable if none of the three backends
1944 # is explicitly enabled. We enable Native for now as it doesn't
1945 # depend on anything else as oppossed to GMP and FFI.
1946 # Apply patch which fixes a compilation failure we encountered.
1947 # Will need to be kept until we can drop ghc-bignum entirely,
1948 # i. e. if GHC 8.10.* and 8.8.* have been removed.
1949 configureFlags = [ "-f" "Native" ];
1950 patches = [
1951 (fetchpatch {
1952 url = "https://gitlab.haskell.org/ghc/ghc/-/commit/08d1588bf38d83140a86817a7a615db486357d4f.patch";
1953 sha256 = "sha256-Y9WW0KDQ/qY2L9ObPvh1i/6lxXIlprbxzdSBDfiaMtE=";
1954 relative = "libraries/ghc-bignum";
1955 })
1956 ];
1957 };
1958
1959 # 2021-04-09: outdated base and alex-tools
1960 # PR pending https://github.com/glguy/language-lua/pull/6
1961 language-lua = doJailbreak super.language-lua;
1962
1963 # 2021-04-09: too strict time bound
1964 # PR pending https://github.com/zohl/cereal-time/pull/2
1965 cereal-time = doJailbreak super.cereal-time;
1966
1967 # 2021-04-16: too strict bounds on QuickCheck and tasty
1968 # https://github.com/hasufell/lzma-static/issues/1
1969 lzma-static = doJailbreak super.lzma-static;
1970
1971 # Too strict version bounds on base:
1972 # https://github.com/obsidiansystems/database-id/issues/1
1973 database-id-class = doJailbreak super.database-id-class;
1974
1975 cabal2nix-unstable = overrideCabal {
1976 passthru.updateScript = ../../../maintainers/scripts/haskell/update-cabal2nix-unstable.sh;
1977 } super.cabal2nix-unstable;
1978
1979 # Too strict version bounds on base
1980 # https://github.com/gibiansky/IHaskell/issues/1217
1981 ihaskell-display = doJailbreak super.ihaskell-display;
1982 ihaskell-basic = doJailbreak super.ihaskell-basic;
1983
1984 # Fixes too strict version bounds on regex libraries
1985 # Presumably to be removed at the next release
1986 # Test suite doesn't support hspec 2.8
1987 # https://github.com/yi-editor/yi/issues/1124
1988 yi-language = appendPatch (fetchpatch {
1989 url = "https://github.com/yi-editor/yi/commit/0d3bcb5ba4c237d57ce33a3dc39b63c56d890765.patch";
1990 relative = "yi-language";
1991 sha256 = "sha256-AVQLvul3ufxGQyoXud05qauclNanf6kunip0oJ/9lWQ=";
1992 }) (dontCheck super.yi-language);
1993
1994 # 2022-03-16: Upstream is not bumping bounds https://github.com/ghcjs/jsaddle/issues/123
1995 jsaddle = overrideCabal (drv: {
1996 # lift conditional version constraint on ref-tf
1997 postPatch = ''
1998 sed -i 's/ref-tf.*,/ref-tf,/' jsaddle.cabal
1999 sed -i 's/attoparsec.*,/attoparsec,/' jsaddle.cabal
2000 sed -i 's/(!name)/(! name)/' src/Language/Javascript/JSaddle/Object.hs
2001 '' + (drv.postPatch or "");
2002 }) (doJailbreak super.jsaddle);
2003
2004 # 2022-03-22: Jailbreak for base bound: https://github.com/reflex-frp/reflex-dom/pull/433
2005 reflex-dom = assert super.reflex-dom.version == "0.6.1.1"; doJailbreak super.reflex-dom;
2006
2007 # Tests need to lookup target triple x86_64-unknown-linux
2008 # https://github.com/llvm-hs/llvm-hs/issues/334
2009 llvm-hs = overrideCabal {
2010 doCheck = pkgs.stdenv.targetPlatform.system == "x86_64-linux";
2011 } super.llvm-hs;
2012
2013 # Fix build with bytestring >= 0.11 (GHC 9.2)
2014 # https://github.com/llvm-hs/llvm-hs/pull/389
2015 llvm-hs-pure = appendPatches [
2016 (fetchpatch {
2017 name = "llvm-hs-pure-bytestring-0.11.patch";
2018 url = "https://github.com/llvm-hs/llvm-hs/commit/fe8fd556e8d2cc028f61d4d7b4b6bf18c456d090.patch";
2019 sha256 = "sha256-1d4wQg6JEJL3GwmXQpvbW7VOY5DwjUPmIsLEEur0Kps=";
2020 relative = "llvm-hs-pure";
2021 excludes = [ "**/Triple.hs" ]; # doesn't exist in 9.0.0
2022 })
2023 ] super.llvm-hs-pure;
2024
2025 # * Fix build failure by picking patch from 8.5, we need
2026 # this version of sbv for petrinizer
2027 # * Pin version of crackNum that still exposes its library
2028 sbv_7_13 = appendPatch (fetchpatch {
2029 url = "https://github.com/LeventErkok/sbv/commit/57014b9c7c67dd9b63619a996e2c66e32c33c958.patch";
2030 sha256 = "10npa8nh2413n6p6qld795qfkbld08icm02bspmk93y0kabpgmgm";
2031 })
2032 (super.sbv_7_13.override {
2033 crackNum = self.crackNum_2_4;
2034 });
2035
2036 # Too strict bounds on dimensional
2037 # https://github.com/enomsg/science-constants-dimensional/pull/1
2038 science-constants-dimensional = doJailbreak super.science-constants-dimensional;
2039
2040 # Tests are flaky on busy machines, upstream doesn't intend to fix
2041 # https://github.com/merijn/paramtree/issues/4
2042 paramtree = dontCheck super.paramtree;
2043
2044 # Too strict version bounds on haskell-gi
2045 # https://github.com/owickstrom/gi-gtk-declarative/issues/100
2046 gi-gtk-declarative = doJailbreak super.gi-gtk-declarative;
2047 gi-gtk-declarative-app-simple = doJailbreak super.gi-gtk-declarative-app-simple;
2048
2049 # 2022-01-16 haskell-ci needs Cabal 3.6, ShellCheck 0.7.2
2050 haskell-ci = super.haskell-ci.overrideScope (self: super: {
2051 Cabal = self.Cabal_3_6_3_0;
2052 ShellCheck = self.ShellCheck_0_7_2;
2053 });
2054
2055 # Build haskell-ci from git repository
2056 haskell-ci-unstable = overrideSrc rec {
2057 version = "0.14.1-${builtins.substring 0 7 src.rev}";
2058 src = pkgs.fetchFromGitHub {
2059 owner = "haskell-CI";
2060 repo = "haskell-ci";
2061 rev = "8311a999b8e8be3aa31f65f314def256aa2d5535";
2062 sha256 = "169jaqm4xs2almmvqsk567wayxs0g6kn0l5877c03hzr3d9ykrav";
2063 };
2064 } self.haskell-ci;
2065
2066 large-hashable = lib.pipe (super.large-hashable.override {
2067 # https://github.com/factisresearch/large-hashable/commit/5ec9d2c7233fc4445303564047c992b693e1155c
2068 utf8-light = null;
2069 }) [
2070 # 2022-03-21: use version from git which supports GHC 9.{0,2} and aeson 2.0
2071 (assert super.large-hashable.version == "0.1.0.4"; overrideSrc {
2072 version = "unstable-2022-06-10";
2073 src = pkgs.fetchFromGitHub {
2074 owner = "factisresearch";
2075 repo = "large-hashable";
2076 rev = "4d149c828c185bcf05556d1660f79ff1aec7eaa1";
2077 sha256 = "141349qcw3m93jw95jcha9rsg2y8sn5ca5j59cv8xmci38k2nam0";
2078 };
2079 })
2080 # Provide newly added dependencies
2081 (overrideCabal (drv: {
2082 libraryHaskellDepends = drv.libraryHaskellDepends or [] ++ [
2083 self.cryptonite
2084 self.memory
2085 ];
2086 testHaskellDepends = drv.testHaskellDepends or [] ++ [
2087 self.inspection-testing
2088 ];
2089 }))
2090 # https://github.com/factisresearch/large-hashable/issues/24
2091 (overrideCabal (drv: {
2092 testFlags = drv.testFlags or [] ++ [
2093 "-n" "^Data.LargeHashable.Tests.Inspection:genericSumGetsOptimized$"
2094 ];
2095 }))
2096 ];
2097
2098 # BSON defaults to requiring network instead of network-bsd which is
2099 # required nowadays: https://github.com/mongodb-haskell/bson/issues/26
2100 bson = appendConfigureFlag "-f-_old_network" (super.bson.override {
2101 network = self.network-bsd;
2102 });
2103
2104 # 2021-05-14: Testsuite is failing.
2105 # https://github.com/kcsongor/generic-lens/issues/133
2106 generic-optics = dontCheck super.generic-optics;
2107
2108 # Too strict bound on random
2109 # https://github.com/haskell-hvr/missingh/issues/56
2110 MissingH = doJailbreak super.MissingH;
2111
2112 # Disable flaky tests
2113 # https://github.com/DavidEichmann/alpaca-netcode/issues/2
2114 alpaca-netcode = overrideCabal {
2115 testFlags = [ "--pattern" "!/[NOCI]/" ];
2116 } super.alpaca-netcode;
2117
2118 # 2021-05-22: Tests fail sometimes (even consistently on hydra)
2119 # when running a fs-related test with >= 12 jobs. To work around
2120 # this, run tests with only a single job.
2121 # https://github.com/vmchale/libarchive/issues/20
2122 libarchive = overrideCabal {
2123 testFlags = [ "-j1" ];
2124 } super.libarchive;
2125
2126 # unrestrict bounds for hashable and semigroups
2127 # https://github.com/HeinrichApfelmus/reactive-banana/issues/215
2128 reactive-banana = doJailbreak super.reactive-banana;
2129
2130 # Too strict bounds on QuickCheck
2131 # https://github.com/muesli4/table-layout/issues/16
2132 table-layout = doJailbreak super.table-layout;
2133
2134 # 2021-06-20: Outdated upper bounds
2135 # https://github.com/Porges/email-validate-hs/issues/58
2136 email-validate = doJailbreak super.email-validate;
2137
2138 # https://github.com/plow-technologies/hspec-golden-aeson/issues/17
2139 hspec-golden-aeson = dontCheck super.hspec-golden-aeson;
2140
2141 # 2021-11-05: jailBreak the too tight upper bound on haskus-utils-variant
2142 ghcup = doJailbreak (super.ghcup.overrideScope (self: super: {
2143 Cabal = self.Cabal_3_6_3_0;
2144 }));
2145
2146 # 2022-03-21: Newest stylish-haskell needs ghc-lib-parser-9_2
2147 stylish-haskell = (super.stylish-haskell.override {
2148 ghc-lib-parser = super.ghc-lib-parser_9_2_4_20220729;
2149 ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_2_1_1;
2150 });
2151
2152 ghc-lib-parser-ex_9_2_1_1 = super.ghc-lib-parser-ex_9_2_1_1.override {
2153 ghc-lib-parser = super.ghc-lib-parser_9_2_4_20220729;
2154 };
2155
2156 ghc-lib-parser-ex_9_2_0_4 = super.ghc-lib-parser-ex_9_2_0_4.override {
2157 ghc-lib-parser = super.ghc-lib-parser_9_2_4_20220729;
2158 };
2159
2160 hlint_3_4_1 = doDistribute (super.hlint_3_4_1.override {
2161 ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_2_0_4;
2162 });
2163
2164 # To strict bound on hspec
2165 # https://github.com/dagit/zenc/issues/5
2166 zenc = doJailbreak super.zenc;
2167
2168 # Release 1.0.0.0 added version bounds (was unrestricted before),
2169 # but with too strict lower bounds for our lts-18.
2170 # Disable aeson for now, future release should support it
2171 graphql =
2172 assert super.graphql.version == "1.0.3.0";
2173 appendConfigureFlags [
2174 "-f-json"
2175 ] (lib.warnIf (lib.versionAtLeast self.hspec.version "2.9.0") "@NixOS/haskell: Remove jailbreak for graphql" doJailbreak super.graphql);
2176
2177 # https://github.com/ajscholl/basic-cpuid/pull/1
2178 basic-cpuid = appendPatch (fetchpatch {
2179 url = "https://github.com/ajscholl/basic-cpuid/commit/2f2bd7a7b53103fb0cf26883f094db9d7659887c.patch";
2180 sha256 = "0l15ccfdys100jf50s9rr4p0d0ikn53bkh7a9qlk9i0y0z5jc6x1";
2181 }) super.basic-cpuid;
2182
2183 # Needs Cabal >= 3.4
2184 chs-cabal = super.chs-cabal.override {
2185 Cabal = self.Cabal_3_6_3_0;
2186 };
2187
2188 # 2021-08-18: streamly-posix was released with hspec 2.8.2, but it works with older versions too.
2189 streamly-posix = doJailbreak super.streamly-posix;
2190
2191 # Not running the "example" test because it requires a binary from lsps test
2192 # suite which is not part of the output of lsp.
2193 lsp-test = overrideCabal (old: { testTarget = "tests func-test"; }) super.lsp-test;
2194
2195 # 2021-09-14: Tests are flaky.
2196 hls-splice-plugin = dontCheck super.hls-splice-plugin;
2197
2198 # 2021-09-18: https://github.com/haskell/haskell-language-server/issues/2205
2199 hls-stylish-haskell-plugin = doJailbreak super.hls-stylish-haskell-plugin;
2200
2201 # Necesssary .txt files are not included in sdist.
2202 # https://github.com/haskell/haskell-language-server/pull/2887
2203 hls-change-type-signature-plugin = dontCheck super.hls-change-type-signature-plugin;
2204
2205 # Too strict bounds on hspec
2206 # https://github.com/haskell-works/hw-hspec-hedgehog/issues/62
2207 # https://github.com/haskell-works/hw-prim/issues/132
2208 # https://github.com/haskell-works/hw-ip/issues/107
2209 # https://github.com/haskell-works/bits-extra/issues/57
2210 hw-hspec-hedgehog = doJailbreak super.hw-hspec-hedgehog;
2211 hw-prim = doJailbreak super.hw-prim;
2212 hw-ip = doJailbreak super.hw-ip;
2213 bits-extra = doJailbreak super.bits-extra;
2214
2215 # Fixes https://github.com/NixOS/nixpkgs/issues/140613
2216 # https://github.com/recursion-schemes/recursion-schemes/issues/128
2217 recursion-schemes = appendPatch ./patches/recursion-schemes-128.patch super.recursion-schemes;
2218
2219 # Fix from https://github.com/brendanhay/gogol/pull/144 which has seen no release
2220 # Can't use fetchpatch as it required tweaking the line endings as the .cabal
2221 # file revision on hackage was gifted CRLF line endings
2222 gogol-core = appendPatch ./patches/gogol-core-144.patch super.gogol-core;
2223
2224 # Stackage LTS 19 still has 10.*
2225 hadolint = super.hadolint.override {
2226 language-docker = self.language-docker_11_0_0;
2227 };
2228
2229 nix-tree = super.nix-tree;
2230
2231 # test suite requires stack to run, https://github.com/dino-/photoname/issues/24
2232 photoname = dontCheck super.photoname;
2233
2234 # Upgrade of unordered-containers in Stackage causes ordering-sensitive test to fail
2235 # https://github.com/commercialhaskell/stackage/issues/6366
2236 # https://github.com/kapralVV/Unique/issues/9
2237 Unique = assert super.Unique.version == "0.4.7.9"; overrideCabal (drv: {
2238 testFlags = [
2239 "--skip" "/Data.List.UniqueUnsorted.removeDuplicates/removeDuplicates: simple test/"
2240 "--skip" "/Data.List.UniqueUnsorted.repeatedBy,repeated,unique/unique: simple test/"
2241 "--skip" "/Data.List.UniqueUnsorted.repeatedBy,repeated,unique/repeatedBy: simple test/"
2242 ] ++ drv.testFlags or [];
2243 }) super.Unique;
2244
2245 # https://github.com/AndrewRademacher/aeson-casing/issues/8
2246 aeson-casing = assert super.aeson-casing.version == "0.2.0.0"; overrideCabal (drv: {
2247 testFlags = [
2248 "-p" "! /encode train/"
2249 ] ++ drv.testFlags or [];
2250 }) super.aeson-casing;
2251
2252 # 2020-11-19: Jailbreaking until: https://github.com/snapframework/heist/pull/124
2253 # 2021-12-22: https://github.com/snapframework/heist/issues/131
2254 heist = assert super.heist.version == "1.1.0.1";
2255 # aeson 2.0 compat https://github.com/snapframework/heist/pull/132
2256 # not merged in master yet
2257 appendPatch (fetchpatch {
2258 url = "https://github.com/snapframework/heist/compare/de802b0ed5055bd45cfed733524b4086c7e71660...d76adf749d14d7401963d36a22597584c52fc55f.patch";
2259 sha256 = "sha256-GEIPGYYJO6S4t710AQe1uk3EvBu4UpablrlMDZLBSTk=";
2260 includes = [ "src/*" "heist.cabal"];
2261 })
2262 (overrideCabal (drv: {
2263 revision = null;
2264 editedCabalFile = null;
2265 doCheck = false;
2266 })
2267 (doJailbreak super.heist));
2268
2269 # https://github.com/emc2/HUnit-Plus/issues/26
2270 HUnit-Plus = dontCheck super.HUnit-Plus;
2271 # https://github.com/ewestern/haskell-postgis/issues/7
2272 haskell-postgis = overrideCabal (drv: {
2273 testFlags = [
2274 "--skip" "/Geo/Hexable/Encodes a linestring/"
2275 ] ++ drv.testFlags or [];
2276 }) super.haskell-postgis;
2277 # https://github.com/ChrisPenner/json-to-haskell/issues/5
2278 json-to-haskell = overrideCabal (drv: {
2279 testFlags = [
2280 "--match" "/should sanitize weird field and record names/"
2281 ] ++ drv.testFlags or [];
2282 }) super.json-to-haskell;
2283 # https://github.com/fieldstrength/aeson-deriving/issues/5
2284 aeson-deriving = dontCheck super.aeson-deriving;
2285 # https://github.com/morpheusgraphql/morpheus-graphql/issues/660
2286 morpheus-graphql-core = overrideCabal (drv: {
2287 testFlags = [
2288 "-p" "!/field.unexpected-value/&&!/field.missing-field/&&!/argument.unexpected-value/&&!/argument.missing-field/"
2289 ] ++ drv.testFlags or [];
2290 }) super.morpheus-graphql-core;
2291 morpheus-graphql = overrideCabal (drv: {
2292 testFlags = [
2293 "-p" "!/Test Rendering/"
2294 ] ++ drv.testFlags or [];
2295 }) super.morpheus-graphql;
2296 # https://github.com/SupercedeTech/dropbox-client/issues/1
2297 dropbox = overrideCabal (drv: {
2298 testFlags = [
2299 "--skip" "/Dropbox/Dropbox aeson aeson/encodes list folder correctly/"
2300 ] ++ drv.testFlags or [];
2301 }) super.dropbox;
2302 # https://github.com/alonsodomin/haskell-schema/issues/11
2303 hschema-aeson = overrideCabal (drv: {
2304 testFlags = [
2305 "--skip" "/toJsonSerializer/should generate valid JSON/"
2306 ] ++ drv.testFlags or [];
2307 }) super.hschema-aeson;
2308 # https://gitlab.com/k0001/xmlbf/-/issues/32
2309 xmlbf = overrideCabal (drv: {
2310 testFlags = [
2311 "-p" "!/xml: <x b=\"\" a=\"y\"><\\/x>/&&!/xml: <x b=\"z\" a=\"y\"><\\/x>/"
2312 ] ++ drv.testFlags or [];
2313 }) super.xmlbf;
2314 # https://github.com/ssadler/aeson-quick/issues/3
2315 aeson-quick = overrideCabal (drv: {
2316 testFlags = [
2317 "-p" "!/asLens.set/&&!/complex.set/&&!/multipleKeys.set/"
2318 ] ++ drv.testFlags or [];
2319 }) super.aeson-quick;
2320 # https://github.com/minio/minio-hs/issues/165
2321 minio-hs = overrideCabal (drv: {
2322 testFlags = [
2323 "-p" "!/Test mkSelectRequest/"
2324 ] ++ drv.testFlags or [];
2325 }) super.minio-hs;
2326
2327 # Invalid CPP in test suite: https://github.com/cdornan/memory-cd/issues/1
2328 memory-cd = dontCheck super.memory-cd;
2329
2330 # https://github.com/haskell/fgl/pull/99
2331 fgl = doJailbreak super.fgl;
2332 fgl-arbitrary = doJailbreak super.fgl-arbitrary;
2333
2334 # raaz-0.3 onwards uses backpack and it does not play nicely with
2335 # parallel builds using -j
2336 #
2337 # See: https://gitlab.haskell.org/ghc/ghc/-/issues/17188
2338 #
2339 # Overwrite the build cores
2340 raaz = overrideCabal (drv: {
2341 enableParallelBuilding = false;
2342 }) super.raaz;
2343
2344 # https://github.com/andreymulik/sdp/issues/3
2345 sdp = disableLibraryProfiling super.sdp;
2346 sdp-binary = disableLibraryProfiling super.sdp-binary;
2347 sdp-deepseq = disableLibraryProfiling super.sdp-deepseq;
2348 sdp-hashable = disableLibraryProfiling super.sdp-hashable;
2349 sdp-io = disableLibraryProfiling super.sdp-io;
2350 sdp-quickcheck = disableLibraryProfiling super.sdp-quickcheck;
2351 sdp4bytestring = disableLibraryProfiling super.sdp4bytestring;
2352 sdp4text = disableLibraryProfiling super.sdp4text;
2353 sdp4unordered = disableLibraryProfiling super.sdp4unordered;
2354 sdp4vector = disableLibraryProfiling super.sdp4vector;
2355
2356 # Unnecessarily strict bound on template-haskell
2357 # https://github.com/tree-sitter/haskell-tree-sitter/issues/298
2358 tree-sitter = doJailbreak super.tree-sitter;
2359
2360 # 2022-08-07: Bounds are too restrictive: https://github.com/marcin-rzeznicki/libjwt-typed/issues/2
2361 # Also, the tests fail.
2362 libjwt-typed = dontCheck (doJailbreak super.libjwt-typed);
2363
2364 # Test suite fails to compile
2365 # https://github.com/kuribas/mfsolve/issues/8
2366 mfsolve = dontCheck super.mfsolve;
2367
2368 # GHC 9 support https://github.com/lambdabot/dice/pull/2
2369 dice = appendPatch (fetchpatch {
2370 name = "dice-ghc9.patch";
2371 url = "https://github.com/lambdabot/dice/commit/80d6fd443cb17b21d91b725f994ece6e8274e0a0.patch";
2372 excludes = [ ".gitignore" ];
2373 sha256 = "sha256-MtS1n7v5D6MRWWzzTyKl3Lqd/NhD1bV+g80wnhZ3P/Y=";
2374 }) (overrideCabal (drv: {
2375 revision = null;
2376 editedCabalFile = null;
2377 }) super.dice);
2378
2379 # GHC 9 support https://github.com/lambdabot/lambdabot/pull/204
2380 lambdabot-core = appendPatch ./patches/lambdabot-core-ghc9.patch (overrideCabal (drv: {
2381 revision = null;
2382 editedCabalFile = null;
2383 }) super.lambdabot-core);
2384 lambdabot-novelty-plugins = appendPatch ./patches/lambdabot-novelty-plugins-ghc9.patch super.lambdabot-novelty-plugins;
2385
2386 # Ships a custom cabal-doctest Setup.hs in the release tarball, but the actual
2387 # test suite is commented out, so the required dependency is missing naturally.
2388 # We need to use a default Setup.hs instead. Current master doesn't exhibit
2389 # this anymore, so this override should be fine to remove once the assert fires.
2390 linear-base = assert super.linear-base.version == "0.1.0"; overrideCabal (drv: {
2391 preCompileBuildDriver = drv.preCompileBuildDriver or "" + ''
2392 rm Setup.hs
2393 '';
2394 }) super.linear-base;
2395
2396 # Fixes compilation with GHC 9.0 and above
2397 # https://hub.darcs.net/shelarcy/regex-compat-tdfa/issue/3
2398 regex-compat-tdfa = appendPatches [
2399 ./patches/regex-compat-tdfa-ghc-9.0.patch
2400 ] (overrideCabal {
2401 # Revision introduces bound base < 4.15
2402 revision = null;
2403 editedCabalFile = null;
2404 } super.regex-compat-tdfa);
2405
2406 # https://github.com/kowainik/validation-selective/issues/64
2407 validation-selective = doJailbreak super.validation-selective;
2408 # https://github.com/system-f/validation/issues/57
2409 validation = doJailbreak super.validation;
2410
2411 # 2022-03-16: strict upper bounds https://github.com/monadfix/shower/issues/18
2412 shower = doJailbreak (dontCheck super.shower);
2413
2414 # Test suite isn't supposed to succeed yet, apparently…
2415 # https://github.com/andrewufrank/uniform-error/blob/f40629ad119e90f8dae85e65e93d7eb149bddd53/test/Uniform/Error_test.hs#L124
2416 # https://github.com/andrewufrank/uniform-error/issues/2
2417 uniform-error = dontCheck super.uniform-error;
2418 # https://github.com/andrewufrank/uniform-fileio/issues/2
2419 uniform-fileio = dontCheck super.uniform-fileio;
2420
2421 # The shipped Setup.hs file is broken.
2422 csv = overrideCabal (drv: { preCompileBuildDriver = "rm Setup.hs"; }) super.csv;
2423
2424 # 2022-02-25: Upstream fixes are not released. Remove this override on update.
2425 cabal-fmt = assert super.cabal-fmt.version == "0.1.5.1"; lib.pipe super.cabal-fmt [
2426 doJailbreak
2427 (appendPatch (fetchpatch {
2428 url = "https://github.com/phadej/cabal-fmt/commit/842630f70adb5397245109f77dba07662836e964.patch";
2429 sha256 = "sha256-s0W/TI3wHA73MFyKKcNBJFHgFAmBDLGbLaIvWbe/Bsg=";
2430 }))
2431 ];
2432
2433 # 2022-02-25: Not compatible with relude 1.0
2434 ema = assert super.ema.version == "0.6.0.0";
2435 super.ema.overrideScope (self: super: { relude = doJailbreak self.relude_0_7_0_0; });
2436
2437 glirc = super.glirc.override {
2438 vty = self.vty_5_35_1;
2439 };
2440
2441 # 2022-02-25: Unmaintained and to strict upper bounds
2442 paths = doJailbreak super.paths;
2443
2444 # Too strict bounds on hspec, fixed on main branch, but unreleased
2445 colourista = assert super.colourista.version == "0.1.0.1";
2446 doJailbreak super.colourista;
2447
2448 # 2022-02-26: https://github.com/emilypi/base64/issues/39
2449 base64 = dontCheck super.base64;
2450
2451 # 2022-03-16: Upstream stopped updating bounds https://github.com/haskell-hvr/base-noprelude/pull/15
2452 base-noprelude = doJailbreak super.base-noprelude;
2453
2454 # 2022-03-16: Bounds need to be loosened https://github.com/obsidiansystems/dependent-sum-aeson-orphans/issues/10
2455 dependent-sum-aeson-orphans = doJailbreak super.dependent-sum-aeson-orphans;
2456
2457 # 2022-03-16: package qualified import issue: https://github.com/ghcjs/ghcjs-dom/issues/101
2458 ghcjs-dom = assert super.ghcjs-dom.version == "0.9.5.0"; overrideCabal (old: {
2459 postPatch = ''
2460 sed -i 's/import "jsaddle-dom" GHCJS.DOM.Document/import "ghcjs-dom-jsaddle" GHCJS.DOM.Document/' src/GHCJS/DOM/Document.hs
2461 '' + (old.postPatch or "");
2462 })
2463 super.ghcjs-dom;
2464
2465 # Too strict bounds on chell: https://github.com/fpco/haskell-filesystem/issues/24
2466 system-fileio = doJailbreak super.system-fileio;
2467
2468 # Bounds too strict on base and ghc-prim: https://github.com/tibbe/ekg-core/pull/43 (merged); waiting on hackage release
2469 ekg-core = assert super.ekg-core.version == "0.1.1.7"; doJailbreak super.ekg-core;
2470
2471 elm2nix = appendPatches [
2472 # unreleased, prereq for aeson-2 patch
2473 (fetchpatch {
2474 name = "elm2nix-pull-44.patch";
2475 url = "https://patch-diff.githubusercontent.com/raw/cachix/elm2nix/pull/44.patch";
2476 sha256 = "sha256-d6Ra3mIVKCA/5pEavsPi2TdN0qcRwU3gc634oWdYZq8=";
2477 })
2478 # https://github.com/cachix/elm2nix/issues/46#issuecomment-1056236009
2479 (fetchpatch {
2480 name = "elm2nix-aeson-2.patch";
2481 url = "https://github.com/cachix/elm2nix/commit/1a35f07ad5d63085ffd7e5634355412e1112c4e9.patch";
2482 sha256 = "sha256-HAwMvOyp2IdPyjwt+aKYogMqg5NZYlu897UqJy59eFc=";
2483 })
2484 ] super.elm2nix;
2485
2486 # https://github.com/Synthetica9/nix-linter/issues/65
2487 nix-linter = super.nix-linter.overrideScope (self: super: {
2488 aeson = self.aeson_1_5_6_0;
2489 });
2490
2491 # Test suite doesn't support hspec 2.8
2492 # https://github.com/zellige/hs-geojson/issues/29
2493 geojson = dontCheck super.geojson;
2494
2495 # Doesn't support aeson >= 2.0
2496 # https://github.com/channable/vaultenv/issues/118
2497 vaultenv = super.vaultenv.overrideScope (self: super: {
2498 aeson = self.aeson_1_5_6_0;
2499 });
2500
2501 # Support network >= 3.1.2
2502 # https://github.com/erebe/wstunnel/pull/107
2503 wstunnel = appendPatch (fetchpatch {
2504 url = "https://github.com/erebe/wstunnel/pull/107/commits/47c1f62bdec1dbe77088d9e3ceb6d872f922ce34.patch";
2505 sha256 = "sha256-fW5bVbAGQxU/gd9zqgVNclwKraBtUjkKDek7L0c4+O0=";
2506 }) super.wstunnel;
2507
2508 # Adjustment of bounds on servant is unreleased
2509 # https://github.com/haskell-servant/servant-cassava/commit/66617547851d38d48f5f1d1b786db1286bdafa9d
2510 servant-cassava = assert super.servant-cassava.version == "0.10.1";
2511 doJailbreak super.servant-cassava;
2512
2513 # Test data missing from sdist
2514 # https://github.com/ngless-toolkit/ngless/issues/152
2515 NGLess = dontCheck super.NGLess;
2516
2517 # Raise version bounds for hspec
2518 records-sop = appendPatch (fetchpatch {
2519 url = "https://github.com/kosmikus/records-sop/pull/11/commits/d88831388ab3041190130fec3cdd679a4217b3c7.patch";
2520 sha256 = "sha256-O+v/OxvqnlWX3HaDvDIBZnJ+Og3xs/SJqI3gaouU3ZI=";
2521 }) super.records-sop;
2522
2523 # Fix build failures for ghc 9 (https://github.com/mokus0/polynomial/pull/20)
2524 polynomial = appendPatch (fetchpatch {
2525 name = "haskell-polynomial.20.patch";
2526 url = "https://github.com/mokus0/polynomial/pull/20.diff";
2527 sha256 = "1bwivimpi2hiil3zdnl5qkds1inyn239wgxbn3y8l2pwyppnnfl0";
2528 })
2529 (overrideCabal (drv: {
2530 revision = null;
2531 editedCabalFile = null;
2532 doCheck = false; # Source dist doesn't include the checks
2533 })
2534 super.polynomial);
2535
2536 # lucid-htmx has restrictive upper bounds on lucid and servant:
2537 #
2538 # Setup: Encountered missing or private dependencies:
2539 # lucid >=2.9.12.1 && <=2.11, servant >=0.18.3 && <0.19
2540 #
2541 # Can be removed once
2542 #
2543 # > https://github.com/MonadicSystems/lucid-htmx/issues/6
2544 #
2545 # has been resolved.
2546 lucid-htmx = doJailbreak super.lucid-htmx;
2547
2548 lsp_1_5_0_0 = doDistribute (super.lsp_1_5_0_0.override {
2549 lsp-types = self.lsp-types_1_5_0_0;
2550 });
2551
2552 futhark = super.futhark.override {
2553 lsp = self.lsp_1_5_0_0;
2554 };
2555
2556 # Too strict bounds on hspec
2557 # https://github.com/klapaucius/vector-hashtables/issues/11
2558 vector-hashtables = doJailbreak super.vector-hashtables;
2559
2560 # doctest-parallel is broken with v1-style cabal-install / Setup.hs
2561 # https://github.com/martijnbastiaan/doctest-parallel/issues/22
2562 doctest-parallel = dontCheck super.doctest-parallel;
2563 clash-prelude = dontCheck super.clash-prelude;
2564
2565 # Ships a broken Setup.hs
2566 # https://github.com/lehins/conduit-aeson/issues/1
2567 conduit-aeson = overrideCabal (drv: {
2568 postPatch = ''
2569 ${drv.postPatch or ""}
2570 rm Setup.hs
2571 '';
2572 # doctest suite uses doctest-parallel which still doesn't work in nixpkgs
2573 testTarget = "tests";
2574 }) super.conduit-aeson;
2575
2576 # Disabling doctests.
2577 regex-tdfa = overrideCabal {
2578 testTarget = "regex-tdfa-unittest";
2579 } super.regex-tdfa;
2580
2581} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super // (let
2582 # We need to build purescript with these dependencies and thus also its reverse
2583 # dependencies to avoid version mismatches in their dependency closure.
2584 # TODO(@cdepillabout): maybe unify with the spago overlay in configuration-nix.nix?
2585 purescriptOverlay = self: super: {
2586 # As of 2021-11-08, the latest release of `language-javascript` is 0.7.1.0,
2587 # but it has a problem with parsing the `async` keyword. It doesn't allow
2588 # `async` to be used as an object key:
2589 # https://github.com/erikd/language-javascript/issues/131
2590 language-javascript = self.language-javascript_0_7_0_0;
2591 };
2592
2593 # Don't support GHC >= 9.0 yet and need aeson 1.5.*
2594 purescriptStOverride = drv:
2595 let
2596 overlayed = drv.overrideScope (
2597 lib.composeExtensions
2598 purescriptOverlay
2599 (self: super: {
2600 aeson = self.aeson_1_5_6_0;
2601 })
2602 );
2603 in
2604 if lib.versionAtLeast self.ghc.version "9.0"
2605 then dontDistribute (markBroken overlayed)
2606 else overlayed;
2607in {
2608 purescript =
2609 lib.pipe
2610 (super.purescript.overrideScope purescriptOverlay)
2611 [
2612 # PureScript uses nodejs to run tests, so the tests have been disabled
2613 # for now. If someone is interested in figuring out how to get this
2614 # working, it seems like it might be possible.
2615 dontCheck
2616 # The current version of purescript (0.14.5) has version bounds for LTS-17,
2617 # but it compiles cleanly using deps in LTS-18 as well. This jailbreak can
2618 # likely be removed when purescript-0.14.6 is released.
2619 doJailbreak
2620 # Generate shell completions
2621 (generateOptparseApplicativeCompletion "purs")
2622 ];
2623
2624 purescript-cst = purescriptStOverride super.purescript-cst;
2625
2626 purescript-ast = purescriptStOverride super.purescript-ast;
2627
2628 purenix = purescriptStOverride super.purenix;
2629
2630 # Needs update for ghc-9:
2631 # https://github.com/haskell/text-format/issues/27
2632 text-format = appendPatch (fetchpatch {
2633 url = "https://github.com/hackage-trustees/text-format/pull/4/commits/949383aa053497b8c251219c10506136c29b4d32.patch";
2634 sha256 = "QzpZ7lDedsz1mZcq6DL4x7LBnn58rx70+ZVvPh9shRo=";
2635 }) super.text-format;
2636})