2020-04-24 23:36:52 +00:00
# COMMON OVERRIDES FOR THE HASKELL PACKAGE SET IN NIXPKGS
#
# This file contains haskell package overrides that are shared by all
# haskell package sets provided by nixpkgs and distributed via the official
# NixOS hydra instance.
#
# Overrides that would also make sense for custom haskell package sets not provided
# as part of nixpkgs and that are specific to Nix should go in configuration-nix.nix
#
# See comment at the top of configuration-nix.nix for more information about this
# distinction.
{ pkgs , haskellLib }:
2022-04-03 18:54:34 +00:00
let
2022-12-28 21:21:41 +00:00
inherit ( pkgs ) fetchpatch fetchpatch2 lib ;
2023-04-12 12:48:02 +00:00
inherit ( lib ) throwIfNot versionOlder versions ;
2022-04-03 18:54:34 +00:00
in
2020-04-24 23:36:52 +00:00
with haskellLib ;
self : super : {
2023-03-30 22:05:00 +00:00
# Make sure that Cabal 3.10.* can be built as-is
Cabal_3_10_1_0 = doDistribute ( super . Cabal_3_10_1_0 . override ( {
Cabal-syntax = self . Cabal-syntax_3_10_1_0 ;
} // lib . optionalAttrs ( lib . versionOlder self . ghc . version " 9 . 2 . 5 " ) {
# Use process core package when possible
process = self . process_1_6_17_0 ;
} ) ) ;
2023-02-22 10:55:15 +00:00
# cabal-install needs most recent versions of Cabal and Cabal-syntax,
# so we need to put some extra work for non-latest GHCs
inherit (
let
# !!! Use cself/csuper inside for the actual overrides
cabalInstallOverlay = cself : csuper :
2023-08-22 20:05:09 +00:00
{
# Needs to be upgraded compared to Stackage LTS 21
cabal-install-solver = cself . cabal-install-solver_3_10_1_0 ;
# Needs to be downgraded compared to Stackage LTS 21
resolv = cself . resolv_0_1_2_0 ;
} // lib . optionalAttrs ( lib . versionOlder self . ghc . version " 9 . 6 " ) {
2023-03-30 22:05:00 +00:00
Cabal = cself . Cabal_3_10_1_0 ;
Cabal-syntax = cself . Cabal-syntax_3_10_1_0 ;
} // lib . optionalAttrs ( lib . versionOlder self . ghc . version " 9 . 4 " ) {
# We need at least directory >= 1.3.7.0. Using the latest version
# 1.3.8.* is not an option since it causes very annoying dependencies
# on newer versions of unix and filepath than GHC 9.2 ships
directory = cself . directory_1_3_7_1 ;
# GHC 9.2.5 starts shipping 1.6.16.0 which is required by
# cabal-install, but we need to recompile process even if the correct
# version is available to prevent inconsistent dependencies:
# process depends on directory.
2023-03-04 12:14:45 +00:00
process = cself . process_1_6_17_0 ;
2023-03-30 22:05:00 +00:00
# hspec < 2.10 depends on ghc (the library) directly which in turn
# depends on directory, causing a dependency conflict which is practically
# not solvable short of recompiling GHC. Instead of adding
# allowInconsistentDependencies for all reverse dependencies of hspec-core,
# just upgrade to an hspec version without the offending dependency.
2023-08-22 20:05:09 +00:00
hspec-core = cself . hspec-core_2_11_4 ;
hspec-discover = cself . hspec-discover_2_11_4 ;
hspec = cself . hspec_2_11_4 ;
2023-03-30 22:05:00 +00:00
# hspec-discover and hspec-core depend on hspec-meta for testing which
2023-07-15 17:15:38 +00:00
# we need to avoid since it depends on ghc as well. Since hspec*_2_11*
2023-03-30 22:05:00 +00:00
# are overridden to take the versioned attributes as inputs, we need
# to make sure to override the versioned attribute with this fix.
2023-08-22 20:05:09 +00:00
hspec-discover_2_11_4 = dontCheck csuper . hspec-discover_2_11_4 ;
2023-03-30 22:05:00 +00:00
2023-02-22 10:55:15 +00:00
# Prevent dependency on doctest which causes an inconsistent dependency
2023-03-30 22:05:00 +00:00
# due to depending on ghc which depends on directory etc.
2023-02-22 10:55:15 +00:00
vector = dontCheck csuper . vector ;
} ;
in
{
cabal-install = super . cabal-install . overrideScope cabalInstallOverlay ;
cabal-install-solver = super . cabal-install-solver . overrideScope cabalInstallOverlay ;
2023-08-22 20:05:09 +00:00
# Needs cabal-install >= 3.8 /as well as/ matching Cabal
guardian =
lib . pipe
( super . guardian . overrideScope cabalInstallOverlay )
[
# Tests need internet access (run stack)
dontCheck
# May as well…
( self . generateOptparseApplicativeCompletions [ " g u a r d i a n " ] )
] ;
2023-02-22 10:55:15 +00:00
}
) cabal-install
cabal-install-solver
guardian
;
2023-04-12 12:48:02 +00:00
#######################################
### HASKELL-LANGUAGE-SERVER SECTION ###
#######################################
haskell-language-server = ( lib . pipe super . haskell-language-server [
dontCheck
( disableCabalFlag " s t a n " ) # Sorry stan is totally unmaintained and terrible to get to run. It only works on ghc 8.8 or 8.10 anyways …
] ) . overrideScope ( lself : lsuper : {
# For most ghc versions, we overrideScope Cabal in the configuration-ghc-???.nix,
# because some packages, like ormolu, need a newer Cabal version.
# ghc-paths is special because it depends on Cabal for building
# its Setup.hs, and therefor declares a Cabal dependency, but does
# not actually use it as a build dependency.
# That means ghc-paths can just use the ghc included Cabal version,
# without causing package-db incoherence and we should do that because
# otherwise we have different versions of ghc-paths
# around which have the same abi-hash, which can lead to confusions and conflicts.
ghc-paths = lsuper . ghc-paths . override { Cabal = null ; } ;
} ) ;
# 2023-04-03: https://github.com/haskell/haskell-language-server/issues/3546#issuecomment-1494139751
# There will probably be a new revision soon.
hls-brittany-plugin = assert super . hls-brittany-plugin . version == " 1 . 1 . 0 . 0 " ; doJailbreak super . hls-brittany-plugin ;
# For -f-auto see cabal.project in haskell-language-server.
ghc-lib-parser-ex = addBuildDepend self . ghc-lib-parser ( disableCabalFlag " a u t o " super . ghc-lib-parser-ex ) ;
2023-05-24 13:37:59 +00:00
# Test ldap server test/ldap.js is missing from sdist
# https://github.com/supki/ldap-client/issues/18
ldap-client-og = dontCheck super . ldap-client-og ;
2023-08-22 20:05:09 +00:00
stylish-haskell =
# Too-strict upper bounds, no Hackage revisions
doJailbreak
# For -fghc-lib see cabal.project in haskell-language-server.
( if lib . versionAtLeast super . ghc . version " 9 . 2 "
then enableCabalFlag " g h c - l i b " super . stylish-haskell
else super . stylish-haskell
) ;
hiedb =
lib . pipe
super . hiedb
[
# hiedb-0.4.3.0 does not yet support algebraic-graphs-0.7. This patch works
# around the issue.
# https://github.com/wz1000/HieDb/pull/44
( appendPatch
( pkgs . fetchpatch {
name = " h i e d b - a l g e b r a i c - g r a p h s - 0 . 7 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / w z 1 0 0 0 / H i e D B / c o m m i t / 4 a c 8 e 6 7 3 5 3 2 1 8 7 2 b 9 d 5 d 1 5 a 9 c a c 4 9 2 a d d 5 5 5 5 2 3 4 . p a t c h " ;
hash = " s h a 2 5 6 - I u + M 8 r + D r p o x U C G 6 y e k g b W + G f f o N j j R k s n w U J 6 j o j h E = " ;
} ) )
# Patch does not actually bump the bound in the .cabal file.
doJailbreak
] ;
2023-04-12 12:48:02 +00:00
###########################################
### END HASKELL-LANGUAGE-SERVER SECTION ###
###########################################
2023-03-30 22:05:00 +00:00
vector = overrideCabal ( old : {
# Too strict bounds on doctest which isn't used, but is part of the configuration
jailbreak = true ;
# vector-doctest seems to be broken when executed via ./Setup test
testTarget = lib . concatStringsSep " " [
" v e c t o r - t e s t s - O 0 "
" v e c t o r - t e s t s - O 2 "
] ;
2023-07-15 17:15:38 +00:00
patches = [
# Workaround almost guaranteed floating point errors in test suite with quickcheck 2.14.3
# https://github.com/haskell/vector/issues/460
( pkgs . fetchpatch {
name = " v e c t o r - q u i c k c h e c k - 2 . 1 4 . 3 - f l o a t - w o r k a r o u n d . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / h a s k e l l / v e c t o r / c o m m i t / d f 8 d d 8 e 8 e 8 4 0 0 5 a a 6 b 1 8 7 b 0 3 c d 5 0 2 f 3 c 6 e 1 8 c f 3 c . p a t c h " ;
sha256 = " 0 4 0 w g 8 m q l k d n r l 5 a x y 9 w k 0 m l p n 8 r p c 4 v c 4 a f p x i g n j 9 i 7 y c 4 p f j j " ;
stripLen = 1 ;
} )
] ;
2023-03-30 22:05:00 +00:00
} ) super . vector ;
2023-02-22 10:55:15 +00:00
2023-07-15 17:15:38 +00:00
# Almost guaranteed failure due to floating point imprecision with QuickCheck-2.14.3
# https://github.com/haskell/math-functions/issues/73
math-functions = overrideCabal ( drv : {
testFlags = drv . testFlags or [ ] ++ [ " - p " " ! / K a h a n . t _ s u m _ s h i f t e d / " ] ;
} ) super . math-functions ;
2023-08-22 20:05:09 +00:00
# Too strict bounds on base
# https://github.com/lspitzner/butcher/issues/7#issuecomment-1681394943
butcher = doJailbreak super . butcher ;
# https://github.com/lspitzner/data-tree-print/issues/4
data-tree-print = doJailbreak super . data-tree-print ;
# … and template-haskell.
# https://github.com/lspitzner/czipwith/issues/5
czipwith = doJailbreak super . czipwith ;
2023-07-15 17:15:38 +00:00
# Deal with infinite and NaN values generated by QuickCheck-2.14.3
2023-08-22 20:05:09 +00:00
aeson = overrideCabal {
# aeson's test suite includes some tests with big numbers that fail on 32bit
# https://github.com/haskell/aeson/issues/1060
doCheck = ! pkgs . stdenv . hostPlatform . is32bit ;
} ( appendPatches [
( pkgs . fetchpatch {
name = " a e s o n - q u i c k c h e c k - 2 . 1 4 . 3 - d o u b l e - w o r k a r o u n d . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / h a s k e l l / a e s o n / c o m m i t / 5 8 7 6 6 a 1 9 1 6 b 4 9 8 0 7 9 2 7 6 3 b a b 7 4 f 0 c 8 6 e 2 a 7 e b f 2 0 . p a t c h " ;
sha256 = " 1 j k 2 x y i 9 g 6 d f j s i 6 h v p v k p m a g 3 i v i m i p w y 1 i z p b i d f 3 w v c 9 c i x s 3 " ;
} )
] super . aeson ) ;
2023-07-15 17:15:38 +00:00
2023-10-09 19:29:22 +00:00
# aeson 2.2.0.0 requires th-abstraction >= 0.5 & < 0.6
aeson_2_2_0_0 = super . aeson_2_2_0_0 . overrideScope ( hfinal : hprev : {
th-abstraction = hfinal . th-abstraction_0_5_0_0 ;
} ) ;
2023-07-15 17:15:38 +00:00
# 2023-06-28: Test error: https://hydra.nixos.org/build/225565149
orbits = dontCheck super . orbits ;
2023-08-22 20:05:09 +00:00
# Allow aeson == 2.1.*
# https://github.com/hdgarrood/aeson-better-errors/issues/23
aeson-better-errors = doJailbreak super . aeson-better-errors ;
# 2023-08-09: Jailbreak because of vector < 0.13
monad-bayes = doJailbreak ( super . monad-bayes . override {
hspec = self . hspec_2_11_4 ;
} ) ;
2023-07-15 17:15:38 +00:00
# Disable tests failing on odd floating point numbers generated by QuickCheck 2.14.3
# https://github.com/haskell/statistics/issues/205
statistics = overrideCabal ( drv : {
testFlags = [
" - p " " ! ( / P e a r s o n c o r r e l a t i o n / | | / t _ q r / | | / T e s t s f o r : F D i s t r i b u t i o n . 1 - C D F i s c o r r e c t / ) "
] ;
} ) super . statistics ;
2021-12-06 16:07:01 +00:00
# There are numerical tests on random data, that may fail occasionally
lapack = dontCheck super . lapack ;
2022-04-03 18:54:34 +00:00
# fix tests failure for base≥4.15 (https://github.com/kim/leveldb-haskell/pull/41)
leveldb-haskell = appendPatch ( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / k i m / l e v e l d b - h a s k e l l / c o m m i t / f 5 2 4 9 0 8 1 f 5 8 9 2 3 3 8 9 0 d d b 1 9 4 5 e c 5 4 8 c a 9 f b 7 1 7 c f . p a t c h " ;
sha256 = " 1 4 g l l i p l 2 8 l q r y 7 3 c 5 d n c l s s k z k 1 b s r r g a z i b l 4 l k l 8 z 9 8 j 2 c s j b " ;
} ) super . leveldb-haskell ;
2020-04-24 23:36:52 +00:00
# Arion's test suite needs a Nixpkgs, which is cumbersome to do from Nixpkgs
# itself. For instance, pkgs.path has dirty sources and puts a huge .git in the
# store. Testing is done upstream.
2023-10-09 19:29:22 +00:00
arion-compose = dontCheck super . arion-compose ;
2023-08-22 20:05:09 +00:00
# 2023-07-17: Outdated base bound https://github.com/srid/lvar/issues/5
lvar = doJailbreak super . lvar ;
2020-04-24 23:36:52 +00:00
# This used to be a core package provided by GHC, but then the compiler
# dropped it. We define the name here to make sure that old packages which
# depend on this library still evaluate (even though they won't compile
# successfully with recent versions of the compiler).
bin-package-db = null ;
2023-07-15 17:15:38 +00:00
# Unnecessarily requires alex >= 3.3
# https://github.com/glguy/config-value/commit/c5558c8258598fab686c259bff510cc1b19a0c50#commitcomment-119514821
config-value = doJailbreak super . config-value ;
2023-10-09 19:29:22 +00:00
# path-io bound is adjusted in 0.6.1 release
# https://github.com/tek/hix/commit/019426f6a3db256e4c96558ffe6fa2114e2f19a0
hix = doJailbreak super . hix ;
2020-06-15 15:56:04 +00:00
# waiting for release: https://github.com/jwiegley/c2hsc/issues/41
2022-04-03 18:54:34 +00:00
c2hsc = appendPatch ( fetchpatch {
2020-06-15 15:56:04 +00:00
url = " h t t p s : / / g i t h u b . c o m / j w i e g l e y / c 2 h s c / c o m m i t / 4 9 0 e c a b 2 0 2 e 0 d e 7 f c 9 9 5 e e d f 7 4 4 a d 3 c b 4 0 8 b 5 3 c c . p a t c h " ;
sha256 = " 1 c 7 k n p v x r 7 p 8 c 1 5 9 j k y k 6 w 2 9 6 5 3 z 5 y z g j j q j 1 1 1 3 0 b b b 8 m k 9 q h q 7 " ;
2021-12-06 16:07:01 +00:00
} ) super . c2hsc ;
2020-06-15 15:56:04 +00:00
2020-04-24 23:36:52 +00:00
# Some Hackage packages reference this attribute, which exists only in the
# GHCJS package set. We provide a dummy version here to fix potential
# evaluation errors.
ghcjs-base = null ;
ghcjs-prim = null ;
2023-04-29 16:46:19 +00:00
# 2023-04-17: https://gitlab.haskell.org/ghc/ghc-debug/-/issues/20
ghc-debug-brick = doJailbreak super . ghc-debug-brick ;
2020-04-24 23:36:52 +00:00
# Needs older QuickCheck version
attoparsec-varword = dontCheck super . attoparsec-varword ;
# These packages (and their reverse deps) cannot be built with profiling enabled.
ghc-heap-view = disableLibraryProfiling super . ghc-heap-view ;
ghc-datasize = disableLibraryProfiling super . ghc-datasize ;
2021-10-28 06:52:43 +00:00
ghc-vis = disableLibraryProfiling super . ghc-vis ;
2020-04-24 23:36:52 +00:00
2023-08-22 20:05:09 +00:00
# Fixes compilation for basement on i686 for GHC >= 9.4
# https://github.com/haskell-foundation/foundation/pull/573
# Patch would not work for GHC >= 9.2 where it breaks compilation on x86_64
# https://github.com/haskell-foundation/foundation/pull/573#issuecomment-1669468867
# TODO(@sternenseemann): make unconditional
basement = appendPatches ( lib . optionals pkgs . stdenv . hostPlatform . is32bit [
( fetchpatch {
name = " b a s e m e n t - i 6 8 6 - g h c - 9 . 4 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / h a s k e l l - f o u n d a t i o n / f o u n d a t i o n / p u l l / 5 7 3 / c o m m i t s / 3 8 b e 2 c 9 3 a c b 6 f 4 5 9 d 2 4 e d 6 c 6 2 6 9 8 1 c 3 5 c c f 4 4 0 9 5 . p a t c h " ;
sha256 = " 1 7 k z 8 g l f i m 2 9 v y h j 8 i d w 8 b d h 3 i d 5 s l 9 z a q 1 8 z z i h 3 s c h f v y j p p j 7 " ;
stripLen = 1 ;
} )
] ) super . basement ;
# Fixes compilation of memory with GHC >= 9.4 on 32bit platforms
# https://github.com/vincenthz/hs-memory/pull/99
memory = appendPatches ( lib . optionals pkgs . stdenv . hostPlatform . is32bit [
( fetchpatch {
name = " m e m o r y - i 6 8 6 - g h c - 9 . 4 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / v i n c e n t h z / h s - m e m o r y / p u l l / 9 9 / c o m m i t s / 2 7 3 8 9 2 9 c e 1 5 b 4 c 8 7 0 4 b b b a c 2 4 a 0 8 5 3 9 b 5 d 4 b f 3 0 e . p a t c h " ;
sha256 = " 1 9 6 r j 8 3 i q 2 k 2 4 9 1 3 2 x s y h b b l 8 1 q i 1 j 2 3 h 9 p a 6 m m k 6 z v x p c f 6 3 y f w " ;
} )
] ) super . memory ;
# Waiting for the commit being fetched as a patch to get a release.
espial = appendPatch ( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / j o n s c h o n i n g / e s p i a l / c o m m i t / 7 0 3 7 5 d b 7 e 2 4 5 2 0 7 b 3 5 7 2 7 7 9 2 8 8 e a d e 3 2 5 2 c 4 d 9 e 3 . p a t c h " ;
sha256 = " s h a 2 5 6 - f t o 8 f d F b Z k z n 7 d w C C s G w + j + 5 H S v E v y v U 5 V z Y D n 4 F 2 G 8 = " ;
excludes = [ " * . y a m l " " * . l o c k " " * . j s o n " ] ;
} ) super . espial ;
2023-07-15 17:15:38 +00:00
# 2023-06-10: Too strict version bound on https://github.com/haskell/ThreadScope/issues/118
threadscope = doJailbreak super . threadscope ;
2023-08-22 20:05:09 +00:00
# Overriding the version pandoc dependency uses as the latest release has version bounds
# defined as >= 3.1 && < 3.2, can be removed once pandoc gets bumped by Stackage.
2023-10-09 19:29:22 +00:00
#
# The patch can be removed once the commit being pulled is in a release.
patat = appendPatch ( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / j a s p e r v d j / p a t a t / p u l l / 1 4 3 / c o m m i t s / c b 5 d 5 b 6 4 3 9 2 0 4 b 5 b d 5 2 9 3 9 e 4 2 a 1 1 5 1 8 a c 8 1 1 3 9 f e . p a t c h " ;
sha256 = " s h a 2 5 6 - E P i y x z i P t n 2 f A E x K k n I 2 u K U G a h W C F n v 7 K 8 b p V k A g e z Q = " ;
} ) ( super . patat . override { pandoc = self . pandoc_3_1_8 ; } ) ;
# http2 also overridden in all-packages.nix for mailctl.
# twain is currently only used by mailctl, so the .overrideScope shouldn't
# negatively affect any other packages, at least currently...
twain = super . twain . overrideScope ( self : _ : { http2 = self . http2_3_0_3 ; } ) ;
2023-02-22 10:55:15 +00:00
2022-02-20 05:27:41 +00:00
# The latest release on hackage has an upper bound on containers which
# breaks the build, though it works with the version of containers present
# and the upper bound doesn't exist in code anymore:
# > https://github.com/roelvandijk/numerals
numerals = doJailbreak ( dontCheck super . numerals ) ;
2020-04-24 23:36:52 +00:00
# This test keeps being aborted because it runs too quietly for too long
Lazy-Pbkdf2 = if pkgs . stdenv . isi686 then dontCheck super . Lazy-Pbkdf2 else super . Lazy-Pbkdf2 ;
# check requires mysql server
mysql-simple = dontCheck super . mysql-simple ;
mysql-haskell = dontCheck super . mysql-haskell ;
2023-08-22 20:05:09 +00:00
# Test data missing
# https://github.com/FPtje/GLuaFixer/issues/165
glualint = dontCheck super . glualint ;
2020-04-24 23:36:52 +00:00
# The Hackage tarball is purposefully broken, because it's not intended to be, like, useful.
# https://git-annex.branchable.com/bugs/bash_completion_file_is_missing_in_the_6.20160527_tarball_on_hackage/
2021-12-06 16:07:01 +00:00
git-annex = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
src = pkgs . fetchgit {
name = " g i t - a n n e x - ${ super . git-annex . version } - s r c " ;
url = " g i t : / / g i t - a n n e x . b r a n c h a b l e . c o m / " ;
rev = " r e f s / t a g s / " + super . git-annex . version ;
2023-10-09 19:29:22 +00:00
sha256 = " s h a 2 5 6 - + b u X i G 9 a u q 4 6 + r e M r s 2 r B W o x H g P k H m P 8 B Y 5 B u g o o U + Q = " ;
2021-06-28 23:13:55 +00:00
# delete android and Android directories which cause issues on
# darwin (case insensitive directory). Since we don't need them
# during the build process, we can delete it to prevent a hash
# mismatch on darwin.
postFetch = ''
rm - r $ out/doc / ? ndroid *
'' ;
2020-04-24 23:36:52 +00:00
} ;
2022-02-21 08:47:16 +00:00
# Git annex provides a restricted login shell. Setting
# passthru.shellPath here allows a user's login shell to be set to
# `git-annex-shell` by making `shell = haskellPackages.git-annex`.
# https://git-annex.branchable.com/git-annex-shell/
passthru . shellPath = " / b i n / g i t - a n n e x - s h e l l " ;
2023-08-22 20:05:09 +00:00
} ) ( super . git-annex . overrideScope ( self : _ : {
# https://github.com/haskell-pkg-janitors/unix-compat/issues/3
unix-compat = self . unix-compat_0_6 ;
} ) ) ;
2020-04-24 23:36:52 +00:00
2022-11-21 17:40:18 +00:00
# Too strict bounds on servant
# Pending a hackage revision: https://github.com/berberman/arch-web/commit/5d08afee5b25e644f9e2e2b95380a5d4f4aa81ea#commitcomment-89230555
arch-web = doJailbreak super . arch-web ;
2023-08-22 20:05:09 +00:00
# Too strict upper bound on hedgehog
# https://github.com/circuithub/rel8/issues/248
rel8 = doJailbreak super . rel8 ;
2020-04-24 23:36:52 +00:00
# Fix test trying to access /home directory
2021-12-06 16:07:01 +00:00
shell-conduit = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
postPatch = " s e d - i s / h o m e / t m p / t e s t / S p e c . h s " ;
2021-12-06 16:07:01 +00:00
} ) super . shell-conduit ;
2020-04-24 23:36:52 +00:00
2023-08-22 20:05:09 +00:00
# https://github.com/serokell/nixfmt/issues/130
nixfmt = doJailbreak super . nixfmt ;
# Too strict upper bounds on turtle and text
# https://github.com/awakesecurity/nix-deploy/issues/35
nix-deploy = doJailbreak super . nix-deploy ;
# Too strict upper bound on algebraic-graphs
# https://github.com/awakesecurity/nix-graph/issues/5
nix-graph = doJailbreak super . nix-graph ;
2023-10-09 19:29:22 +00:00
cachix = self . generateOptparseApplicativeCompletions [ " c a c h i x " ] super . cachix ;
2022-09-30 11:47:45 +00:00
2020-04-24 23:36:52 +00:00
# https://github.com/froozen/kademlia/issues/2
kademlia = dontCheck super . kademlia ;
2021-03-23 19:22:30 +00:00
# Tests require older versions of tasty.
2020-04-24 23:36:52 +00:00
hzk = dontCheck super . hzk ;
2023-08-22 20:05:09 +00:00
resolv_0_1_2_0 = doJailbreak super . resolv_0_1_2_0 ;
# Too strict bounds on base{,-orphans}, template-haskell
# https://github.com/sebastiaanvisser/fclabels/issues/44
fclabels = doJailbreak super . fclabels ;
2022-04-03 18:54:34 +00:00
2020-04-24 23:36:52 +00:00
# Tests require a Kafka broker running locally
haskakafka = dontCheck super . haskakafka ;
2022-12-28 21:21:41 +00:00
bindings-levmar = addExtraLibrary pkgs . blas super . bindings-levmar ;
2020-04-24 23:36:52 +00:00
2021-03-23 19:22:30 +00:00
# Requires wrapQtAppsHook
2021-12-06 16:07:01 +00:00
qtah-cpp-qt5 = overrideCabal ( drv : {
2021-03-23 19:22:30 +00:00
buildDepends = [ pkgs . qt5 . wrapQtAppsHook ] ;
2021-12-06 16:07:01 +00:00
} ) super . qtah-cpp-qt5 ;
2020-04-24 23:36:52 +00:00
# The Haddock phase fails for one reason or another.
deepseq-magic = dontHaddock super . deepseq-magic ;
feldspar-signal = dontHaddock super . feldspar-signal ; # https://github.com/markus-git/feldspar-signal/issues/1
hoodle-core = dontHaddock super . hoodle-core ;
hsc3-db = dontHaddock super . hsc3-db ;
2022-12-28 21:21:41 +00:00
# Fix build with time >= 1.10 while retaining compat with time < 1.9
mbox = appendPatch ./patches/mbox-time-1.10.patch
( overrideCabal { editedCabalFile = null ; revision = null ; } super . mbox ) ;
2022-04-03 18:54:34 +00:00
2020-04-24 23:36:52 +00:00
# https://github.com/techtangents/ablist/issues/1
ABList = dontCheck super . ABList ;
2021-12-06 16:07:01 +00:00
inline-c-cpp = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
postPatch = ( drv . postPatch or " " ) + ''
substituteInPlace inline-c-cpp . cabal - - replace " - o p t c - s t d = c + + 1 1 " " "
'' ;
2021-12-06 16:07:01 +00:00
} ) super . inline-c-cpp ;
2020-04-24 23:36:52 +00:00
2021-12-06 16:07:01 +00:00
inline-java = addBuildDepend pkgs . jdk super . inline-java ;
2020-04-24 23:36:52 +00:00
# Upstream notified by e-mail.
permutation = dontCheck super . permutation ;
# https://github.com/jputcu/serialport/issues/25
serialport = dontCheck super . serialport ;
# Test suite depends on source code being available
simple-affine-space = dontCheck super . simple-affine-space ;
# Fails no apparent reason. Upstream has been notified by e-mail.
assertions = dontCheck super . assertions ;
2023-02-16 17:41:37 +00:00
# 2023-01-29: Restrictive base bound already loosened on master but not released: https://github.com/sebastiaanvisser/clay/commit/4483bdf7a452903f177220958f1610030ab7f28a
clay = throwIfNot ( super . clay . version == " 0 . 1 4 . 0 " ) " R e m o v e c l a y j a i l b r e a k i n c o n f i g u r a t i o n - c o m m o n . n i x w h e n y o u s e e t h i s e v a l e r r o r . " ( doJailbreak super . clay ) ;
2020-04-24 23:36:52 +00:00
# These packages try to execute non-existent external programs.
cmaes = dontCheck super . cmaes ; # http://hydra.cryp.to/build/498725/log/raw
dbmigrations = dontCheck super . dbmigrations ;
filestore = dontCheck super . filestore ;
graceful = dontCheck super . graceful ;
HList = dontCheck super . HList ;
ide-backend = dontCheck super . ide-backend ;
marquise = dontCheck super . marquise ; # https://github.com/anchor/marquise/issues/69
memcached-binary = dontCheck super . memcached-binary ;
msgpack-rpc = dontCheck super . msgpack-rpc ;
persistent-zookeeper = dontCheck super . persistent-zookeeper ;
pocket-dns = dontCheck super . pocket-dns ;
postgresql-simple = dontCheck super . postgresql-simple ;
2022-06-16 17:23:12 +00:00
squeal-postgresql = dontCheck super . squeal-postgresql ;
2020-04-24 23:36:52 +00:00
postgrest-ws = dontCheck super . postgrest-ws ;
snowball = dontCheck super . snowball ;
sophia = dontCheck super . sophia ;
test-sandbox = dontCheck super . test-sandbox ;
texrunner = dontCheck super . texrunner ;
users-postgresql-simple = dontCheck super . users-postgresql-simple ;
wai-middleware-hmac = dontCheck super . wai-middleware-hmac ;
xkbcommon = dontCheck super . xkbcommon ;
xmlgen = dontCheck super . xmlgen ;
HerbiePlugin = dontCheck super . HerbiePlugin ;
wai-cors = dontCheck super . wai-cors ;
2023-02-16 17:41:37 +00:00
# 2022-01-29: Tests fail: https://github.com/psibi/streamly-bytestring/issues/27
2023-02-22 10:55:15 +00:00
# 2022-02-14: Strict upper bound: https://github.com/psibi/streamly-bytestring/issues/30
streamly-bytestring = dontCheck ( doJailbreak super . streamly-bytestring ) ;
2023-02-16 17:41:37 +00:00
2020-04-24 23:36:52 +00:00
# base bound
digit = doJailbreak super . digit ;
2023-02-16 17:41:37 +00:00
# 2022-01-29: Tests require package to be in ghc-db.
aeson-schemas = dontCheck super . aeson-schemas ;
2023-05-24 13:37:59 +00:00
# 2023-04-20: Restrictive bytestring bound in tests.
storablevector = doJailbreak super . storablevector ;
# 2023-04-20: Pretends to need brick 1.6 but the commit history here
# https://github.com/matterhorn-chat/matterhorn/commits/master/matterhorn.cabal
# makes very clear that 1.4 is equally fine.
# Generally a slightly packaging hostile bound practice.
matterhorn = doJailbreak super . matterhorn ;
2022-08-21 13:32:41 +00:00
2022-04-03 18:54:34 +00:00
# 2020-06-05: HACK: does not pass own build suite - `dontCheck`
2022-12-28 21:21:41 +00:00
# 2022-11-24: jailbreak as it has too strict bounds on a bunch of things
2023-08-22 20:05:09 +00:00
# 2023-07-26: Cherry-pick GHC 9.4 changes from hnix master branch
hnix = appendPatches [
./patches/hnix-compat-for-ghc-9.4.patch
] ( dontCheck ( doJailbreak super . hnix ) ) ;
2022-12-28 21:21:41 +00:00
# Too strict bounds on algebraic-graphs and bytestring
2022-04-03 18:54:34 +00:00
# https://github.com/haskell-nix/hnix-store/issues/180
2022-12-28 21:21:41 +00:00
hnix-store-core = doJailbreak super . hnix-store-core ;
2023-08-22 20:05:09 +00:00
hnix-store-core_0_6_1_0 = doDistribute ( doJailbreak super . hnix-store-core_0_6_1_0 ) ;
2022-12-28 21:21:41 +00:00
2020-04-24 23:36:52 +00:00
# Fails for non-obvious reasons while attempting to use doctest.
2021-08-05 21:33:18 +00:00
focuslist = dontCheck super . focuslist ;
2020-04-24 23:36:52 +00:00
search = dontCheck super . search ;
# see https://github.com/LumiGuide/haskell-opencv/commit/cd613e200aa20887ded83256cf67d6903c207a60
2021-12-06 16:07:01 +00:00
opencv = dontCheck ( appendPatch ./patches/opencv-fix-116.patch super . opencv ) ;
opencv-extra = dontCheck ( appendPatch ./patches/opencv-fix-116.patch super . opencv-extra ) ;
2020-04-24 23:36:52 +00:00
# https://github.com/ekmett/structures/issues/3
structures = dontCheck super . structures ;
2023-10-09 19:29:22 +00:00
# Requires alex >= 3.4
jacinda = super . jacinda . override { alex = self . alex_3_4_0_0 ; } ;
2023-08-22 20:05:09 +00:00
2020-04-24 23:36:52 +00:00
# Disable test suites to fix the build.
acme-year = dontCheck super . acme-year ; # http://hydra.cryp.to/build/497858/log/raw
aeson-lens = dontCheck super . aeson-lens ; # http://hydra.cryp.to/build/496769/log/raw
aeson-schema = dontCheck super . aeson-schema ; # https://github.com/timjb/aeson-schema/issues/9
angel = dontCheck super . angel ;
apache-md5 = dontCheck super . apache-md5 ; # http://hydra.cryp.to/build/498709/nixlog/1/raw
app-settings = dontCheck super . app-settings ; # http://hydra.cryp.to/build/497327/log/raw
aws-kinesis = dontCheck super . aws-kinesis ; # needs aws credentials for testing
binary-protocol = dontCheck super . binary-protocol ; # http://hydra.cryp.to/build/499749/log/raw
binary-search = dontCheck super . binary-search ;
2022-04-27 09:35:20 +00:00
bloodhound = dontCheck super . bloodhound ; # https://github.com/plow-technologies/quickcheck-arbitrary-template/issues/10
2020-04-24 23:36:52 +00:00
buildwrapper = dontCheck super . buildwrapper ;
burst-detection = dontCheck super . burst-detection ; # http://hydra.cryp.to/build/496948/log/raw
cabal-meta = dontCheck super . cabal-meta ; # http://hydra.cryp.to/build/497892/log/raw
camfort = dontCheck super . camfort ;
cjk = dontCheck super . cjk ;
CLI = dontCheck super . CLI ; # Upstream has no issue tracker.
command-qq = dontCheck super . command-qq ; # http://hydra.cryp.to/build/499042/log/raw
conduit-connection = dontCheck super . conduit-connection ;
craftwerk = dontCheck super . craftwerk ;
2021-09-18 10:52:07 +00:00
crc = dontCheck super . crc ; # https://github.com/MichaelXavier/crc/issues/2
2020-04-24 23:36:52 +00:00
css-text = dontCheck super . css-text ;
damnpacket = dontCheck super . damnpacket ; # http://hydra.cryp.to/build/496923/log
data-hash = dontCheck super . data-hash ;
Deadpan-DDP = dontCheck super . Deadpan-DDP ; # http://hydra.cryp.to/build/496418/log/raw
DigitalOcean = dontCheck super . DigitalOcean ;
direct-sqlite = dontCheck super . direct-sqlite ;
directory-layout = dontCheck super . directory-layout ;
dlist = dontCheck super . dlist ;
docopt = dontCheck super . docopt ; # http://hydra.cryp.to/build/499172/log/raw
dom-selector = dontCheck super . dom-selector ; # http://hydra.cryp.to/build/497670/log/raw
dotenv = dontCheck super . dotenv ; # Tests fail because of missing test file on version 0.8.0.2 fixed on version 0.8.0.4
dotfs = dontCheck super . dotfs ; # http://hydra.cryp.to/build/498599/log/raw
DRBG = dontCheck super . DRBG ; # http://hydra.cryp.to/build/498245/nixlog/1/raw
ed25519 = dontCheck super . ed25519 ;
etcd = dontCheck super . etcd ;
fb = dontCheck super . fb ; # needs credentials for Facebook
fptest = dontCheck super . fptest ; # http://hydra.cryp.to/build/499124/log/raw
friday-juicypixels = dontCheck super . friday-juicypixels ; #tarball missing test/rgba8.png
ghc-events-parallel = dontCheck super . ghc-events-parallel ; # http://hydra.cryp.to/build/496828/log/raw
ghc-imported-from = dontCheck super . ghc-imported-from ;
ghc-parmake = dontCheck super . ghc-parmake ;
git-vogue = dontCheck super . git-vogue ;
github-rest = dontCheck super . github-rest ; # test suite needs the network
gitlib-cmdline = dontCheck super . gitlib-cmdline ;
GLFW-b = dontCheck super . GLFW-b ; # https://github.com/bsl/GLFW-b/issues/50
hackport = dontCheck super . hackport ;
hadoop-formats = dontCheck super . hadoop-formats ;
haeredes = dontCheck super . haeredes ;
hashed-storage = dontCheck super . hashed-storage ;
hashring = dontCheck super . hashring ;
hath = dontCheck super . hath ;
haxl = dontCheck super . haxl ; # non-deterministic failure https://github.com/facebook/Haxl/issues/85
haxl-facebook = dontCheck super . haxl-facebook ; # needs facebook credentials for testing
hdbi-postgresql = dontCheck super . hdbi-postgresql ;
hedis = dontCheck super . hedis ;
hedis-pile = dontCheck super . hedis-pile ;
hedis-tags = dontCheck super . hedis-tags ;
hedn = dontCheck super . hedn ;
hgdbmi = dontCheck super . hgdbmi ;
hi = dontCheck super . hi ;
hierarchical-clustering = dontCheck super . hierarchical-clustering ;
2021-12-06 16:07:01 +00:00
hlibgit2 = disableHardening [ " f o r m a t " ] super . hlibgit2 ;
2020-04-24 23:36:52 +00:00
hmatrix-tests = dontCheck super . hmatrix-tests ;
hquery = dontCheck super . hquery ;
hs2048 = dontCheck super . hs2048 ;
hsbencher = dontCheck super . hsbencher ;
hsexif = dontCheck super . hsexif ;
hspec-server = dontCheck super . hspec-server ;
2021-12-06 16:07:01 +00:00
HTF = overrideCabal ( orig : {
2021-05-03 20:48:10 +00:00
# The scripts in scripts/ are needed to build the test suite.
preBuild = " p a t c h S h e b a n g s - - b u i l d s c r i p t s " ;
2022-04-03 18:54:34 +00:00
# test suite doesn't compile with aeson >= 2.0
# https://github.com/skogsbaer/HTF/issues/114
doCheck = false ;
2021-12-06 16:07:01 +00:00
} ) super . HTF ;
2020-04-24 23:36:52 +00:00
htsn = dontCheck super . htsn ;
htsn-import = dontCheck super . htsn-import ;
http-link-header = dontCheck super . http-link-header ; # non deterministic failure https://hydra.nixos.org/build/75041105
influxdb = dontCheck super . influxdb ;
2020-12-07 07:45:13 +00:00
integer-roots = dontCheck super . integer-roots ; # requires an old version of smallcheck, will be fixed in > 1.0
2020-04-24 23:36:52 +00:00
itanium-abi = dontCheck super . itanium-abi ;
katt = dontCheck super . katt ;
language-slice = dontCheck super . language-slice ;
2023-03-04 12:14:45 +00:00
# Group of libraries by same upstream maintainer for interacting with
# Telegram messenger. Bit-rotted a bit since 2020.
tdlib = appendPatch ( fetchpatch {
# https://github.com/poscat0x04/tdlib/pull/3
url = " h t t p s : / / g i t h u b . c o m / p o s c a t 0 x 0 4 / t d l i b / c o m m i t / 8 e b 9 e c b c 9 8 c 6 5 a 7 1 5 4 6 9 f d b 8 b 6 7 7 9 3 a b 3 7 5 e d a 3 1 . p a t c h " ;
hash = " s h a 2 5 6 - v E I 7 f T s i a f N G B B l 4 V U X V C C l W 6 x K L i + i K 5 3 f j c u b g k p c = " ;
} ) ( doJailbreak super . tdlib ) ;
tdlib-types = doJailbreak super . tdlib-types ;
tdlib-gen = doJailbreak super . tdlib-gen ;
# https://github.com/poscat0x04/language-tl/pull/1
language-tl = doJailbreak super . language-tl ;
2020-04-24 23:36:52 +00:00
ldap-client = dontCheck super . ldap-client ;
lensref = dontCheck super . lensref ;
2021-12-06 16:07:01 +00:00
lvmrun = disableHardening [ " f o r m a t " ] ( dontCheck super . lvmrun ) ;
2020-04-24 23:36:52 +00:00
matplotlib = dontCheck super . matplotlib ;
memcache = dontCheck super . memcache ;
metrics = dontCheck super . metrics ;
milena = dontCheck super . milena ;
modular-arithmetic = dontCheck super . modular-arithmetic ; # tests require a very old Glob (0.7.*)
nats-queue = dontCheck super . nats-queue ;
netpbm = dontCheck super . netpbm ;
network = dontCheck super . network ;
2021-03-23 19:22:30 +00:00
network_2_6_3_1 = dontCheck super . network_2_6_3_1 ; # package is missing files for test
2020-04-24 23:36:52 +00:00
network-dbus = dontCheck super . network-dbus ;
notcpp = dontCheck super . notcpp ;
ntp-control = dontCheck super . ntp-control ;
odpic-raw = dontCheck super . odpic-raw ; # needs a running oracle database server
opaleye = dontCheck super . opaleye ;
openpgp = dontCheck super . openpgp ;
optional = dontCheck super . optional ;
orgmode-parse = dontCheck super . orgmode-parse ;
os-release = dontCheck super . os-release ;
2021-04-25 03:57:28 +00:00
parameterized = dontCheck super . parameterized ; # https://github.com/louispan/parameterized/issues/2
2020-04-24 23:36:52 +00:00
persistent-redis = dontCheck super . persistent-redis ;
pipes-extra = dontCheck super . pipes-extra ;
pipes-websockets = dontCheck super . pipes-websockets ;
posix-pty = dontCheck super . posix-pty ; # https://github.com/merijn/posix-pty/issues/12
postgresql-binary = dontCheck super . postgresql-binary ; # needs a running postgresql server
postgresql-simple-migration = dontCheck super . postgresql-simple-migration ;
2022-07-14 12:49:19 +00:00
powerdns = dontCheck super . powerdns ; # Tests require networking and external services
2020-04-24 23:36:52 +00:00
process-streaming = dontCheck super . process-streaming ;
punycode = dontCheck super . punycode ;
pwstore-cli = dontCheck super . pwstore-cli ;
quantities = dontCheck super . quantities ;
redis-io = dontCheck super . redis-io ;
rethinkdb = dontCheck super . rethinkdb ;
Rlang-QQ = dontCheck super . Rlang-QQ ;
safecopy = dontCheck super . safecopy ;
sai-shape-syb = dontCheck super . sai-shape-syb ;
saltine = dontCheck super . saltine ; # https://github.com/tel/saltine/pull/56
scp-streams = dontCheck super . scp-streams ;
sdl2 = dontCheck super . sdl2 ; # the test suite needs an x server
sdl2-ttf = dontCheck super . sdl2-ttf ; # as of version 0.2.1, the test suite requires user intervention
separated = dontCheck super . separated ;
shadowsocks = dontCheck super . shadowsocks ;
shake-language-c = dontCheck super . shake-language-c ;
2022-04-03 18:54:34 +00:00
snap-core = doJailbreak ( dontCheck super . snap-core ) ; # attoparsec bound is too strict. This has been fixed on master
snap-server = doJailbreak super . snap-server ; # attoparsec bound is too strict
2020-04-24 23:36:52 +00:00
sourcemap = dontCheck super . sourcemap ;
static-resources = dontCheck super . static-resources ;
strive = dontCheck super . strive ; # fails its own hlint test with tons of warnings
svndump = dontCheck super . svndump ;
2020-05-15 21:57:56 +00:00
tar = dontCheck super . tar ; #https://hydra.nixos.org/build/25088435/nixlog/2 (fails only on 32-bit)
2020-04-24 23:36:52 +00:00
th-printf = dontCheck super . th-printf ;
thumbnail-plus = dontCheck super . thumbnail-plus ;
tickle = dontCheck super . tickle ;
tpdb = dontCheck super . tpdb ;
translatable-intset = dontCheck super . translatable-intset ;
ua-parser = dontCheck super . ua-parser ;
unagi-chan = dontCheck super . unagi-chan ;
wai-logger = dontCheck super . wai-logger ;
WebBits = dontCheck super . WebBits ; # http://hydra.cryp.to/build/499604/log/raw
webdriver = dontCheck super . webdriver ;
webdriver-angular = dontCheck super . webdriver-angular ;
xsd = dontCheck super . xsd ;
zip-archive = dontCheck super . zip-archive ; # https://github.com/jgm/zip-archive/issues/57
2023-07-15 17:15:38 +00:00
# 2023-06-26: Test failure: https://hydra.nixos.org/build/224869905
comfort-blas = dontCheck super . comfort-blas ;
# 2022-06-26: Too strict lower bound on semialign.
trie-simple = doJailbreak super . trie-simple ;
2020-04-24 23:36:52 +00:00
# These test suites run for ages, even on a fast machine. This is nuts.
Random123 = dontCheck super . Random123 ;
systemd = dontCheck super . systemd ;
# https://github.com/eli-frey/cmdtheline/issues/28
cmdtheline = dontCheck super . cmdtheline ;
# https://github.com/bos/snappy/issues/1
2023-03-04 12:14:45 +00:00
# https://github.com/bos/snappy/pull/10
snappy = appendPatches [
( pkgs . fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / b o s / s n a p p y / c o m m i t / 8 6 8 7 8 0 2 c 0 b 8 5 e d 7 f b b b 1 b 1 9 4 5 a 7 5 f 1 4 f b 9 a 9 c 8 8 6 . p a t c h " ;
sha256 = " s h a 2 5 6 - p 6 r M z k j P A Z V l j s C 1 U b j 1 6 / m N r 4 m q 5 J p x f P 5 x w T + G t 5 M = " ;
} )
( pkgs . fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / b o s / s n a p p y / c o m m i t / 2 1 c 3 2 5 0 c 1 f 3 d 2 7 3 c d c f 5 9 7 e 2 b 7 9 0 9 a 2 2 a e a a 7 1 0 f . p a t c h " ;
sha256 = " s h a 2 5 6 - q H E Q 8 F F a g X G x v t b l B v o 7 x i v R A R z X l a M L w 8 n t 0 0 6 8 n t 0 = " ;
} )
] ( dontCheck super . snappy ) ;
2020-04-24 23:36:52 +00:00
# https://github.com/vincenthz/hs-crypto-pubkey/issues/20
crypto-pubkey = dontCheck super . crypto-pubkey ;
# https://github.com/Philonous/xml-picklers/issues/5
xml-picklers = dontCheck super . xml-picklers ;
# https://github.com/joeyadams/haskell-stm-delay/issues/3
stm-delay = dontCheck super . stm-delay ;
# https://github.com/pixbi/duplo/issues/25
2022-12-28 21:21:41 +00:00
duplo = doJailbreak super . duplo ;
2020-04-24 23:36:52 +00:00
# https://github.com/evanrinehart/mikmod/issues/1
2021-12-06 16:07:01 +00:00
mikmod = addExtraLibrary pkgs . libmikmod super . mikmod ;
2020-04-24 23:36:52 +00:00
# Missing module.
rematch = dontCheck super . rematch ; # https://github.com/tcrayford/rematch/issues/5
rematch-text = dontCheck super . rematch-text ; # https://github.com/tcrayford/rematch/issues/6
2023-03-30 22:05:00 +00:00
# Package exists only to be example of documentation, yet it has restrictive
# "base" dependency.
haddock-cheatsheet = doJailbreak super . haddock-cheatsheet ;
2020-04-24 23:36:52 +00:00
# no haddock since this is an umbrella package.
cloud-haskell = dontHaddock super . cloud-haskell ;
# This packages compiles 4+ hours on a fast machine. That's just unreasonable.
CHXHtml = dontDistribute super . CHXHtml ;
# https://github.com/NixOS/nixpkgs/issues/6350
2021-12-06 16:07:01 +00:00
paypal-adaptive-hoops = overrideCabal ( drv : { testTarget = " l o c a l " ; } ) super . paypal-adaptive-hoops ;
2020-04-24 23:36:52 +00:00
# Avoid "QuickCheck >=2.3 && <2.10" dependency we cannot fulfill in lts-11.x.
test-framework = dontCheck super . test-framework ;
# Depends on broken test-framework-quickcheck.
apiary = dontCheck super . apiary ;
apiary-authenticate = dontCheck super . apiary-authenticate ;
apiary-clientsession = dontCheck super . apiary-clientsession ;
apiary-cookie = dontCheck super . apiary-cookie ;
apiary-eventsource = dontCheck super . apiary-eventsource ;
apiary-logger = dontCheck super . apiary-logger ;
apiary-memcached = dontCheck super . apiary-memcached ;
apiary-mongoDB = dontCheck super . apiary-mongoDB ;
apiary-persistent = dontCheck super . apiary-persistent ;
apiary-purescript = dontCheck super . apiary-purescript ;
apiary-session = dontCheck super . apiary-session ;
apiary-websockets = dontCheck super . apiary-websockets ;
# https://github.com/junjihashimoto/test-sandbox-compose/issues/2
test-sandbox-compose = dontCheck super . test-sandbox-compose ;
# Test suite won't compile against tasty-hunit 0.10.x.
binary-parsers = dontCheck super . binary-parsers ;
2020-08-20 17:08:02 +00:00
2021-05-20 23:08:51 +00:00
# https://github.com/ndmitchell/shake/issues/804
shake = dontCheck super . shake ;
2020-04-24 23:36:52 +00:00
# https://github.com/nushio3/doctest-prop/issues/1
doctest-prop = dontCheck super . doctest-prop ;
# Missing file in source distribution:
# - https://github.com/karun012/doctest-discover/issues/22
# - https://github.com/karun012/doctest-discover/issues/23
#
# When these are fixed the following needs to be enabled again:
#
# # Depends on itself for testing
# doctest-discover = addBuildTool super.doctest-discover
2023-01-11 07:51:40 +00:00
# (if pkgs.stdenv.buildPlatform != pkgs.stdenv.hostPlatform
2020-04-24 23:36:52 +00:00
# then self.buildHaskellPackages.doctest-discover
# else dontCheck super.doctest-discover);
doctest-discover = dontCheck super . doctest-discover ;
2023-05-24 13:37:59 +00:00
# Too strict lower bound on tasty-hedgehog
# https://github.com/qfpl/tasty-hedgehog/issues/70
tasty-sugar = doJailbreak super . tasty-sugar ;
# Too strict lower bound on aeson
# https://github.com/input-output-hk/hedgehog-extras/issues/39
hedgehog-extras = doJailbreak super . hedgehog-extras ;
2021-01-15 22:18:51 +00:00
# Known issue with nondeterministic test suite failure
# https://github.com/nomeata/tasty-expected-failure/issues/21
tasty-expected-failure = dontCheck super . tasty-expected-failure ;
2020-07-18 16:06:22 +00:00
# Waiting on https://github.com/RaphaelJ/friday/pull/36
2020-04-24 23:36:52 +00:00
friday = doJailbreak super . friday ;
# Won't compile with recent versions of QuickCheck.
inilist = dontCheck super . inilist ;
# https://github.com/yaccz/saturnin/issues/3
Saturnin = dontCheck super . Saturnin ;
# https://github.com/kkardzis/curlhs/issues/6
curlhs = dontCheck super . curlhs ;
2023-01-20 10:41:00 +00:00
# curl 7.87.0 introduces a preprocessor typechecker of sorts which fails on
# incorrect usages of curl_easy_getopt and similar functions. Presumably
# because the wrappers in curlc.c don't use static values for the different
# arguments to curl_easy_getinfo, it complains and needs to be disabled.
# https://github.com/GaloisInc/curl/issues/28
curl = appendConfigureFlags [
" - - g h c - o p t i o n = - D C U R L _ D I S A B L E _ T Y P E C H E C K "
] super . curl ;
2020-04-24 23:36:52 +00:00
# https://github.com/hvr/token-bucket/issues/3
token-bucket = dontCheck super . token-bucket ;
# https://github.com/alphaHeavy/lzma-enumerator/issues/3
lzma-enumerator = dontCheck super . lzma-enumerator ;
# FPCO's fork of Cabal won't succeed its test suite.
Cabal-ide-backend = dontCheck super . Cabal-ide-backend ;
# This package can't be built on non-Windows systems.
2021-12-06 16:07:01 +00:00
Win32 = overrideCabal ( drv : { broken = ! pkgs . stdenv . isCygwin ; } ) super . Win32 ;
2020-04-24 23:36:52 +00:00
inline-c-win32 = dontDistribute super . inline-c-win32 ;
Southpaw = dontDistribute super . Southpaw ;
# https://ghc.haskell.org/trac/ghc/ticket/9825
2021-12-06 16:07:01 +00:00
vimus = overrideCabal ( drv : { broken = pkgs . stdenv . isLinux && pkgs . stdenv . isi686 ; } ) super . vimus ;
2020-04-24 23:36:52 +00:00
# https://github.com/kazu-yamamoto/logger/issues/42
logger = dontCheck super . logger ;
# vector dependency < 0.12
imagemagick = doJailbreak super . imagemagick ;
# Elm is no longer actively maintained on Hackage: https://github.com/NixOS/nixpkgs/pull/9233.
Elm = markBroken super . Elm ;
elm-build-lib = markBroken super . elm-build-lib ;
elm-compiler = markBroken super . elm-compiler ;
elm-get = markBroken super . elm-get ;
elm-make = markBroken super . elm-make ;
elm-package = markBroken super . elm-package ;
elm-reactor = markBroken super . elm-reactor ;
elm-repl = markBroken super . elm-repl ;
elm-server = markBroken super . elm-server ;
elm-yesod = markBroken super . elm-yesod ;
# https://github.com/Euterpea/Euterpea2/issues/40
2021-06-04 09:07:49 +00:00
Euterpea = doJailbreak super . Euterpea ;
2020-04-24 23:36:52 +00:00
# Install icons, metadata and cli program.
2023-03-27 19:17:25 +00:00
bustle = appendPatches [
# Fix build with libpcap 1.10.2
# https://gitlab.freedesktop.org/bustle/bustle/-/merge_requests/21
( pkgs . fetchpatch {
url = " h t t p s : / / g i t l a b . f r e e d e s k t o p . o r g / b u s t l e / b u s t l e / - / c o m m i t / 7 7 e 2 d e 8 9 2 c d 3 5 9 f 7 7 9 c 8 4 7 3 9 6 8 2 4 3 1 a 6 6 e b 8 c f 3 1 . p a t c h " ;
hash = " s h a 2 5 6 - s P b 6 / Z / A N i d s 5 3 a L 9 V s M H a / v 5 y + T A 1 Z Y 3 j w A X l E H 3 E c = " ;
} )
] ( overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
buildDepends = [ pkgs . libpcap ] ;
buildTools = with pkgs . buildPackages ; [ gettext perl help2man ] ;
postInstall = ''
make install PREFIX = $ out
'' ;
2023-03-27 19:17:25 +00:00
} ) super . bustle ) ;
2020-04-24 23:36:52 +00:00
# Byte-compile elisp code for Emacs.
2021-12-06 16:07:01 +00:00
ghc-mod = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
preCheck = " e x p o r t H O M E = $ T M P D I R " ;
testToolDepends = drv . testToolDepends or [ ] ++ [ self . cabal-install ] ;
doCheck = false ; # https://github.com/kazu-yamamoto/ghc-mod/issues/335
2021-06-28 23:13:55 +00:00
executableToolDepends = drv . executableToolDepends or [ ] ++ [ pkgs . buildPackages . emacs ] ;
2020-04-24 23:36:52 +00:00
postInstall = ''
2022-04-15 01:41:22 +00:00
local lispdir = ( " $ d a t a / s h a r e / ${ self . ghc . targetPrefix } ${ self . ghc . haskellCompilerName } / * / ${ drv . pname } - ${ drv . version } / e l i s p " )
2020-04-24 23:36:52 +00:00
make - C $ lispdir
mkdir - p $ data/share/emacs/site-lisp
ln - s " $ l i s p d i r / " * . el { , c } $ data/share/emacs/site-lisp /
'' ;
2021-12-06 16:07:01 +00:00
} ) super . ghc-mod ;
2020-04-24 23:36:52 +00:00
2022-04-03 18:54:34 +00:00
# 2022-03-20: descriptive is unmaintained since 2018 and archived on github.com
# It does not support aeson 2.0
descriptive = super . descriptive . override { aeson = self . aeson_1_5_6_0 ; } ;
2023-10-09 19:29:22 +00:00
# Apply compatibility patches until a new release arrives
# https://github.com/phadej/spdx/issues/33
spdx = appendPatches [
( fetchpatch {
name = " s p d x - g h c - 9 . 4 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / p h a d e j / s p d x / p u l l / 3 0 / c o m m i t s / 5 4 5 d c 6 9 f 4 3 3 2 2 5 c 8 3 7 3 7 5 f b a 4 c b b d b 7 f 9 c c 7 b 0 9 b . p a t c h " ;
sha256 = " 0 p 2 h 8 d x k j y 2 v 0 d x 7 h 6 v 6 2 c l m x 5 n 5 j 3 c 4 z h 4 m y h 9 2 6 f i j y m p i 1 g l z " ;
} )
( fetchpatch {
name = " s p d x - g h c - 9 . 6 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / p h a d e j / s p d x / p u l l / 3 2 / c o m m i t s / b 5 1 f 6 6 5 e 9 9 6 0 6 1 4 2 7 4 f f 6 a 9 a c 6 5 8 8 0 2 c 1 a 7 8 5 6 8 7 . p a t c h " ;
sha256 = " 0 1 v f 1 h 0 d j r 8 4 y x s j f h y m 7 1 5 n c x 0 w 5 q 4 l 0 2 k 3 d k b m g 4 0 p n c 6 2 q l 4 h " ;
excludes = [ " . g i t h u b / * * " ] ;
} )
] super . spdx ;
2022-04-03 18:54:34 +00:00
# 2022-03-19: Testsuite is failing: https://github.com/puffnfresh/haskell-jwt/issues/2
jwt = dontCheck super . jwt ;
2020-04-24 23:36:52 +00:00
# Build the latest git version instead of the official release. This isn't
# ideal, but Chris doesn't seem to make official releases any more.
2021-12-06 16:07:01 +00:00
structured-haskell-mode = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
src = pkgs . fetchFromGitHub {
owner = " p r o j e c t i o n a l - h a s k e l l " ;
repo = " s t r u c t u r e d - h a s k e l l - m o d e " ;
rev = " 7 f 9 d f 7 3 f 4 5 d 1 0 7 0 1 7 c 1 8 c e 4 8 3 5 b b c 1 9 0 d f e 6 7 8 2 e " ;
sha256 = " 1 j c c 3 0 0 4 8 j 3 6 9 j g s b b m k b 6 3 w h s 4 w b 3 7 b q 2 1 j r m 3 r 6 r y 2 2 i z n d s q a " ;
} ;
version = " 2 0 1 7 0 2 0 5 - g i t " ;
editedCabalFile = null ;
# Make elisp files available at a location where people expect it. We
# cannot easily byte-compile these files, unfortunately, because they
# depend on a new version of haskell-mode that we don't have yet.
postInstall = ''
2022-04-15 01:41:22 +00:00
local lispdir = ( " $ d a t a / s h a r e / ${ self . ghc . targetPrefix } ${ self . ghc . haskellCompilerName } / " * " / ${ drv . pname } - " * " / e l i s p " )
2020-04-24 23:36:52 +00:00
mkdir - p $ data/share/emacs
ln - s $ lispdir $ data/share/emacs/site-lisp
'' ;
2021-12-06 16:07:01 +00:00
} ) super . structured-haskell-mode ;
2020-04-24 23:36:52 +00:00
# Make elisp files available at a location where people expect it.
2021-12-06 16:07:01 +00:00
hindent = ( overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
# We cannot easily byte-compile these files, unfortunately, because they
# depend on a new version of haskell-mode that we don't have yet.
postInstall = ''
2022-04-15 01:41:22 +00:00
local lispdir = ( " $ d a t a / s h a r e / ${ self . ghc . targetPrefix } ${ self . ghc . haskellCompilerName } / " * " / ${ drv . pname } - " * " / e l i s p " )
2020-04-24 23:36:52 +00:00
mkdir - p $ data/share/emacs
ln - s $ lispdir $ data/share/emacs/site-lisp
'' ;
doCheck = false ; # https://github.com/chrisdone/hindent/issues/299
2021-12-06 16:07:01 +00:00
} ) super . hindent ) ;
2020-04-24 23:36:52 +00:00
# https://github.com/basvandijk/concurrent-extra/issues/12
concurrent-extra = dontCheck super . concurrent-extra ;
# https://github.com/pxqr/base32-bytestring/issues/4
base32-bytestring = dontCheck super . base32-bytestring ;
# Djinn's last release was 2014, incompatible with Semigroup-Monoid Proposal
# https://github.com/augustss/djinn/pull/8
2022-04-03 18:54:34 +00:00
djinn = appendPatch ( fetchpatch {
2020-04-24 23:36:52 +00:00
url = " h t t p s : / / g i t h u b . c o m / a u g u s t s s / d j i n n / c o m m i t / 6 c b 9 4 3 3 a 1 3 7 f b 6 b 5 1 9 4 a f e 4 1 d 6 1 6 b d 8 b 6 2 b 9 5 6 3 0 . p a t c h " ;
sha256 = " 0 s 0 2 1 y 5 n z r h 7 4 g f p 8 x p x p x m 1 1 i v z f s 3 j w g 6 m k r l y r y 3 i y 5 8 4 x q i l " ;
2021-12-06 16:07:01 +00:00
} ) super . djinn ;
2020-04-24 23:36:52 +00:00
# We cannot build this package w/o the C library from <http://www.phash.org/>.
phash = markBroken super . phash ;
# https://github.com/Philonous/hs-stun/pull/1
# Remove if a version > 0.1.0.1 ever gets released.
2021-12-06 16:07:01 +00:00
stunclient = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
postPatch = ( drv . postPatch or " " ) + ''
substituteInPlace source/Network/Stun/MappedAddress.hs - - replace " i m p o r t N e t w o r k . E n d i a n " " "
'' ;
2021-12-06 16:07:01 +00:00
} ) super . stunclient ;
2020-04-24 23:36:52 +00:00
2021-10-01 09:20:50 +00:00
d-bus = let
# The latest release on hackage is missing necessary patches for recent compilers
# https://github.com/Philonous/d-bus/issues/24
2021-12-06 16:07:01 +00:00
newer = overrideSrc {
2021-10-01 09:20:50 +00:00
version = " u n s t a b l e - 2 0 2 1 - 0 1 - 0 8 " ;
src = pkgs . fetchFromGitHub {
owner = " P h i l o n o u s " ;
repo = " d - b u s " ;
rev = " f b 8 a 9 4 8 a 3 b 9 d 5 1 d b 6 1 8 4 5 4 3 2 8 d b e 1 8 f b 1 f 3 1 3 c 7 0 " ;
hash = " s h a 2 5 6 - R 7 / + o k b 6 t 9 D A k P V U V 7 0 Q d Y J W 8 v R c v B d z 4 z K J T 1 3 j b 3 A = " ;
} ;
2021-12-06 16:07:01 +00:00
} super . d-bus ;
2021-10-01 09:20:50 +00:00
# Add now required extension on recent compilers.
# https://github.com/Philonous/d-bus/pull/23
2022-04-03 18:54:34 +00:00
in appendPatch ( fetchpatch {
2021-10-01 09:20:50 +00:00
url = " h t t p s : / / g i t h u b . c o m / P h i l o n o u s / d - b u s / c o m m i t / e 5 f 3 7 9 0 0 a 3 a 3 0 1 c 4 1 d 9 8 b d a a 1 3 4 7 5 4 8 9 4 c 7 0 5 6 8 1 . p a t c h " ;
sha256 = " 6 r Q 7 H 9 t 4 8 3 s J e 1 x 9 5 y L P A Z 0 B K T a R j g q Q v v r Q v 7 H k J R E = " ;
2021-12-06 16:07:01 +00:00
} ) newer ;
2021-10-01 09:20:50 +00:00
2021-03-09 03:18:52 +00:00
# * The standard libraries are compiled separately.
2023-01-11 07:51:40 +00:00
# * We need a patch from master to fix compilation with
2021-03-09 03:18:52 +00:00
# updated dependencies (haskeline and megaparsec) which can be
2023-01-11 07:51:40 +00:00
# removed when the next idris release comes around.
2022-10-21 18:38:19 +00:00
idris = self . generateOptparseApplicativeCompletions [ " i d r i s " ]
2023-01-11 07:51:40 +00:00
( appendPatch ( fetchpatch {
name = " i d r i s - l i b f f i - 0 . 2 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / i d r i s - l a n g / I d r i s - d e v / c o m m i t / 6 d 6 0 1 7 f 9 0 6 c 5 a a 9 5 5 9 4 d b a 0 f d 7 5 e 7 a 5 1 2 f 8 7 8 8 3 a . p a t c h " ;
hash = " s h a 2 5 6 - w y L j q C y L h 5 q u H M O w L M 5 / X j l h y l V C 7 U u a h A M 7 9 D 8 + u l s = " ;
} ) ( doJailbreak ( dontCheck super . idris ) ) ) ;
# Too strict bound on hspec
# https://github.com/lspitzner/multistate/issues/9#issuecomment-1367853016
multistate = doJailbreak super . multistate ;
2020-04-24 23:36:52 +00:00
# https://github.com/pontarius/pontarius-xmpp/issues/105
pontarius-xmpp = dontCheck super . pontarius-xmpp ;
# fails with sandbox
yi-keymap-vim = dontCheck super . yi-keymap-vim ;
# https://github.com/bmillwood/applicative-quoters/issues/6
applicative-quoters = doJailbreak super . applicative-quoters ;
# https://hydra.nixos.org/build/42769611/nixlog/1/raw
# note: the library is unmaintained, no upstream issue
dataenc = doJailbreak super . dataenc ;
# horribly outdated (X11 interface changed a lot)
sindre = markBroken super . sindre ;
# Test suite occasionally runs for 1+ days on Hydra.
distributed-process-tests = dontCheck super . distributed-process-tests ;
# https://github.com/mulby/diff-parse/issues/9
diff-parse = doJailbreak super . diff-parse ;
# No upstream issue tracker
hspec-expectations-pretty-diff = dontCheck super . hspec-expectations-pretty-diff ;
# Don't depend on chell-quickcheck, which doesn't compile due to restricting
# QuickCheck to versions ">=2.3 && <2.9".
system-filepath = dontCheck super . system-filepath ;
# The tests spuriously fail
libmpd = dontCheck super . libmpd ;
2021-12-06 16:07:01 +00:00
# https://github.com/xu-hao/namespace/issues/1
namespace = doJailbreak super . namespace ;
2020-04-24 23:36:52 +00:00
# https://github.com/danidiaz/streaming-eversion/issues/1
streaming-eversion = dontCheck super . streaming-eversion ;
# https://github.com/danidiaz/tailfile-hinotify/issues/2
2022-12-28 21:21:41 +00:00
tailfile-hinotify = doJailbreak ( dontCheck super . tailfile-hinotify ) ;
2020-04-24 23:36:52 +00:00
# Test suite fails: https://github.com/lymar/hastache/issues/46.
# Don't install internal mkReadme tool.
2021-12-06 16:07:01 +00:00
hastache = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
doCheck = false ;
postInstall = " r m $ o u t / b i n / m k R e a d m e & & r m d i r $ o u t / b i n " ;
2021-12-06 16:07:01 +00:00
} ) super . hastache ;
2020-04-24 23:36:52 +00:00
# Has a dependency on outdated versions of directory.
cautious-file = doJailbreak ( dontCheck super . cautious-file ) ;
# missing dependencies: blaze-html >=0.5 && <0.9, blaze-markup >=0.5 && <0.8
digestive-functors-blaze = doJailbreak super . digestive-functors-blaze ;
digestive-functors = doJailbreak super . digestive-functors ;
# Wrap the generated binaries to include their run-time dependencies in
# $PATH. Also, cryptol needs a version of sbl that's newer than what we have
# in LTS-13.x.
2021-12-06 16:07:01 +00:00
cryptol = overrideCabal ( drv : {
2021-06-28 23:13:55 +00:00
buildTools = drv . buildTools or [ ] ++ [ pkgs . buildPackages . makeWrapper ] ;
2020-04-24 23:36:52 +00:00
postInstall = drv . postInstall or " " + ''
for b in $ out/bin/cryptol $ out/bin/cryptol-html ; do
2022-04-03 18:54:34 +00:00
wrapProgram $ b - - prefix ' PATH' ' : ' " ${ lib . getBin pkgs . z3 } / b i n "
2020-04-24 23:36:52 +00:00
done
'' ;
2021-12-06 16:07:01 +00:00
} ) super . cryptol ;
2020-04-24 23:36:52 +00:00
# Tests try to invoke external process and process == 1.4
grakn = dontCheck ( doJailbreak super . grakn ) ;
# test suite requires git and does a bunch of git operations
2020-07-18 16:06:22 +00:00
restless-git = dontCheck super . restless-git ;
2020-04-24 23:36:52 +00:00
2022-04-27 09:35:20 +00:00
# requires git at test-time *and* runtime, but we'll just rely on users to
2023-08-22 20:05:09 +00:00
# bring their own git at runtime. Additionally, sensei passes `-package
# hspec-meta` to GHC in the tests, but doesn't depend on it itself.
2022-04-27 09:35:20 +00:00
sensei = overrideCabal ( drv : {
2023-08-22 20:05:09 +00:00
testHaskellDepends = drv . testHaskellDepends or [ ] ++ [ self . hspec-meta ] ;
2022-04-27 09:35:20 +00:00
testToolDepends = drv . testToolDepends or [ ] ++ [ pkgs . git ] ;
2023-08-22 20:05:09 +00:00
} ) super . sensei ;
2022-04-27 09:35:20 +00:00
2020-04-24 23:36:52 +00:00
# Depends on broken fluid.
fluid-idl-http-client = markBroken super . fluid-idl-http-client ;
fluid-idl-scotty = markBroken super . fluid-idl-scotty ;
# Work around https://github.com/haskell/c2hs/issues/192.
c2hs = dontCheck super . c2hs ;
# Needs pginit to function and pgrep to verify.
2021-12-06 16:07:01 +00:00
tmp-postgres = overrideCabal ( drv : {
2021-08-05 21:33:18 +00:00
# Flaky tests: https://github.com/jfischoff/tmp-postgres/issues/274
doCheck = false ;
2021-06-28 23:13:55 +00:00
preCheck = ''
export HOME = " $ T M P D I R "
'' + ( d r v . p r e C h e c k o r " " ) ;
libraryToolDepends = drv . libraryToolDepends or [ ] ++ [ pkgs . buildPackages . postgresql ] ;
2020-04-24 23:36:52 +00:00
testToolDepends = drv . testToolDepends or [ ] ++ [ pkgs . procps ] ;
2021-12-06 16:07:01 +00:00
} ) super . tmp-postgres ;
2020-04-24 23:36:52 +00:00
# Needs QuickCheck <2.10, which we don't have.
edit-distance = doJailbreak super . edit-distance ;
int-cast = doJailbreak super . int-cast ;
# Needs QuickCheck <2.10, HUnit <1.6 and base <4.10
pointfree = doJailbreak super . pointfree ;
# Needs tasty-quickcheck ==0.8.*, which we don't have.
gitHUD = dontCheck super . gitHUD ;
githud = dontCheck super . githud ;
# Test suite fails due to trying to create directories
path-io = dontCheck super . path-io ;
# Duplicate instance with smallcheck.
store = dontCheck super . store ;
# With ghc-8.2.x haddock would time out for unknown reason
# See https://github.com/haskell/haddock/issues/679
language-puppet = dontHaddock super . language-puppet ;
# https://github.com/alphaHeavy/protobuf/issues/34
protobuf = dontCheck super . protobuf ;
2021-05-20 23:08:51 +00:00
# jailbreak tasty < 1.2 until servant-docs > 0.11.3 is on hackage.
2020-09-25 04:45:31 +00:00
snap-templates = doJailbreak super . snap-templates ; # https://github.com/snapframework/snap-templates/issues/22
2020-04-24 23:36:52 +00:00
# The test suite does not know how to find the 'alex' binary.
2021-12-06 16:07:01 +00:00
alex = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
testSystemDepends = ( drv . testSystemDepends or [ ] ) ++ [ pkgs . which ] ;
preCheck = '' e x p o r t P A T H = " $P W D / d i s t / b u i l d / a l e x : $P A T H " '' ;
2021-12-06 16:07:01 +00:00
} ) super . alex ;
2020-04-24 23:36:52 +00:00
2023-08-22 20:05:09 +00:00
# 2023-07-14: Restrictive upper bounds: https://github.com/luke-clifton/shh/issues/76
shh = doJailbreak super . shh ;
shh-extras = doJailbreak super . shh-extras ;
2020-04-24 23:36:52 +00:00
# This package refers to the wrong library (itself in fact!)
vulkan = super . vulkan . override { vulkan = pkgs . vulkan-loader ; } ;
2020-11-06 00:33:48 +00:00
# Compiles some C or C++ source which requires these headers
2021-12-06 16:07:01 +00:00
VulkanMemoryAllocator = addExtraLibrary pkgs . vulkan-headers super . VulkanMemoryAllocator ;
2022-12-28 21:21:41 +00:00
# dontCheck can be removed on the next package set bump
vulkan-utils = dontCheck ( addExtraLibrary pkgs . vulkan-headers super . vulkan-utils ) ;
2020-06-02 18:00:15 +00:00
2020-04-24 23:36:52 +00:00
# https://github.com/dmwit/encoding/pull/3
2021-12-06 16:07:01 +00:00
encoding = doJailbreak ( appendPatch ./patches/encoding-Cabal-2.0.patch super . encoding ) ;
2020-04-24 23:36:52 +00:00
# Work around overspecified constraint on github ==0.18.
github-backup = doJailbreak super . github-backup ;
2020-11-21 19:51:51 +00:00
# dontCheck: https://github.com/haskell-servant/servant-auth/issues/113
2023-10-09 19:29:22 +00:00
servant-auth-client = dontCheck super . servant-auth-client ;
# Allow lens-aeson >= 1.2 https://github.com/haskell-servant/servant/issues/1703
2022-04-03 18:54:34 +00:00
servant-auth-server = doJailbreak super . servant-auth-server ;
2023-10-09 19:29:22 +00:00
# Allow hspec >= 2.10 https://github.com/haskell-servant/servant/issues/1704
servant-foreign = doJailbreak super . servant-foreign ;
2020-04-24 23:36:52 +00:00
2020-08-20 17:08:02 +00:00
# Generate cli completions for dhall.
2022-10-21 18:38:19 +00:00
dhall = self . generateOptparseApplicativeCompletions [ " d h a l l " ] super . dhall ;
2021-01-15 22:18:51 +00:00
# For reasons that are not quire clear 'dhall-json' won't compile without 'tasty 1.4' due to its tests
# https://github.com/commercialhaskell/stackage/issues/5795
# This issue can be mitigated with 'dontCheck' which skips the tests and their compilation.
2022-10-21 18:38:19 +00:00
dhall-json = self . generateOptparseApplicativeCompletions [ " d h a l l - t o - j s o n " " d h a l l - t o - y a m l " ] ( dontCheck super . dhall-json ) ;
2022-12-28 21:21:41 +00:00
dhall-nix = self . generateOptparseApplicativeCompletions [ " d h a l l - t o - n i x " ]
( overrideCabal ( drv : {
patches = [
# Compatibility with hnix 0.16, waiting for release
# https://github.com/dhall-lang/dhall-haskell/pull/2474
( pkgs . fetchpatch {
name = " d h a l l - n i x - h n i x - 0 . 1 6 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / d h a l l - l a n g / d h a l l - h a s k e l l / c o m m i t / 4 9 b 9 b 3 e 3 c e 1 7 1 8 a 8 9 7 7 3 c 2 b 1 b f a 3 c 2 a f 1 a 6 e 8 7 5 2 . p a t c h " ;
sha256 = " 1 2 s h 5 m d 8 1 n l h y z z k m f 7 j r l l 3 w 1 r v g 2 j 4 8 m 5 7 h f y v j n 8 h a s 9 c 4 g w 6 " ;
stripLen = 1 ;
includes = [ " d h a l l - n i x . c a b a l " " s r c / D h a l l / N i x . h s " ] ;
} )
] ++ drv . patches or [ ] ;
prePatch = drv . prePatch or " " + ''
$ { pkgs . buildPackages . dos2unix } /bin/dos2unix * . cabal
'' ;
} ) super . dhall-nix ) ;
2022-10-21 18:38:19 +00:00
dhall-yaml = self . generateOptparseApplicativeCompletions [ " d h a l l - t o - y a m l - n g " " y a m l - t o - d h a l l " ] super . dhall-yaml ;
2022-12-28 21:21:41 +00:00
dhall-nixpkgs = self . generateOptparseApplicativeCompletions [ " d h a l l - t o - n i x p k g s " ]
( overrideCabal ( drv : {
# Allow hnix 0.16, needs unreleased bounds change
# https://github.com/dhall-lang/dhall-haskell/pull/2474
jailbreak = assert drv . version == " 1 . 0 . 9 " && drv . revision == " 1 " ; true ;
} ) super . dhall-nixpkgs ) ;
2023-04-12 12:48:02 +00:00
stack =
2023-08-22 20:05:09 +00:00
lib . pipe
super . stack
[
( self . generateOptparseApplicativeCompletions [ " s t a c k " ] )
# Seems to be an unnecessarily strict dep on ansi-terminal
doJailbreak
# The below patch has unix line endings, but the actual file
# has CRLF line endings. The following override changes the
# file to unix line endings before applying the patch.
( overrideCabal ( oldAttrs : {
prePatch = oldAttrs . prePatch or " " + ''
" ${ lib . getBin pkgs . buildPackages . dos2unix } / b i n / d o s 2 u n i x " src/main/BuildInfo.hs
'' ;
} ) )
# stack-2.11.1 has a bug when building without git.
# https://github.com/commercialhaskell/stack/pull/6127
( appendPatch
( fetchpatch {
name = " s t a c k - f i x - b u i l d i n g - w i t h o u t - g i t . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / c o m m e r c i a l h a s k e l l / s t a c k / p u l l / 6 1 2 7 / c o m m i t s / 0 8 6 f 9 3 9 3 3 d 5 4 7 7 3 6 a 7 0 0 7 f c 4 1 1 0 f 7 8 1 6 e f 2 1 f 6 9 1 . p a t c h " ;
hash = " s h a 2 5 6 - 1 n w z M o u m W c e V u 8 R N n H 2 m m S x Y T 2 4 G 1 F A n F R J v U M e D 3 p o = " ;
includes = [ " s r c / m a i n / B u i l d I n f o . h s " ] ;
} )
)
] ;
2022-04-03 18:54:34 +00:00
# Too strict version bound on hashable-time.
# Tests require newer package version.
aeson_1_5_6_0 = dontCheck ( doJailbreak super . aeson_1_5_6_0 ) ;
2020-04-24 23:36:52 +00:00
# musl fixes
# dontCheck: use of non-standard strptime "%s" which musl doesn't support; only used in test
unix-time = if pkgs . stdenv . hostPlatform . isMusl then dontCheck super . unix-time else super . unix-time ;
2021-03-09 03:18:52 +00:00
2022-12-28 21:21:41 +00:00
# Workaround for https://github.com/sol/hpack/issues/528
# The hpack test suite can't deal with the CRLF line endings hackage revisions insert
hpack = overrideCabal ( drv : {
postPatch = drv . postPatch or " " + ''
" ${ lib . getBin pkgs . buildPackages . dos2unix } / b i n / d o s 2 u n i x " * . cabal
'' ;
} ) super . hpack ;
2023-02-16 17:41:37 +00:00
# hslua has tests that break when using musl.
2021-12-24 04:21:11 +00:00
# https://github.com/hslua/hslua/issues/106
2023-02-16 17:41:37 +00:00
hslua-core = if pkgs . stdenv . hostPlatform . isMusl then dontCheck super . hslua-core else super . hslua-core ;
2021-12-24 04:21:11 +00:00
2023-02-22 10:55:15 +00:00
# Missing files required by the test suite.
# https://github.com/deemp/flakes/issues/4
lima = dontCheck super . lima ;
2021-03-09 03:18:52 +00:00
# The test suite runs for 20+ minutes on a very fast machine, which feels kinda disproportionate.
prettyprinter = dontCheck super . prettyprinter ;
2020-04-24 23:36:52 +00:00
# Fix with Cabal 2.2, https://github.com/guillaume-nargeot/hpc-coveralls/pull/73
2022-04-03 18:54:34 +00:00
hpc-coveralls = appendPatch ( fetchpatch {
2020-04-24 23:36:52 +00:00
url = " h t t p s : / / g i t h u b . c o m / g u i l l a u m e - n a r g e o t / h p c - c o v e r a l l s / p u l l / 7 3 / c o m m i t s / 3 4 4 2 1 7 f 5 1 3 b 7 a d f b 9 0 3 7 f 7 3 0 2 6 f 5 d 9 2 8 b e 9 8 d 0 7 f . p a t c h " ;
sha256 = " 0 5 6 r k 5 8 v 9 h 1 1 4 m j x 6 2 f 4 1 x 9 7 1 x n 9 p 3 n h s a z c f 9 z r c y x h 1 y m r d m 8 j " ;
2021-12-06 16:07:01 +00:00
} ) super . hpc-coveralls ;
2020-04-24 23:36:52 +00:00
# sexpr is old, broken and has no issue-tracker. Let's fix it the best we can.
2021-12-06 16:07:01 +00:00
sexpr = appendPatch ./patches/sexpr-0.2.1.patch
( overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
isExecutable = false ;
libraryHaskellDepends = drv . libraryHaskellDepends ++ [ self . QuickCheck ] ;
2021-12-06 16:07:01 +00:00
} ) super . sexpr ) ;
2020-04-24 23:36:52 +00:00
# https://github.com/haskell/hoopl/issues/50
hoopl = dontCheck super . hoopl ;
2020-09-25 04:45:31 +00:00
# Generate shell completion for spago
2022-10-21 18:38:19 +00:00
spago = self . generateOptparseApplicativeCompletions [ " s p a g o " ] super . spago ;
2020-09-25 04:45:31 +00:00
2020-07-18 16:06:22 +00:00
# https://github.com/DanielG/cabal-helper/pull/123
2020-04-24 23:36:52 +00:00
cabal-helper = doJailbreak super . cabal-helper ;
# TODO(Profpatsch): factor out local nix store setup from
# lib/tests/release.nix and use that for the tests of libnix
2021-12-06 16:07:01 +00:00
# libnix = overrideCabal (old: {
2020-04-24 23:36:52 +00:00
# testToolDepends = old.testToolDepends or [] ++ [ pkgs.nix ];
2021-12-06 16:07:01 +00:00
# }) super.libnix;
2020-04-24 23:36:52 +00:00
libnix = dontCheck super . libnix ;
2020-07-18 16:06:22 +00:00
# dontCheck: The test suite tries to mess with ALSA, which doesn't work in the build sandbox.
xmobar = dontCheck super . xmobar ;
2020-04-24 23:36:52 +00:00
# https://github.com/mgajda/json-autotype/issues/25
json-autotype = dontCheck super . json-autotype ;
# Requires pg_ctl command during tests
2021-12-06 16:07:01 +00:00
beam-postgres = overrideCabal ( drv : {
2022-11-02 22:02:43 +00:00
# https://github.com/NixOS/nixpkgs/issues/198495
doCheck = pkgs . postgresql . doCheck ;
2020-04-24 23:36:52 +00:00
testToolDepends = ( drv . testToolDepends or [ ] ) ++ [ pkgs . postgresql ] ;
2021-12-06 16:07:01 +00:00
} ) super . beam-postgres ;
2020-04-24 23:36:52 +00:00
# Fix for base >= 4.11
2021-12-06 16:07:01 +00:00
scat = overrideCabal ( drv : {
2022-04-03 18:54:34 +00:00
patches = [ ( fetchpatch {
2020-04-24 23:36:52 +00:00
url = " h t t p s : / / g i t h u b . c o m / r e d e l m a n n / s c a t / p u l l / 6 . d i f f " ;
sha256 = " 0 7 n j 2 p 0 k g 0 5 l i v h g p 1 h k k d p h 0 j 0 a 6 l b 2 1 6 f 8 x 3 4 8 q j a s y 0 l z b f h l " ;
} ) ] ;
2021-12-06 16:07:01 +00:00
} ) super . scat ;
2020-04-24 23:36:52 +00:00
# Fix build with attr-2.4.48 (see #53716)
2021-12-06 16:07:01 +00:00
xattr = appendPatch ./patches/xattr-fix-build.patch super . xattr ;
2020-04-24 23:36:52 +00:00
2022-12-28 21:21:41 +00:00
patch = dontCheck super . patch ;
2022-04-27 09:35:20 +00:00
esqueleto =
overrideCabal
( drv : {
postPatch = drv . postPatch or " " + ''
# patch out TCP usage: https://nixos.org/manual/nixpkgs/stable/#sec-postgresqlTestHook-tcp
sed - i test/PostgreSQL/Test.hs \
- e s ^ host = localhost ^ ^
'' ;
2022-11-02 22:02:43 +00:00
# https://github.com/NixOS/nixpkgs/issues/198495
doCheck = pkgs . postgresql . doCheck ;
2022-04-27 09:35:20 +00:00
# Match the test suite defaults (or hardcoded values?)
preCheck = drv . preCheck or " " + ''
PGUSER = esqutest
PGDATABASE = esqutest
'' ;
testFlags = drv . testFlags or [ ] ++ [
# We don't have a MySQL test hook yet
" - - s k i p = / E s q u e l e t o / M y S Q L "
] ;
testToolDepends = drv . testToolDepends or [ ] ++ [
pkgs . postgresql
pkgs . postgresqlTestHook
] ;
} )
super . esqueleto ;
2020-04-24 23:36:52 +00:00
# Requires API keys to run tests
algolia = dontCheck super . algolia ;
2023-04-12 12:48:02 +00:00
openai-hs = dontCheck super . openai-hs ;
2020-04-24 23:36:52 +00:00
# antiope-s3's latest stackage version has a hspec < 2.6 requirement, but
# hspec which isn't in stackage is already past that
antiope-s3 = doJailbreak super . antiope-s3 ;
# Has tasty < 1.2 requirement, but works just fine with 1.2
temporary-resourcet = doJailbreak super . temporary-resourcet ;
# Test suite doesn't work with current QuickCheck
# https://github.com/pruvisto/heap/issues/11
heap = dontCheck super . heap ;
# Test suite won't link for no apparent reason.
constraints-deriving = dontCheck super . constraints-deriving ;
# https://github.com/elliottt/hsopenid/issues/15
openid = markBroken super . openid ;
# https://github.com/erikd/hjsmin/issues/32
hjsmin = dontCheck super . hjsmin ;
2023-08-22 20:05:09 +00:00
# too strict bounds on text in the test suite
# https://github.com/audreyt/string-qq/pull/3
string-qq = doJailbreak super . string-qq ;
2020-04-24 23:36:52 +00:00
# Remove for hail > 0.2.0.0
2021-12-06 16:07:01 +00:00
hail = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
patches = [
2022-04-03 18:54:34 +00:00
( fetchpatch {
2020-04-24 23:36:52 +00:00
# Relax dependency constraints,
# upstream PR: https://github.com/james-preston/hail/pull/13
url = " h t t p s : / / p a t c h - d i f f . g i t h u b u s e r c o n t e n t . c o m / r a w / j a m e s - p r e s t o n / h a i l / p u l l / 1 3 . p a t c h " ;
sha256 = " 0 3 9 p 5 m q g i c b h l d 2 z 4 4 c b v s m a m 3 p z 0 p y 3 y b a i f w r j s n 1 y 6 9 l d s m k x " ;
} )
2022-04-03 18:54:34 +00:00
( fetchpatch {
2020-04-24 23:36:52 +00:00
# Relax dependency constraints,
2020-11-12 23:50:31 +00:00
# upstream PR: https://github.com/james-preston/hail/pull/16
url = " h t t p s : / / p a t c h - d i f f . g i t h u b u s e r c o n t e n t . c o m / r a w / j a m e s - p r e s t o n / h a i l / p u l l / 1 6 . p a t c h " ;
sha256 = " 0 d p a g p n 6 5 4 z j r l k l i h s g 9 1 1 l m x j j 8 m s y l b m 3 c 6 8 x a 5 a a d 1 s 9 g c f 7 " ;
2020-04-24 23:36:52 +00:00
} )
] ;
2021-12-06 16:07:01 +00:00
} ) super . hail ;
2020-04-24 23:36:52 +00:00
# https://github.com/kazu-yamamoto/dns/issues/150
dns = dontCheck super . dns ;
# https://github.com/haskell-servant/servant-ekg/issues/15
servant-ekg = doJailbreak super . servant-ekg ;
# the test suite has an overly tight restriction on doctest
# See https://github.com/ekmett/perhaps/pull/5
perhaps = doJailbreak super . perhaps ;
# it wants to build a statically linked binary by default
2021-12-06 16:07:01 +00:00
hledger-flow = overrideCabal ( drv : {
2020-04-24 23:36:52 +00:00
postPatch = ( drv . postPatch or " " ) + ''
substituteInPlace hledger-flow . cabal - - replace " - s t a t i c " " "
'' ;
2021-12-06 16:07:01 +00:00
} ) super . hledger-flow ;
2020-04-24 23:36:52 +00:00
# Chart-tests needs and compiles some modules from Chart itself
2021-12-06 16:07:01 +00:00
Chart-tests = overrideCabal ( old : {
# https://github.com/timbod7/haskell-chart/issues/233
jailbreak = true ;
preCheck = old . preCheck or " " + ''
2020-04-24 23:36:52 +00:00
tar - - one-top-level = ../chart - - strip-components = 1 - xf $ { self . Chart . src }
'' ;
2021-12-06 16:07:01 +00:00
} ) ( addExtraLibrary self . QuickCheck super . Chart-tests ) ;
2020-04-24 23:36:52 +00:00
# This breaks because of version bounds, but compiles and runs fine.
# Last commit is 5 years ago, so we likely won't get upstream fixed soon.
# https://bitbucket.org/rvlm/hakyll-contrib-hyphenation/src/master/
# Therefore we jailbreak it.
hakyll-contrib-hyphenation = doJailbreak super . hakyll-contrib-hyphenation ;
2021-10-06 13:57:05 +00:00
# 2021-10-04: too strict upper bound on Hakyll
hakyll-filestore = doJailbreak super . hakyll-filestore ;
2020-04-24 23:36:52 +00:00
# The test suite depends on an impure cabal-install installation in
2020-05-03 17:38:23 +00:00
# $HOME, which we don't have in our build sandbox.
2022-09-11 15:47:08 +00:00
# 2022-08-31: Jailbreak is done to allow aeson 2.0.*:
# https://github.com/haskell-CI/haskell-ci/commit/6ad0d5d701cbe101013335d597acaf5feadd3ab9#r82681900
cabal-install-parsers = doJailbreak ( dontCheck ( super . cabal-install-parsers . override {
2023-04-29 16:46:19 +00:00
Cabal-syntax = self . Cabal-syntax_3_10_1_0 ;
2022-09-11 15:47:08 +00:00
} ) ) ;
2020-04-24 23:36:52 +00:00
# Test suite requires database
persistent-mysql = dontCheck super . persistent-mysql ;
2022-04-27 09:35:20 +00:00
persistent-postgresql =
2023-02-22 10:55:15 +00:00
# TODO: move this override to configuration-nix.nix
2022-04-27 09:35:20 +00:00
overrideCabal
( drv : {
postPatch = drv . postPath or " " + ''
# patch out TCP usage: https://nixos.org/manual/nixpkgs/stable/#sec-postgresqlTestHook-tcp
# NOTE: upstream host variable takes only two values...
sed - i test/PgInit.hs \
- e s ^ ' host = " < > h o s t < > " ' ^ ^
'' ;
2023-02-22 10:55:15 +00:00
doCheck =
# https://github.com/commercialhaskell/stackage/issues/6884
# persistent-postgresql-2.13.5.1 needs persistent-test >= 2.13.1.3 which
# is incompatible with the stackage version of persistent, so the tests
# are disabled temporarily.
false
# https://github.com/NixOS/nixpkgs/issues/198495
&& pkgs . postgresql . doCheck ;
2022-04-27 09:35:20 +00:00
preCheck = drv . preCheck or " " + ''
PGDATABASE = test
PGUSER = test
'' ;
testToolDepends = drv . testToolDepends or [ ] ++ [
pkgs . postgresql
pkgs . postgresqlTestHook
] ;
} )
super . persistent-postgresql ;
2020-04-24 23:36:52 +00:00
2023-02-22 10:55:15 +00:00
# Test suite requires a later version of persistent-test which depends on persistent 2.14
# https://github.com/commercialhaskell/stackage/issues/6884
persistent-sqlite = dontCheck super . persistent-sqlite ;
2021-12-30 13:39:12 +00:00
# 2021-12-26: Too strict bounds on doctest
polysemy-plugin = doJailbreak super . polysemy-plugin ;
2020-04-24 23:36:52 +00:00
2023-02-09 11:40:11 +00:00
# hasn’ t bumped upper bounds
2020-05-15 21:57:56 +00:00
# upstream: https://github.com/obsidiansystems/which/pull/6
which = doJailbreak super . which ;
2022-09-22 12:36:57 +00:00
# 2022-09-20: We have overridden lsp to not be the stackage version.
# dhall-lsp-server needs the older 1.4.0.0 lsp
dhall-lsp-server = super . dhall-lsp-server . override {
lsp = dontCheck ( super . lsp_1_4_0_0 . override {
lsp-types = super . lsp-types_1_4_0_1 ;
} ) ;
} ;
2022-04-03 18:54:34 +00:00
# 2022-03-16: lens bound can be loosened https://github.com/ghcjs/jsaddle-dom/issues/19
jsaddle-dom = overrideCabal ( old : {
postPatch = old . postPatch or " " + ''
sed - i ' s/lens. * 4.20/lens / ' jsaddle-dom . cabal
'' ;
2022-12-28 21:21:41 +00:00
} ) ( doJailbreak super . jsaddle-dom ) ;
2020-06-15 15:56:04 +00:00
# Tests disabled and broken override needed because of missing lib chrome-test-utils: https://github.com/reflex-frp/reflex-dom/issues/392
2022-04-03 18:54:34 +00:00
# 2022-03-16: Pullrequest for ghc 9 compat https://github.com/reflex-frp/reflex-dom/pull/433
2022-12-28 21:21:41 +00:00
reflex-dom-core = overrideCabal ( old : {
postPatch = old . postPatch or " " + ''
sed - i ' s/template-haskell. * 2.17/template-haskell / ' reflex-dom-core . cabal
2023-08-22 20:05:09 +00:00
sed - i ' s/semialign. * 1.3/semialign / ' reflex-dom-core . cabal
sed - i ' s/these. * 0.9/these / ' reflex-dom-core . cabal
2022-12-28 21:21:41 +00:00
'' ;
} )
( ( appendPatches [
2022-04-03 18:54:34 +00:00
( fetchpatch {
2022-12-28 21:21:41 +00:00
url = " h t t p s : / / g i t h u b . c o m / r e f l e x - f r p / r e f l e x - d o m / c o m m i t / 1 8 1 4 6 4 0 a 1 4 c 6 c 3 0 b 1 b 2 2 9 9 e 7 4 d 0 8 f b 6 f c a a d f b 9 4 . p a t c h " ;
sha256 = " s h a 2 5 6 - Q y X 2 M L d 7 T k 0 M 1 s 0 D U 0 U V 3 s z X s 8 n g z 7 7 5 i 3 + K I 6 2 Q 3 B 8 = " ;
2022-04-03 18:54:34 +00:00
relative = " r e f l e x - d o m - c o r e " ;
} )
2022-12-28 21:21:41 +00:00
( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / r e f l e x - f r p / r e f l e x - d o m / c o m m i t / 5 6 f a 8 a 4 8 4 c c f c 7 d 3 3 6 5 d 0 7 f e a 3 c a a 4 3 0 1 5 5 d b c a c . p a t c h " ;
sha256 = " s h a 2 5 6 - I o g A Y J Z a c 1 7 B g 9 9 Z n n F X / 7 I 4 4 D A n H o 2 P R B W D 0 i V H b N A = " ;
relative = " r e f l e x - d o m - c o r e " ;
} )
]
( doDistribute ( unmarkBroken ( dontCheck ( doJailbreak super . reflex-dom-core ) ) ) ) ) ) ;
2020-11-21 19:51:51 +00:00
2023-05-24 13:37:59 +00:00
# Tests disabled because they assume to run in the whole jsaddle repo and not the hackage tarball of jsaddle-warp.
2020-08-20 17:08:02 +00:00
jsaddle-warp = dontCheck super . jsaddle-warp ;
2020-07-18 16:06:22 +00:00
# 2020-06-24: Jailbreaking because of restrictive test dep bounds
# Upstream issue: https://github.com/kowainik/trial/issues/62
trial = doJailbreak super . trial ;
# 2020-06-24: Tests are broken in hackage distribution.
# See: https://github.com/robstewart57/rdf4h/issues/39
rdf4h = dontCheck super . rdf4h ;
# hasn't bumped upper bounds
# test fails: "floskell-test: styles/base.md: openBinaryFile: does not exist (No such file or directory)"
# https://github.com/ennocramer/floskell/issues/48
floskell = dontCheck ( doJailbreak super . floskell ) ;
# hasn't bumped upper bounds
# test fails because of a "Warning: Unused LANGUAGE pragma"
# https://github.com/ennocramer/monad-dijkstra/issues/4
2022-12-28 21:21:41 +00:00
monad-dijkstra = dontCheck super . monad-dijkstra ;
2020-07-18 16:06:22 +00:00
2020-09-25 04:45:31 +00:00
# Fixed upstream but not released to Hackage yet:
# https://github.com/k0001/hs-libsodium/issues/2
2021-12-06 16:07:01 +00:00
libsodium = overrideCabal ( drv : {
2021-06-28 23:13:55 +00:00
libraryToolDepends = ( drv . libraryToolDepends or [ ] ) ++ [ self . buildHaskellPackages . c2hs ] ;
2021-12-06 16:07:01 +00:00
} ) super . libsodium ;
2020-07-18 16:06:22 +00:00
2021-12-06 16:07:01 +00:00
svgcairo = appendPatches [
2021-10-28 06:52:43 +00:00
# Remove when https://github.com/gtk2hs/svgcairo/pull/12 goes in.
2022-04-03 18:54:34 +00:00
( fetchpatch {
2021-10-28 06:52:43 +00:00
url = " h t t p s : / / g i t h u b . c o m / g t k 2 h s / s v g c a i r o / c o m m i t / 3 4 8 c 6 0 b 9 9 c 2 8 4 5 5 7 a 5 2 2 b a a f 4 7 d b 6 9 3 2 2 a 0 a 8 b 6 7 . p a t c h " ;
sha256 = " 0 a k h q 6 k l m y k v q d 5 w s b d f n n l 3 0 9 f 8 0 d s 1 9 z g q 0 6 s h 1 m m g g i 5 4 d n f 3 " ;
} )
# Remove when https://github.com/gtk2hs/svgcairo/pull/13 goes in.
2022-04-03 18:54:34 +00:00
( fetchpatch {
2021-10-28 06:52:43 +00:00
url = " h t t p s : / / g i t h u b . c o m / d a l p d / s v g c a i r o / c o m m i t / d 1 e 0 d 7 a e 0 4 c 1 e d c a 8 3 d 5 b 7 8 2 e 4 6 4 5 2 4 c d d a 6 a e 8 5 . p a t c h " ;
sha256 = " 1 p q 9 l d 9 z 6 7 z s x j 8 v q j f 8 2 q w c k c p 6 9 l v v n r j b 7 w s y b 5 j c 6 j a j 3 q 0 a " ;
} )
2021-12-06 16:07:01 +00:00
] super . svgcairo ;
2021-10-01 09:20:50 +00:00
2020-08-20 17:08:02 +00:00
# Upstream PR: https://github.com/jkff/splot/pull/9
2022-04-03 18:54:34 +00:00
splot = appendPatch ( fetchpatch {
2020-08-20 17:08:02 +00:00
url = " h t t p s : / / g i t h u b . c o m / j k f f / s p l o t / c o m m i t / a 6 7 1 0 b 0 5 4 7 0 d 2 5 c b 5 3 7 3 4 8 1 c f 1 c f c 1 f e b d 6 8 6 4 0 7 . p a t c h " ;
sha256 = " 1 c 5 c k 2 i b a g 2 g c y a g 6 r j i v m l w d l p 5 k 0 d m r 8 n h k 7 w l k z q 2 v h 7 z g w 6 3 " ;
2021-12-06 16:07:01 +00:00
} ) super . splot ;
2020-08-20 17:08:02 +00:00
2023-07-15 17:15:38 +00:00
# Fix build with newer monad-logger: https://github.com/obsidiansystems/monad-logger-extras/pull/5
monad-logger-extras = appendPatch ( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / o b s i d i a n s y s t e m s / m o n a d - l o g g e r - e x t r a s / c o m m i t / 5 5 d 4 1 4 3 5 2 e 7 4 0 a 5 e c a c f 3 1 3 7 3 2 0 7 4 d 9 b 4 c f 2 a 6 b 3 . p a t c h " ;
sha256 = " s h a 2 5 6 - x s Q b r / Q I r g W R 0 u w D P t V 0 N R T b V v P 0 t R 9 b Y 9 N M e 1 J z q O w = " ;
} ) super . monad-logger-extras ;
2021-08-08 23:34:03 +00:00
# Fails with encoding problems, likely needs locale data.
# Test can be executed by adding which to testToolDepends and
# $PWD/dist/build/haskeline-examples-Test to $PATH.
2023-03-15 16:39:30 +00:00
haskeline_0_8_2_1 = doDistribute ( dontCheck super . haskeline_0_8_2_1 ) ;
2020-09-25 04:45:31 +00:00
2022-08-12 12:06:08 +00:00
# Too strict upper bound on HTF
# https://github.com/nikita-volkov/stm-containers/issues/29
stm-containers = doJailbreak super . stm-containers ;
2020-09-25 04:45:31 +00:00
2022-04-03 18:54:34 +00:00
# Test suite fails to compile https://github.com/agrafix/Spock/issues/177
Spock = dontCheck super . Spock ;
# https://github.com/strake/filtrable.hs/issues/6
filtrable = doJailbreak super . filtrable ;
2020-09-25 04:45:31 +00:00
2021-08-23 08:02:39 +00:00
# hasura packages need some extra care
2021-12-06 16:07:01 +00:00
graphql-engine = overrideCabal ( drv : {
2022-04-15 01:41:22 +00:00
patches = [
# Compat with unordered-containers >= 0.2.15.0
( fetchpatch {
name = " h a s u r a - g r a p h q l - e n g i n e - u p d a t e d - d e p s . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / h a s u r a / g r a p h q l - e n g i n e / c o m m i t / d 5 0 a a e 8 7 a 5 8 7 9 4 b c 1 f c 6 6 c 7 a 6 0 a c b 0 c 3 4 b 5 e 7 0 c 7 . p a t c h " ;
stripLen = 1 ;
excludes = [ " c a b a l . p r o j e c t . f r e e z e " ] ;
sha256 = " 0 l b 5 l 9 v f y n r 8 5 i 9 x s 5 3 w 4 m p g c z p 0 4 n c x z 7 8 4 6 n 3 y 9 1 r i 3 4 f a 8 7 v 3 " ;
} )
# Compat with hashable >= 1.3.4.0
( fetchpatch {
name = " h a s u r a - g r a p h q l - e n g i n e - h a s h a b l e - 1 . 3 . 4 . 0 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / h a s u r a / g r a p h q l - e n g i n e / c o m m i t / e 4 8 b 2 2 8 7 3 1 5 f b 0 9 0 0 5 f f d 5 2 c 0 a 6 8 6 d c 3 2 1 1 7 1 a e 2 . p a t c h " ;
sha256 = " 1 j p p n a n m s y l 8 n p y f 5 9 s 0 d 8 b g j y 7 b q 5 0 v k h 5 z x 4 8 8 8 j y 6 j q h 2 7 j b 6 " ;
stripLen = 1 ;
} )
# Compat with unordered-containers >= 0.2.17.0
( fetchpatch {
name = " h a s u r a - g r a p h q l - e n g i n e - u n o r d e r e d - c o n t a i n e r s - 0 . 2 . 1 7 . 0 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / h a s u r a / g r a p h q l - e n g i n e / c o m m i t / 3 a 1 e b 3 1 2 8 a 2 d e d 2 d a 7 c 5 f e f 0 8 9 7 3 8 8 9 0 8 2 8 c c e 0 3 . p a t c h " ;
sha256 = " 0 v z 7 s 8 m 8 m j v v 7 2 8 v m 4 q 0 d v v r i r v y d a w 7 x k s 3 0 b 5 d d j 9 f 6 a 7 2 a 2 f 1 " ;
stripLen = 1 ;
} )
] ;
2021-12-06 16:07:01 +00:00
doHaddock = false ;
2022-04-15 01:41:22 +00:00
version = " 2 . 3 . 1 " ;
} ) ( super . graphql-engine . override {
2021-08-23 08:02:39 +00:00
immortal = self . immortal_0_2_2_1 ;
resource-pool = self . hasura-resource-pool ;
ekg-core = self . hasura-ekg-core ;
ekg-json = self . hasura-ekg-json ;
} ) ;
2022-04-15 01:41:22 +00:00
hasura-ekg-json = super . hasura-ekg-json . override {
ekg-core = self . hasura-ekg-core ;
} ;
2021-12-06 16:07:01 +00:00
pg-client = overrideCabal ( drv : {
2021-08-23 08:02:39 +00:00
librarySystemDepends = with pkgs ; [ postgresql krb5 . dev openssl . dev ] ;
2022-04-27 09:35:20 +00:00
testToolDepends = drv . testToolDepends or [ ] ++ [
pkgs . postgresql pkgs . postgresqlTestHook
] ;
2022-11-02 22:02:43 +00:00
# https://github.com/NixOS/nixpkgs/issues/198495
doCheck = pkgs . postgresql . doCheck ;
2022-04-27 09:35:20 +00:00
preCheck = drv . preCheck or " " + ''
# empty string means use default connection
export DATABASE_URL = " "
'' ;
2021-12-06 16:07:01 +00:00
} ) ( super . pg-client . override {
resource-pool = self . hasura-resource-pool ;
2022-04-15 01:41:22 +00:00
ekg-core = self . hasura-ekg-core ;
2021-08-23 08:02:39 +00:00
} ) ;
2020-09-25 04:45:31 +00:00
2021-12-06 16:07:01 +00:00
hcoord = overrideCabal ( drv : {
2020-09-25 04:45:31 +00:00
# Remove when https://github.com/danfran/hcoord/pull/8 is merged.
patches = [
2022-04-03 18:54:34 +00:00
( fetchpatch {
2020-09-25 04:45:31 +00:00
url = " h t t p s : / / g i t h u b . c o m / d a n f r a n / h c o o r d / p u l l / 8 / c o m m i t s / 7 6 2 7 3 8 b 9 e 4 2 8 4 1 3 9 f 5 c 2 1 f 5 5 3 6 6 7 a 9 9 7 5 b a d 6 8 8 e . p a t c h " ;
sha256 = " 0 3 r 4 j g 9 a 6 x h 7 w 3 j z 3 g 4 b s 7 f f 3 5 w a 4 r r m j g c g g q 5 1 y 0 j c 1 s j q v h y z " ;
} )
] ;
# Remove when https://github.com/danfran/hcoord/issues/9 is closed.
doCheck = false ;
2021-12-06 16:07:01 +00:00
} ) super . hcoord ;
2020-09-25 04:45:31 +00:00
# Tests rely on `Int` being 64-bit: https://github.com/hspec/hspec/issues/431.
# Also, we need QuickCheck-2.14.x to build the test suite, which isn't easy in LTS-16.x.
# So let's not go there and just disable the tests altogether.
hspec-core = dontCheck super . hspec-core ;
2022-12-28 21:21:41 +00:00
# tests seem to require a different version of hspec-core
hspec-contrib = dontCheck super . hspec-contrib ;
2020-09-25 04:45:31 +00:00
# github.com/ucsd-progsys/liquidhaskell/issues/1729
liquidhaskell = super . liquidhaskell . override { Diff = self . Diff_0_3_4 ; } ;
Diff_0_3_4 = dontCheck super . Diff_0_3_4 ;
2020-10-11 12:50:04 +00:00
# The test suite attempts to read `/etc/resolv.conf`, which doesn't work in the sandbox.
domain-auth = dontCheck super . domain-auth ;
2020-09-25 04:45:31 +00:00
2020-11-15 13:44:38 +00:00
# - Deps are required during the build for testing and also during execution,
# so add them to build input and also wrap the resulting binary so they're in
# PATH.
2022-12-28 21:21:41 +00:00
# - Patch can be removed on next package set bump (for v0.2.11)
2023-07-15 17:15:38 +00:00
# 2023-06-26: Test failure: https://hydra.nixos.org/build/225081865
update-nix-fetchgit = dontCheck ( let deps = [ pkgs . git pkgs . nix pkgs . nix-prefetch-git ] ;
2022-10-21 18:38:19 +00:00
in self . generateOptparseApplicativeCompletions [ " u p d a t e - n i x - f e t c h g i t " ] ( overrideCabal
2021-12-06 16:07:01 +00:00
( drv : {
2021-06-28 23:13:55 +00:00
buildTools = drv . buildTools or [ ] ++ [ pkgs . buildPackages . makeWrapper ] ;
2020-11-15 13:44:38 +00:00
postInstall = drv . postInstall or " " + ''
wrapProgram " $ o u t / b i n / u p d a t e - n i x - f e t c h g i t " - - prefix ' PATH' ' : ' " ${
2022-04-03 18:54:34 +00:00
lib . makeBinPath deps
2020-11-15 13:44:38 +00:00
} "
'' ;
2023-07-15 17:15:38 +00:00
} ) ( addTestToolDepends deps super . update-nix-fetchgit ) ) ) ;
2020-11-15 13:44:38 +00:00
2022-04-03 18:54:34 +00:00
# Raise version bounds: https://github.com/idontgetoutmuch/binary-low-level/pull/16
binary-strict = appendPatches [
( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / i d o n t g e t o u t m u c h / b i n a r y - l o w - l e v e l / p u l l / 1 6 / c o m m i t s / c 1 6 d 0 6 a 1 f 2 7 4 5 5 9 b e 0 d e a 0 b 1 f 7 4 9 7 7 5 3 e 1 b 1 a 8 a e . p a t c h " ;
sha256 = " s h a 2 5 6 - d e S b u d y + 2 j e 1 S W a p i r W Z 1 I V W t J 0 s J V R 5 O / f n a A a i b 2 g = " ;
} )
] super . binary-strict ;
2020-11-21 19:51:51 +00:00
# 2020-11-15: nettle tests are pre MonadFail change
# https://github.com/stbuehler/haskell-nettle/issues/10
nettle = dontCheck super . nettle ;
# The tests for semver-range need to be updated for the MonadFail change in
# ghc-8.8:
# https://github.com/adnelson/semver-range/issues/15
semver-range = dontCheck super . semver-range ;
2021-01-15 22:18:51 +00:00
# https://github.com/obsidiansystems/dependent-sum/issues/55
dependent-sum = doJailbreak super . dependent-sum ;
2022-06-26 10:26:21 +00:00
# 2022-06-19: Disable checks because of https://github.com/reflex-frp/reflex/issues/475
2022-12-28 21:21:41 +00:00
reflex = doJailbreak ( dontCheck super . reflex ) ;
2020-11-21 19:51:51 +00:00
# 2020-11-19: jailbreaking because of pretty-simple bound out of date
# https://github.com/kowainik/stan/issues/408
# Tests disabled because of: https://github.com/kowainik/stan/issues/409
stan = doJailbreak ( dontCheck super . stan ) ;
# Due to tests restricting base in 0.8.0.0 release
http-media = doJailbreak super . http-media ;
2022-04-03 18:54:34 +00:00
# 2022-03-19: strict upper bounds https://github.com/poscat0x04/hinit/issues/2
2022-10-21 18:38:19 +00:00
hinit = doJailbreak
( self . generateOptparseApplicativeCompletions [ " h i " ]
2023-03-15 16:39:30 +00:00
( super . hinit . override { haskeline = self . haskeline_0_8_2_1 ; } ) ) ;
2021-02-22 21:28:39 +00:00
2020-11-30 08:33:03 +00:00
# 2020-11-23: https://github.com/Rufflewind/blas-hs/issues/8
blas-hs = dontCheck super . blas-hs ;
2022-06-16 17:23:12 +00:00
# Strange doctest problems
# https://github.com/biocad/servant-openapi3/issues/30
servant-openapi3 = dontCheck super . servant-openapi3 ;
2023-07-15 17:15:38 +00:00
# Give latest hspec correct dependency versions without overrideScope
2023-08-22 20:05:09 +00:00
hspec_2_11_4 = doDistribute ( super . hspec_2_11_4 . override {
hspec-discover = self . hspec-discover_2_11_4 ;
hspec-core = self . hspec-core_2_11_4 ;
} ) ;
hspec-meta_2_11_4 = doDistribute ( super . hspec-meta_2_11_4 . override {
hspec-expectations = self . hspec-expectations_0_8_4 ;
2022-06-16 17:23:12 +00:00
} ) ;
2023-08-22 20:05:09 +00:00
hspec-discover_2_11_4 = doDistribute ( super . hspec-discover_2_11_4 . override {
hspec-meta = self . hspec-meta_2_11_4 ;
2023-03-30 22:05:00 +00:00
} ) ;
2023-08-22 20:05:09 +00:00
# Need to disable tests to prevent an infinite recursion if hspec-core_2_11_4
2023-03-30 22:05:00 +00:00
# is overlayed to hspec-core.
2023-08-22 20:05:09 +00:00
hspec-core_2_11_4 = doDistribute ( dontCheck ( super . hspec-core_2_11_4 . override {
hspec-expectations = self . hspec-expectations_0_8_4 ;
2023-03-30 22:05:00 +00:00
} ) ) ;
2022-06-16 17:23:12 +00:00
2022-08-12 12:06:08 +00:00
# Point hspec 2.7.10 to correct dependencies
2023-01-11 07:51:40 +00:00
hspec_2_7_10 = super . hspec_2_7_10 . override {
2022-08-12 12:06:08 +00:00
hspec-discover = self . hspec-discover_2_7_10 ;
hspec-core = self . hspec-core_2_7_10 ;
2023-01-11 07:51:40 +00:00
} ;
2023-08-22 20:05:09 +00:00
hspec-discover_2_7_10 = super . hspec-discover_2_7_10 . override {
hspec-meta = self . hspec-meta_2_7_8 ;
} ;
hspec-core_2_7_10 = doJailbreak ( dontCheck super . hspec-core_2_7_10 ) ;
2022-08-12 12:06:08 +00:00
2022-04-03 18:54:34 +00:00
# waiting for aeson bump
servant-swagger-ui-core = doJailbreak super . servant-swagger-ui-core ;
2023-08-22 20:05:09 +00:00
hercules-ci-agent = self . generateOptparseApplicativeCompletions [ " h e r c u l e s - c i - a g e n t " ] super . hercules-ci-agent ;
2021-03-15 08:37:03 +00:00
2022-04-03 18:54:34 +00:00
# Test suite doesn't compile with aeson 2.0
# https://github.com/hercules-ci/hercules-ci-agent/pull/387
hercules-ci-api-agent = dontCheck super . hercules-ci-api-agent ;
hercules-ci-cli = lib . pipe super . hercules-ci-cli [
2021-12-06 16:07:01 +00:00
unmarkBroken
( overrideCabal ( drv : { hydraPlatforms = super . hercules-ci-cli . meta . platforms ; } ) )
2021-03-15 08:37:03 +00:00
# See hercules-ci-optparse-applicative in non-hackage-packages.nix.
2021-12-06 16:07:01 +00:00
( addBuildDepend super . hercules-ci-optparse-applicative )
2022-10-21 18:38:19 +00:00
( self . generateOptparseApplicativeCompletions [ " h c i " ] )
2021-12-06 16:07:01 +00:00
] ;
2020-11-30 08:33:03 +00:00
2022-04-03 18:54:34 +00:00
pipes-aeson = appendPatches [
# Dependency of the aeson-2 patch
( fetchpatch {
name = " p i p e s - a e s o n - a d d - l o o p . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / k 0 0 0 1 / p i p e s - a e s o n / c o m m i t / d 2 2 1 3 3 b 4 a 6 7 8 e d b b 5 2 b c a e c 5 0 7 9 d c 8 8 c c c 0 d e 1 d 3 . p a t c h " ;
sha256 = " s h a 2 5 6 - 5 o 5 y s 1 P 1 + Q B 4 r j L C Y o k 5 A c P R W C t R i e c P / T q C F m 8 u l V Y = " ;
includes = [ " s r c / P i p e s / A e s o n . h s " " s r c / P i p e s / A e s o n / I n t e r n a l . h s " " s r c / P i p e s / A e s o n / U n c h e c k e d . h s " ] ;
} )
# https://github.com/k0001/pipes-aeson/pull/20
( fetchpatch {
name = " p i p e s - a e s o n - a e s o n - 2 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / h e r c u l e s - c i / p i p e s - a e s o n / c o m m i t / a c 7 3 5 c 9 c d 4 5 9 c 6 e f 5 1 b a 8 2 3 2 5 d 1 c 5 5 e b 6 7 c b 7 b 2 c . p a t c h " ;
sha256 = " s h a 2 5 6 - v i W Z 6 D 5 t 7 9 x 5 0 R X i O j P 6 U e Q 8 0 9 o p g N F Y Z O P + h + 1 K J h 0 = " ;
includes = [ " s r c / P i p e s / A e s o n . h s " " s r c / P i p e s / A e s o n / I n t e r n a l . h s " " s r c / P i p e s / A e s o n / U n c h e c k e d . h s " ] ;
} )
] super . pipes-aeson ;
2022-12-28 21:21:41 +00:00
# Needs bytestring 0.11
# https://github.com/Gabriella439/Haskell-Pipes-HTTP-Library/pull/17
pipes-http = doJailbreak super . pipes-http ;
2022-04-03 18:54:34 +00:00
moto-postgresql = appendPatches [
# https://gitlab.com/k0001/moto/-/merge_requests/3
( fetchpatch {
name = " m o t o - p o s t g r e s q l - m o n a d f a i l . p a t c h " ;
url = " h t t p s : / / g i t l a b . c o m / k 0 0 0 1 / m o t o / - / c o m m i t / 0 9 c c 1 c 1 1 d 7 0 3 c 2 5 f 6 e 8 1 3 2 5 b e 6 4 8 2 d c 7 e c 6 c b f 5 8 . p a t c h " ;
relative = " m o t o - p o s t g r e s q l " ;
sha256 = " s h a 2 5 6 - f 2 J V X 9 V v e S h C e V + T 4 1 R Q g a c p U o h 1 i z f y H l E 6 V l E r k Z M = " ;
} )
] ( unmarkBroken super . moto-postgresql ) ;
moto = appendPatches [
# https://gitlab.com/k0001/moto/-/merge_requests/3
( fetchpatch {
name = " m o t o - g h c - 9 . 0 . p a t c h " ;
url = " h t t p s : / / g i t l a b . c o m / k 0 0 0 1 / m o t o / - / c o m m i t / 5 b 6 f 0 1 5 a 1 2 7 1 7 6 5 0 0 5 f 0 3 7 6 2 f 1 f 1 a a e d 3 a 3 1 9 8 e d . p a t c h " ;
relative = " m o t o " ;
sha256 = " s h a 2 5 6 - R M a 9 t k + 2 i p 3 K s 7 3 U F v 9 E a 9 G E n E l R t z I j d p l d 1 F x + d n o = " ;
} )
] super . moto ;
2021-08-18 13:19:15 +00:00
# Readline uses Distribution.Simple from Cabal 2, in a way that is not
# compatible with Cabal 3. No upstream repository found so far
2021-12-06 16:07:01 +00:00
readline = appendPatch ./patches/readline-fix-for-cabal-3.patch super . readline ;
2021-08-18 13:19:15 +00:00
2021-09-18 10:52:07 +00:00
# 2020-12-05: this package requires a newer version of http-client,
# but it still compiles with older version:
# https://github.com/turion/essence-of-live-coding/pull/86
essence-of-live-coding-warp = doJailbreak super . essence-of-live-coding-warp ;
2020-12-25 13:55:36 +00:00
# 2020-12-06: Restrictive upper bounds w.r.t. pandoc-types (https://github.com/owickstrom/pandoc-include-code/issues/27)
pandoc-include-code = doJailbreak super . pandoc-include-code ;
2023-08-22 20:05:09 +00:00
# 2023-07-08: Restrictive upper bounds on text: https://github.com/owickstrom/pandoc-emphasize-code/pull/14
# 2023-07-08: Missing test dependency: https://github.com/owickstrom/pandoc-emphasize-code/pull/13
pandoc-emphasize-code = dontCheck ( doJailbreak super . pandoc-emphasize-code ) ;
2022-04-03 18:54:34 +00:00
# DerivingVia is not allowed in safe Haskell
# https://github.com/strake/util.hs/issues/1
util = appendConfigureFlags [
" - - g h c - o p t i o n = - f n o - s a f e - h a s k e l l "
" - - h a d d o c k - o p t i o n = - - o p t g h c = - f n o - s a f e - h a s k e l l "
] super . util ;
category = appendConfigureFlags [
" - - g h c - o p t i o n = - f n o - s a f e - h a s k e l l "
" - - h a d d o c k - o p t i o n = - - o p t g h c = - f n o - s a f e - h a s k e l l "
] super . category ;
alg = appendConfigureFlags [
" - - g h c - o p t i o n = - f n o - s a f e - h a s k e l l "
" - - h a d d o c k - o p t i o n = - - o p t g h c = - f n o - s a f e - h a s k e l l "
] super . alg ;
2021-01-05 17:05:55 +00:00
# Break out of overspecified constraint on QuickCheck.
filepath-bytestring = doJailbreak super . filepath-bytestring ;
haddock-library = doJailbreak super . haddock-library ;
2022-12-28 21:21:41 +00:00
# Test suite has overly strict bounds on tasty, jailbreaking fails.
2021-01-15 22:18:51 +00:00
# https://github.com/input-output-hk/nothunks/issues/9
2022-12-28 21:21:41 +00:00
nothunks = dontCheck super . nothunks ;
2021-01-15 22:18:51 +00:00
# Allow building with older versions of http-client.
http-client-restricted = doJailbreak super . http-client-restricted ;
2021-02-13 14:23:35 +00:00
# Test suite fails, upstream not reachable for simple fix (not responsive on github)
vivid-osc = dontCheck super . vivid-osc ;
vivid-supercollider = dontCheck super . vivid-supercollider ;
2021-02-22 21:28:39 +00:00
2021-03-15 08:37:03 +00:00
# Test suite does not compile.
feed = dontCheck super . feed ;
2021-12-06 16:07:01 +00:00
spacecookie = overrideCabal ( old : {
2021-06-28 23:13:55 +00:00
buildTools = ( old . buildTools or [ ] ) ++ [ pkgs . buildPackages . installShellFiles ] ;
2021-03-23 19:22:30 +00:00
# let testsuite discover the resulting binary
preCheck = ''
export SPACECOOKIE_TEST_BIN = ./dist/build/spacecookie/spacecookie
'' + ( o l d . p r e C h e c k o r " " ) ;
# install man pages shipped in the sdist
postInstall = ''
installManPage docs/man /*
'' + ( o l d . p o s t I n s t a l l o r " " ) ;
2021-12-06 16:07:01 +00:00
} ) super . spacecookie ;
2021-03-23 19:22:30 +00:00
# Patch and jailbreak can be removed at next release, chatter > 0.9.1.0
# * Remove dependency on regex-tdfa-text
# * Jailbreak as bounds on cereal are too strict
# * Disable test suite which doesn't compile
# https://github.com/creswick/chatter/issues/38
chatter = appendPatch
2022-04-03 18:54:34 +00:00
( fetchpatch {
2021-03-23 19:22:30 +00:00
url = " h t t p s : / / g i t h u b . c o m / c r e s w i c k / c h a t t e r / c o m m i t / e 8 c 1 5 a 8 4 8 1 3 0 d 7 d 2 7 b 8 e b 5 e 7 3 e 8 a 0 d b 1 3 6 6 b 2 e 6 2 . p a t c h " ;
sha256 = " 1 d z a k 8 d 1 2 h 5 4 v s s 5 f x n r c l y g z 0 f z 9 y g b q v x d 5 a i f z 5 n 3 v r w w p j 3 g " ;
2021-12-06 16:07:01 +00:00
} )
( dontCheck ( doJailbreak ( super . chatter . override { regex-tdfa-text = null ; } ) ) ) ;
2021-03-23 19:22:30 +00:00
# test suite doesn't compile anymore due to changed hunit/tasty APIs
fullstop = dontCheck super . fullstop ;
# https://github.com/jgm/pandoc/issues/7163
pandoc = dontCheck super . pandoc ;
2023-08-22 20:05:09 +00:00
# Since pandoc-3, the actual `pandoc` executable is in the pandoc-cli
# package. It is no longer distributed in the pandoc package itself. So for
# people that want to use the `pandoc` cli tool, they must use pandoc-cli.
#
# The unfortunate thing is that LTS-21 includes no possible build plan for
# pandoc-cli, because pandoc-cli pandoc-lua-engine are not in LTS 21.
# To get pandoc-lua-engine building we need either to downgrade a ton
# of hslua-module-* packages from stackage or use pandoc 3.1 although
# LTS contains pandoc 3.0.
inherit ( let
pandoc-cli-overlay = self : super : {
# pandoc-cli requires pandoc >= 3.1
2023-10-09 19:29:22 +00:00
pandoc = self . pandoc_3_1_8 ;
2023-08-22 20:05:09 +00:00
# pandoc depends on crypton-connection, which requires tls >= 1.7
2023-10-09 19:29:22 +00:00
tls = self . tls_1_9_0 ;
2023-08-22 20:05:09 +00:00
crypton-connection = unmarkBroken super . crypton-connection ;
# pandoc depends on http-client-tls, which only starts depending
# on crypton-connection in http-client-tls-0.3.6.2.
2023-10-09 19:29:22 +00:00
http-client-tls = self . http-client-tls_0_3_6_3 ;
2023-08-22 20:05:09 +00:00
2023-10-09 19:29:22 +00:00
# pandoc depends on skylighting >= 0.14
skylighting = self . skylighting_0_14 ;
skylighting-core = self . skylighting-core_0_14 ;
2023-08-22 20:05:09 +00:00
} ;
in {
pandoc-cli = super . pandoc-cli . overrideScope pandoc-cli-overlay ;
2023-10-09 19:29:22 +00:00
pandoc_3_1_8 = doDistribute ( super . pandoc_3_1_8 . overrideScope pandoc-cli-overlay ) ;
2023-08-22 20:05:09 +00:00
pandoc-lua-engine = super . pandoc-lua-engine . overrideScope pandoc-cli-overlay ;
} )
pandoc-cli
2023-10-09 19:29:22 +00:00
pandoc_3_1_8
2023-08-22 20:05:09 +00:00
pandoc-lua-engine
;
crypton-x509 =
lib . pipe
super . crypton-x509
[
# Mistype in a dependency in a test.
# https://github.com/kazu-yamamoto/crypton-certificate/pull/3
( appendPatch
( fetchpatch {
name = " c r y p t o n - x 5 0 9 - r e n a m e - d e p . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / k a z u - y a m a m o t o / c r y p t o n - c e r t i f i c a t e / c o m m i t / 5 2 8 1 f f 1 1 5 a 1 8 6 2 1 4 0 7 b 4 1 f 9 5 6 0 f d 6 c d 6 5 c 6 0 2 f c c . p a t c h " ;
hash = " s h a 2 5 6 - p L z u q + b a S D n + M W h t Y I I B O r E 1 J s + t p 3 U s a E Z y 5 M h W A j Y = " ;
relative = " x 5 0 9 " ;
} )
)
# There is a revision in crypton-x509, so the above patch won't
# apply because of line endings in revised .cabal files.
( overrideCabal {
editedCabalFile = null ;
revision = null ;
} )
] ;
2021-04-12 18:23:04 +00:00
# * doctests don't work without cabal
# https://github.com/noinia/hgeometry/issues/132
# * Too strict version bound on vector-builder
# https://github.com/noinia/hgeometry/commit/a6abecb1ce4a7fd96b25cc1a5c65cd4257ecde7a#commitcomment-49282301
hgeometry-combinatorial = dontCheck ( doJailbreak super . hgeometry-combinatorial ) ;
2021-04-05 15:23:46 +00:00
# Too strict version bounds on ansi-terminal
# https://github.com/kowainik/co-log/pull/218
co-log = doJailbreak super . co-log ;
# Test suite has a too strict bound on base
# https://github.com/jswebtools/language-ecmascript/pull/88
2022-12-28 21:21:41 +00:00
# Test suite doesn't compile anymore
language-ecmascript = dontCheck ( doJailbreak super . language-ecmascript ) ;
2021-04-05 15:23:46 +00:00
# Too strict bounds on containers
# https://github.com/jswebtools/language-ecmascript-analysis/issues/1
language-ecmascript-analysis = doJailbreak super . language-ecmascript-analysis ;
# Too strict bounds on optparse-applicative
# https://github.com/faylang/fay/pull/474
fay = doJailbreak super . fay ;
2021-03-23 19:22:30 +00:00
# Too strict version bounds on cryptonite.
# Issue reported upstream, no bug tracker url yet.
darcs = doJailbreak super . darcs ;
2023-05-24 13:37:59 +00:00
# Too strict version bounds on cryptonite and github.
2021-12-30 13:39:12 +00:00
# PRs are merged, will be fixed next release or Hackage revision.
2021-12-24 04:21:11 +00:00
nix-thunk = appendPatches [
2022-04-03 18:54:34 +00:00
( fetchpatch {
2021-12-24 04:21:11 +00:00
url = " h t t p s : / / g i t h u b . c o m / o b s i d i a n s y s t e m s / n i x - t h u n k / c o m m i t / 4 9 d 2 7 a 8 5 d d 3 9 c d 9 4 1 3 c 9 9 9 5 8 c 6 7 e 5 9 6 7 5 6 a 5 0 2 b 5 . p a t c h " ;
sha256 = " 1 p 1 n 0 1 2 3 y r b d q y f k 4 k x 3 g q 6 b d v 6 5 l 1 b x g b s g 5 1 c k c w c l g 5 4 x p 2 p 5 " ;
} )
2022-04-03 18:54:34 +00:00
( fetchpatch {
2021-12-24 04:21:11 +00:00
url = " h t t p s : / / g i t h u b . c o m / o b s i d i a n s y s t e m s / n i x - t h u n k / c o m m i t / 5 1 2 8 6 7 c 6 5 1 9 7 7 2 6 5 d 5 d 8 f 4 5 6 b 5 3 8 f 7 a 3 6 4 e c 8 a 8 b . p a t c h " ;
sha256 = " 1 2 1 y g 2 6 y 4 g 2 8 k 8 x v 7 y 1 j 6 c 3 p x m 1 7 v s j n 3 v i 6 2 k k c 8 g 9 2 8 c 4 7 y d 0 2 " ;
} )
] super . nix-thunk ;
2021-04-05 15:23:46 +00:00
2021-04-12 18:23:04 +00:00
# list `modbus` in librarySystemDepends, correct to `libmodbus`
2022-12-28 21:21:41 +00:00
libmodbus = doJailbreak ( addExtraLibrary pkgs . libmodbus super . libmodbus ) ;
2021-04-12 18:23:04 +00:00
2021-04-05 15:23:46 +00:00
# 2021-04-02: Outdated optparse-applicative bound is fixed but not realeased on upstream.
trial-optparse-applicative = assert super . trial-optparse-applicative . version == " 0 . 0 . 0 . 0 " ; doJailbreak super . trial-optparse-applicative ;
2023-01-11 07:51:40 +00:00
# 2022-12-28: Too strict version bounds on bytestring
iconv = doJailbreak super . iconv ;
2021-04-05 15:23:46 +00:00
# 2021-04-02: iCalendar is basically unmaintained.
2022-12-28 21:21:41 +00:00
# There is a PR for fixing the build: https://github.com/chrra/iCalendar/pull/50
iCalendar = appendPatches [
2022-04-03 18:54:34 +00:00
( fetchpatch {
2022-12-28 21:21:41 +00:00
url = " h t t p s : / / g i t h u b . c o m / c h r r a / i C a l e n d a r / c o m m i t / 6 6 b 4 0 8 f 1 0 b 2 d 8 7 9 2 9 e c d a 7 1 5 1 0 9 b 2 6 0 9 3 c 7 1 1 8 2 3 . p a t c h " ;
sha256 = " s h a 2 5 6 - M U 5 O H U x 3 L 8 C a X + x A m o Q h A A O M x T 7 u 9 X k 1 O c O a U H B w K 3 Y = " ;
} )
( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / c h r r a / i C a l e n d a r / c o m m i t / 7 6 f 5 d 2 e 8 3 2 8 c b 9 8 5 f 1 e e 5 1 7 6 e 8 6 a 5 c d d 0 5 a 1 7 9 3 4 . p a t c h " ;
sha256 = " s h a 2 5 6 - Z 5 V 8 V T A 5 M l 9 Y I R A N Q n 2 a D 7 d l j A b R 9 d q 1 3 N 1 1 Y 3 L Z d o E = " ;
} )
] super . iCalendar ;
ginger = doJailbreak super . ginger ;
2021-04-05 15:23:46 +00:00
# Too strict version bounds on cryptonite
# https://github.com/obsidiansystems/haveibeenpwned/issues/7
haveibeenpwned = doJailbreak super . haveibeenpwned ;
# Too strict version bounds on ghc-events
2022-01-25 03:21:06 +00:00
# https://github.com/mpickering/hs-speedscope/issues/16
hs-speedscope = doJailbreak super . hs-speedscope ;
2021-04-05 15:23:46 +00:00
# Test suite doesn't support base16-bytestring >= 1.0
# https://github.com/centromere/blake2/issues/6
blake2 = dontCheck super . blake2 ;
# Test suite doesn't support base16-bytestring >= 1.0
# https://github.com/serokell/haskell-crypto/issues/25
crypto-sodium = dontCheck super . crypto-sodium ;
2023-03-15 16:39:30 +00:00
taskell = super . taskell . override {
# Does not support brick >= 1.0
# https://github.com/smallhadroncollider/taskell/issues/125
brick = self . brick_0_70_1 ;
} ;
2021-04-05 15:23:46 +00:00
2022-04-03 18:54:34 +00:00
# Polyfill for GHCs from the integer-simple days that don't bundle ghc-bignum
ghc-bignum = super . ghc-bignum or self . mkDerivation {
pname = " g h c - b i g n u m " ;
version = " 1 . 0 " ;
sha256 = " 0 x l 8 4 8 q 8 z 6 q x 2 b i 6 x i l 0 d 3 5 l r a 7 w s h w v y s y f b l k i 6 5 9 d 7 2 7 2 b 1 i m " ;
description = " G H C B i g N u m l i b r a r y " ;
license = lib . licenses . bsd3 ;
# ghc-bignum is not buildable if none of the three backends
# is explicitly enabled. We enable Native for now as it doesn't
# depend on anything else as oppossed to GMP and FFI.
# Apply patch which fixes a compilation failure we encountered.
# Will need to be kept until we can drop ghc-bignum entirely,
# i. e. if GHC 8.10.* and 8.8.* have been removed.
configureFlags = [ " - f " " N a t i v e " ] ;
patches = [
( fetchpatch {
2021-04-12 18:23:04 +00:00
url = " h t t p s : / / g i t l a b . h a s k e l l . o r g / g h c / g h c / - / c o m m i t / 0 8 d 1 5 8 8 b f 3 8 d 8 3 1 4 0 a 8 6 8 1 7 a 7 a 6 1 5 d b 4 8 6 3 5 7 d 4 f . p a t c h " ;
2022-04-03 18:54:34 +00:00
sha256 = " s h a 2 5 6 - Y 9 W W 0 K D Q / q Y 2 L 9 O b P v h 1 i / 6 l x X I l p r b x z d S B D f i a M t E = " ;
relative = " l i b r a r i e s / g h c - b i g n u m " ;
2021-04-12 18:23:04 +00:00
} )
] ;
2022-04-03 18:54:34 +00:00
} ;
2021-04-12 18:23:04 +00:00
# 2021-04-09: outdated base and alex-tools
# PR pending https://github.com/glguy/language-lua/pull/6
language-lua = doJailbreak super . language-lua ;
# 2021-04-09: too strict time bound
# PR pending https://github.com/zohl/cereal-time/pull/2
cereal-time = doJailbreak super . cereal-time ;
2021-04-17 00:35:05 +00:00
# 2021-04-16: too strict bounds on QuickCheck and tasty
# https://github.com/hasufell/lzma-static/issues/1
lzma-static = doJailbreak super . lzma-static ;
2021-05-20 23:08:51 +00:00
# Too strict version bounds on base:
# https://github.com/obsidiansystems/database-id/issues/1
database-id-class = doJailbreak super . database-id-class ;
2023-08-22 20:05:09 +00:00
# https://github.com/softwarefactory-project/matrix-client-haskell/issues/36
# Restrictive bounds on aeson
matrix-client = doJailbreak super . matrix-client ;
2021-12-06 16:07:01 +00:00
cabal2nix-unstable = overrideCabal {
2023-03-04 12:14:45 +00:00
passthru = {
updateScript = ../../../maintainers/scripts/haskell/update-cabal2nix-unstable.sh ;
# This is used by regenerate-hackage-packages.nix to supply the configuration
# values we can easily generate automatically without checking them in.
compilerConfig =
pkgs . runCommand
" h a c k a g e 2 n i x - ${ self . ghc . haskellCompilerName } - c o n f i g . y a m l "
{
nativeBuildInputs = [
self . ghc
] ;
}
''
cat > " $ o u t " < < EOF
# generated by haskellPackages.cabal2nix-unstable.compilerConfig
compiler : $ { self . ghc . haskellCompilerName }
core-packages :
# Hack: The following package is a core package of GHCJS. If we don't declare
# it, then hackage2nix will generate a Hackage database where all dependants
# of this library are marked as "broken".
- ghcjs-base-0
EOF
ghc-pkg list \
| tail - n ' + 2 ' \
| sed - e ' s / [ ( ) ] // g' - e ' s / \ s \ + / - / ' \
> > " $ o u t "
'' ;
} ;
2021-12-06 16:07:01 +00:00
} super . cabal2nix-unstable ;
2021-05-20 23:08:51 +00:00
# Too strict version bounds on base
# https://github.com/gibiansky/IHaskell/issues/1217
ihaskell-display = doJailbreak super . ihaskell-display ;
ihaskell-basic = doJailbreak super . ihaskell-basic ;
# Fixes too strict version bounds on regex libraries
# Presumably to be removed at the next release
2022-04-03 18:54:34 +00:00
# Test suite doesn't support hspec 2.8
# https://github.com/yi-editor/yi/issues/1124
yi-language = appendPatch ( fetchpatch {
2021-05-20 23:08:51 +00:00
url = " h t t p s : / / g i t h u b . c o m / y i - e d i t o r / y i / c o m m i t / 0 d 3 b c b 5 b a 4 c 2 3 7 d 5 7 c e 3 3 a 3 d c 3 9 b 6 3 c 5 6 d 8 9 0 7 6 5 . p a t c h " ;
2022-03-30 09:31:56 +00:00
relative = " y i - l a n g u a g e " ;
sha256 = " s h a 2 5 6 - A V Q L v u l 3 u f x G Q y o X u d 0 5 q a u c l N a n f 6 k u n i p 0 o J / 9 l W Q = " ;
2022-04-03 18:54:34 +00:00
} ) ( dontCheck super . yi-language ) ;
2021-05-20 23:08:51 +00:00
2022-04-03 18:54:34 +00:00
# 2022-03-22: Jailbreak for base bound: https://github.com/reflex-frp/reflex-dom/pull/433
reflex-dom = assert super . reflex-dom . version == " 0 . 6 . 1 . 1 " ; doJailbreak super . reflex-dom ;
2021-05-20 23:08:51 +00:00
# Tests need to lookup target triple x86_64-unknown-linux
# https://github.com/llvm-hs/llvm-hs/issues/334
2021-12-06 16:07:01 +00:00
llvm-hs = overrideCabal {
2021-05-20 23:08:51 +00:00
doCheck = pkgs . stdenv . targetPlatform . system == " x 8 6 _ 6 4 - l i n u x " ;
2021-12-06 16:07:01 +00:00
} super . llvm-hs ;
2021-05-20 23:08:51 +00:00
2022-04-03 18:54:34 +00:00
# Fix build with bytestring >= 0.11 (GHC 9.2)
# https://github.com/llvm-hs/llvm-hs/pull/389
llvm-hs-pure = appendPatches [
( fetchpatch {
name = " l l v m - h s - p u r e - b y t e s t r i n g - 0 . 1 1 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / l l v m - h s / l l v m - h s / c o m m i t / f e 8 f d 5 5 6 e 8 d 2 c c 0 2 8 f 6 1 d 4 d 7 b 4 b 6 b f 1 8 c 4 5 6 d 0 9 0 . p a t c h " ;
sha256 = " s h a 2 5 6 - 1 d 4 w Q g 6 J E J L 3 G w m X Q p v b W 7 V O Y 5 D w j U P m I s L E E u r 0 K p s = " ;
relative = " l l v m - h s - p u r e " ;
excludes = [ " * * / T r i p l e . h s " ] ; # doesn't exist in 9.0.0
} )
2023-02-22 10:55:15 +00:00
] ( overrideCabal {
# Hackage Revision prevents patch from applying. Revision 1 does not allow
# bytestring-0.11.4 which is bundled with 9.2.6.
editedCabalFile = null ;
revision = null ;
} super . llvm-hs-pure ) ;
2022-04-03 18:54:34 +00:00
2021-06-04 09:07:49 +00:00
# * Fix build failure by picking patch from 8.5, we need
# this version of sbv for petrinizer
# * Pin version of crackNum that still exposes its library
2022-04-03 18:54:34 +00:00
sbv_7_13 = appendPatch ( fetchpatch {
2021-12-06 16:07:01 +00:00
url = " h t t p s : / / g i t h u b . c o m / L e v e n t E r k o k / s b v / c o m m i t / 5 7 0 1 4 b 9 c 7 c 6 7 d d 9 b 6 3 6 1 9 a 9 9 6 e 2 c 6 6 e 3 2 c 3 3 c 9 5 8 . p a t c h " ;
sha256 = " 1 0 n p a 8 n h 2 4 1 3 n 6 p 6 q l d 7 9 5 q f k b l d 0 8 i c m 0 2 b s p m k 9 3 y 0 k a b p g m g m " ;
} )
( super . sbv_7_13 . override {
crackNum = self . crackNum_2_4 ;
} ) ;
2021-05-20 23:08:51 +00:00
# Too strict bounds on dimensional
# https://github.com/enomsg/science-constants-dimensional/pull/1
science-constants-dimensional = doJailbreak super . science-constants-dimensional ;
2021-12-06 16:07:01 +00:00
# Tests are flaky on busy machines, upstream doesn't intend to fix
2021-05-20 23:08:51 +00:00
# https://github.com/merijn/paramtree/issues/4
paramtree = dontCheck super . paramtree ;
# Too strict version bounds on haskell-gi
# https://github.com/owickstrom/gi-gtk-declarative/issues/100
gi-gtk-declarative = doJailbreak super . gi-gtk-declarative ;
gi-gtk-declarative-app-simple = doJailbreak super . gi-gtk-declarative-app-simple ;
2023-04-29 16:46:19 +00:00
# 2023-04-09: haskell-ci needs Cabal-syntax 3.10
2023-08-22 20:05:09 +00:00
# 2023-07-03: allow lattices-2.2, waiting on https://github.com/haskell-CI/haskell-ci/pull/664
haskell-ci = doJailbreak ( super . haskell-ci . overrideScope ( self : super : {
2023-04-29 16:46:19 +00:00
Cabal-syntax = self . Cabal-syntax_3_10_1_0 ;
2023-08-22 20:05:09 +00:00
} ) ) ;
2021-05-20 23:08:51 +00:00
2022-06-26 10:26:21 +00:00
large-hashable = lib . pipe ( super . large-hashable . override {
# https://github.com/factisresearch/large-hashable/commit/5ec9d2c7233fc4445303564047c992b693e1155c
utf8-light = null ;
} ) [
# 2022-03-21: use version from git which supports GHC 9.{0,2} and aeson 2.0
2022-04-03 18:54:34 +00:00
( assert super . large-hashable . version == " 0 . 1 . 0 . 4 " ; overrideSrc {
2022-06-26 10:26:21 +00:00
version = " u n s t a b l e - 2 0 2 2 - 0 6 - 1 0 " ;
2022-04-03 18:54:34 +00:00
src = pkgs . fetchFromGitHub {
owner = " f a c t i s r e s e a r c h " ;
repo = " l a r g e - h a s h a b l e " ;
2022-06-26 10:26:21 +00:00
rev = " 4 d 1 4 9 c 8 2 8 c 1 8 5 b c f 0 5 5 5 6 d 1 6 6 0 f 7 9 f f 1 a e c 7 e a a 1 " ;
sha256 = " 1 4 1 3 4 9 q c w 3 m 9 3 j w 9 5 j c h a 9 r s g 2 y 8 s n 5 c a 5 j 5 9 c v 8 x m c i 3 8 k 2 n a m 0 " ;
2022-04-03 18:54:34 +00:00
} ;
} )
# Provide newly added dependencies
( overrideCabal ( drv : {
libraryHaskellDepends = drv . libraryHaskellDepends or [ ] ++ [
self . cryptonite
self . memory
] ;
testHaskellDepends = drv . testHaskellDepends or [ ] ++ [
self . inspection-testing
] ;
} ) )
2022-06-26 10:26:21 +00:00
# https://github.com/factisresearch/large-hashable/issues/24
( overrideCabal ( drv : {
testFlags = drv . testFlags or [ ] ++ [
" - n " " ^ D a t a . L a r g e H a s h a b l e . T e s t s . I n s p e c t i o n : g e n e r i c S u m G e t s O p t i m i z e d $ "
] ;
} ) )
2023-08-22 20:05:09 +00:00
# https://github.com/factisresearch/large-hashable/issues/25
# Currently broken with text >= 2.0
( overrideCabal ( lib . optionalAttrs ( lib . versionAtLeast self . ghc . version " 9 . 4 " ) {
broken = true ;
hydraPlatforms = [ ] ;
} ) )
2022-04-03 18:54:34 +00:00
] ;
2021-05-20 23:08:51 +00:00
# BSON defaults to requiring network instead of network-bsd which is
# required nowadays: https://github.com/mongodb-haskell/bson/issues/26
2021-12-06 16:07:01 +00:00
bson = appendConfigureFlag " - f - _ o l d _ n e t w o r k " ( super . bson . override {
2021-05-20 23:08:51 +00:00
network = self . network-bsd ;
2021-12-06 16:07:01 +00:00
} ) ;
2021-05-20 23:08:51 +00:00
2021-06-04 09:07:49 +00:00
# Disable flaky tests
# https://github.com/DavidEichmann/alpaca-netcode/issues/2
2021-12-06 16:07:01 +00:00
alpaca-netcode = overrideCabal {
2021-06-28 23:13:55 +00:00
testFlags = [ " - - p a t t e r n " " ! / [ N O C I ] / " ] ;
2021-12-06 16:07:01 +00:00
} super . alpaca-netcode ;
2021-06-04 09:07:49 +00:00
# 2021-05-22: Tests fail sometimes (even consistently on hydra)
# when running a fs-related test with >= 12 jobs. To work around
# this, run tests with only a single job.
# https://github.com/vmchale/libarchive/issues/20
2021-12-06 16:07:01 +00:00
libarchive = overrideCabal {
2021-06-28 23:13:55 +00:00
testFlags = [ " - j 1 " ] ;
2021-12-06 16:07:01 +00:00
} super . libarchive ;
2021-06-04 09:07:49 +00:00
2021-06-28 23:13:55 +00:00
# Too strict bounds on QuickCheck
# https://github.com/muesli4/table-layout/issues/16
table-layout = doJailbreak super . table-layout ;
# 2021-06-20: Outdated upper bounds
# https://github.com/Porges/email-validate-hs/issues/58
email-validate = doJailbreak super . email-validate ;
2021-10-06 13:57:05 +00:00
# https://github.com/plow-technologies/hspec-golden-aeson/issues/17
2022-04-03 18:54:34 +00:00
hspec-golden-aeson = dontCheck super . hspec-golden-aeson ;
2021-10-06 13:57:05 +00:00
2021-06-28 23:13:55 +00:00
# To strict bound on hspec
# https://github.com/dagit/zenc/issues/5
zenc = doJailbreak super . zenc ;
2021-06-04 09:07:49 +00:00
2021-08-08 23:34:03 +00:00
# https://github.com/ajscholl/basic-cpuid/pull/1
2022-04-03 18:54:34 +00:00
basic-cpuid = appendPatch ( fetchpatch {
2021-08-08 23:34:03 +00:00
url = " h t t p s : / / g i t h u b . c o m / a j s c h o l l / b a s i c - c p u i d / c o m m i t / 2 f 2 b d 7 a 7 b 5 3 1 0 3 f b 0 c f 2 6 8 8 3 f 0 9 4 d b 9 d 7 6 5 9 8 8 7 c . p a t c h " ;
sha256 = " 0 l 1 5 c c f d y s 1 0 0 j f 5 0 s 9 r r 4 p 0 d 0 i k n 5 3 b k h 7 a 9 q l k 9 i 0 y 0 z 5 j c 6 x 1 " ;
2021-12-06 16:07:01 +00:00
} ) super . basic-cpuid ;
2021-08-08 23:34:03 +00:00
2021-08-23 08:02:39 +00:00
# 2021-08-18: streamly-posix was released with hspec 2.8.2, but it works with older versions too.
streamly-posix = doJailbreak super . streamly-posix ;
2023-01-11 07:51:40 +00:00
# 2022-12-30: Restrictive upper bound on optparse-applicative
retrie = doJailbreak super . retrie ;
2022-09-11 15:47:08 +00:00
# 2022-08-30 Too strict bounds on finite-typelits
# https://github.com/jumper149/blucontrol/issues/1
blucontrol = doJailbreak super . blucontrol ;
2021-10-17 09:34:42 +00:00
2021-10-28 06:52:43 +00:00
# Fix from https://github.com/brendanhay/gogol/pull/144 which has seen no release
# Can't use fetchpatch as it required tweaking the line endings as the .cabal
# file revision on hackage was gifted CRLF line endings
2021-12-06 16:07:01 +00:00
gogol-core = appendPatch ./patches/gogol-core-144.patch super . gogol-core ;
2022-07-14 12:49:19 +00:00
# Stackage LTS 19 still has 10.*
hadolint = super . hadolint . override {
language-docker = self . language-docker_11_0_0 ;
} ;
2021-12-06 16:07:01 +00:00
2022-04-03 18:54:34 +00:00
nix-tree = super . nix-tree ;
2021-12-06 16:07:01 +00:00
# test suite requires stack to run, https://github.com/dino-/photoname/issues/24
photoname = dontCheck super . photoname ;
2021-12-30 13:39:12 +00:00
# Upgrade of unordered-containers in Stackage causes ordering-sensitive test to fail
# https://github.com/commercialhaskell/stackage/issues/6366
# https://github.com/kapralVV/Unique/issues/9
2022-12-28 21:21:41 +00:00
# Too strict bounds on hashable
# https://github.com/kapralVV/Unique/pull/10
2021-12-30 13:39:12 +00:00
Unique = assert super . Unique . version == " 0 . 4 . 7 . 9 " ; overrideCabal ( drv : {
testFlags = [
" - - s k i p " " / D a t a . L i s t . U n i q u e U n s o r t e d . r e m o v e D u p l i c a t e s / r e m o v e D u p l i c a t e s : s i m p l e t e s t / "
" - - s k i p " " / D a t a . L i s t . U n i q u e U n s o r t e d . r e p e a t e d B y , r e p e a t e d , u n i q u e / u n i q u e : s i m p l e t e s t / "
" - - s k i p " " / D a t a . L i s t . U n i q u e U n s o r t e d . r e p e a t e d B y , r e p e a t e d , u n i q u e / r e p e a t e d B y : s i m p l e t e s t / "
] ++ drv . testFlags or [ ] ;
2022-12-28 21:21:41 +00:00
} ) ( doJailbreak super . Unique ) ;
2022-06-16 17:23:12 +00:00
2021-12-30 13:39:12 +00:00
# https://github.com/AndrewRademacher/aeson-casing/issues/8
aeson-casing = assert super . aeson-casing . version == " 0 . 2 . 0 . 0 " ; overrideCabal ( drv : {
testFlags = [
" - p " " ! / e n c o d e t r a i n / "
] ++ drv . testFlags or [ ] ;
} ) super . aeson-casing ;
2022-06-16 17:23:12 +00:00
2021-12-30 13:39:12 +00:00
# https://github.com/emc2/HUnit-Plus/issues/26
HUnit-Plus = dontCheck super . HUnit-Plus ;
# https://github.com/ewestern/haskell-postgis/issues/7
haskell-postgis = overrideCabal ( drv : {
testFlags = [
" - - s k i p " " / G e o / H e x a b l e / E n c o d e s a l i n e s t r i n g / "
] ++ drv . testFlags or [ ] ;
} ) super . haskell-postgis ;
# https://github.com/ChrisPenner/json-to-haskell/issues/5
json-to-haskell = overrideCabal ( drv : {
testFlags = [
" - - m a t c h " " / s h o u l d s a n i t i z e w e i r d f i e l d a n d r e c o r d n a m e s / "
] ++ drv . testFlags or [ ] ;
} ) super . json-to-haskell ;
# https://github.com/fieldstrength/aeson-deriving/issues/5
aeson-deriving = dontCheck super . aeson-deriving ;
# https://github.com/morpheusgraphql/morpheus-graphql/issues/660
morpheus-graphql-core = overrideCabal ( drv : {
testFlags = [
" - p " " ! / f i e l d . u n e x p e c t e d - v a l u e / & & ! / f i e l d . m i s s i n g - f i e l d / & & ! / a r g u m e n t . u n e x p e c t e d - v a l u e / & & ! / a r g u m e n t . m i s s i n g - f i e l d / "
] ++ drv . testFlags or [ ] ;
} ) super . morpheus-graphql-core ;
morpheus-graphql = overrideCabal ( drv : {
testFlags = [
" - p " " ! / T e s t R e n d e r i n g / "
] ++ drv . testFlags or [ ] ;
} ) super . morpheus-graphql ;
2023-03-15 16:39:30 +00:00
drunken-bishop = doJailbreak super . drunken-bishop ;
2021-12-30 13:39:12 +00:00
# https://github.com/SupercedeTech/dropbox-client/issues/1
dropbox = overrideCabal ( drv : {
testFlags = [
" - - s k i p " " / D r o p b o x / D r o p b o x a e s o n a e s o n / e n c o d e s l i s t f o l d e r c o r r e c t l y / "
] ++ drv . testFlags or [ ] ;
} ) super . dropbox ;
# https://github.com/alonsodomin/haskell-schema/issues/11
hschema-aeson = overrideCabal ( drv : {
testFlags = [
" - - s k i p " " / t o J s o n S e r i a l i z e r / s h o u l d g e n e r a t e v a l i d J S O N / "
] ++ drv . testFlags or [ ] ;
} ) super . hschema-aeson ;
# https://github.com/minio/minio-hs/issues/165
minio-hs = overrideCabal ( drv : {
testFlags = [
" - p " " ! / T e s t m k S e l e c t R e q u e s t / "
] ++ drv . testFlags or [ ] ;
} ) super . minio-hs ;
# Invalid CPP in test suite: https://github.com/cdornan/memory-cd/issues/1
memory-cd = dontCheck super . memory-cd ;
2022-04-03 18:54:34 +00:00
# https://github.com/haskell/fgl/pull/99
fgl = doJailbreak super . fgl ;
fgl-arbitrary = doJailbreak super . fgl-arbitrary ;
2022-01-25 03:21:06 +00:00
# raaz-0.3 onwards uses backpack and it does not play nicely with
# parallel builds using -j
#
# See: https://gitlab.haskell.org/ghc/ghc/-/issues/17188
#
# Overwrite the build cores
raaz = overrideCabal ( drv : {
enableParallelBuilding = false ;
} ) super . raaz ;
2021-12-30 13:39:12 +00:00
# https://github.com/andreymulik/sdp/issues/3
sdp = disableLibraryProfiling super . sdp ;
sdp-binary = disableLibraryProfiling super . sdp-binary ;
sdp-deepseq = disableLibraryProfiling super . sdp-deepseq ;
sdp-hashable = disableLibraryProfiling super . sdp-hashable ;
sdp-io = disableLibraryProfiling super . sdp-io ;
sdp-quickcheck = disableLibraryProfiling super . sdp-quickcheck ;
sdp4bytestring = disableLibraryProfiling super . sdp4bytestring ;
sdp4text = disableLibraryProfiling super . sdp4text ;
sdp4unordered = disableLibraryProfiling super . sdp4unordered ;
sdp4vector = disableLibraryProfiling super . sdp4vector ;
2021-12-19 01:06:50 +00:00
2022-04-03 18:54:34 +00:00
# Unnecessarily strict bound on template-haskell
# https://github.com/tree-sitter/haskell-tree-sitter/issues/298
tree-sitter = doJailbreak super . tree-sitter ;
2022-08-12 12:06:08 +00:00
# 2022-08-07: Bounds are too restrictive: https://github.com/marcin-rzeznicki/libjwt-typed/issues/2
# Also, the tests fail.
libjwt-typed = dontCheck ( doJailbreak super . libjwt-typed ) ;
2022-01-13 20:06:32 +00:00
# Test suite fails to compile
# https://github.com/kuribas/mfsolve/issues/8
mfsolve = dontCheck super . mfsolve ;
2022-04-03 18:54:34 +00:00
# Fixes compilation with GHC 9.0 and above
# https://hub.darcs.net/shelarcy/regex-compat-tdfa/issue/3
regex-compat-tdfa = appendPatches [
./patches/regex-compat-tdfa-ghc-9.0.patch
2022-08-12 12:06:08 +00:00
] ( overrideCabal {
# Revision introduces bound base < 4.15
revision = null ;
editedCabalFile = null ;
} super . regex-compat-tdfa ) ;
2022-04-03 18:54:34 +00:00
# https://github.com/kowainik/validation-selective/issues/64
validation-selective = doJailbreak super . validation-selective ;
# https://github.com/system-f/validation/issues/57
validation = doJailbreak super . validation ;
# 2022-03-16: strict upper bounds https://github.com/monadfix/shower/issues/18
shower = doJailbreak ( dontCheck super . shower ) ;
2022-08-12 12:06:08 +00:00
# Test suite isn't supposed to succeed yet, apparently…
# https://github.com/andrewufrank/uniform-error/blob/f40629ad119e90f8dae85e65e93d7eb149bddd53/test/Uniform/Error_test.hs#L124
# https://github.com/andrewufrank/uniform-error/issues/2
uniform-error = dontCheck super . uniform-error ;
# https://github.com/andrewufrank/uniform-fileio/issues/2
uniform-fileio = dontCheck super . uniform-fileio ;
2022-04-03 18:54:34 +00:00
# The shipped Setup.hs file is broken.
csv = overrideCabal ( drv : { preCompileBuildDriver = " r m S e t u p . h s " ; } ) super . csv ;
2023-08-22 20:05:09 +00:00
# Build-type is simple, but ships a broken Setup.hs
digits = overrideCabal ( drv : { preCompileBuildDriver = " r m S e t u p . l h s " ; } ) super . digits ;
2022-04-03 18:54:34 +00:00
2022-09-30 11:47:45 +00:00
cabal-fmt = doJailbreak ( super . cabal-fmt . override {
2022-11-02 22:02:43 +00:00
# Needs newer Cabal-syntax version.
2023-08-22 20:05:09 +00:00
Cabal-syntax = self . Cabal-syntax_3_10_1_0 ;
2022-09-30 11:47:45 +00:00
} ) ;
2022-04-03 18:54:34 +00:00
2023-08-22 20:05:09 +00:00
# 2023-07-18: https://github.com/srid/ema/issues/156
ema = doJailbreak super . ema ;
2022-04-03 18:54:34 +00:00
2022-09-09 14:08:57 +00:00
glirc = doJailbreak ( super . glirc . override {
2022-06-16 17:23:12 +00:00
vty = self . vty_5_35_1 ;
2022-09-09 14:08:57 +00:00
} ) ;
2022-04-03 18:54:34 +00:00
2023-08-22 20:05:09 +00:00
# Too strict bounds on text and tls
# https://github.com/barrucadu/irc-conduit/issues/54
irc-conduit = doJailbreak super . irc-conduit ;
irc-client = doJailbreak super . irc-client ;
2022-04-03 18:54:34 +00:00
# 2022-02-25: Unmaintained and to strict upper bounds
paths = doJailbreak super . paths ;
# 2022-02-26: https://github.com/emilypi/base64/issues/39
base64 = dontCheck super . base64 ;
# 2022-03-16: Upstream stopped updating bounds https://github.com/haskell-hvr/base-noprelude/pull/15
base-noprelude = doJailbreak super . base-noprelude ;
# 2022-03-16: Bounds need to be loosened https://github.com/obsidiansystems/dependent-sum-aeson-orphans/issues/10
dependent-sum-aeson-orphans = doJailbreak super . dependent-sum-aeson-orphans ;
# 2022-03-16: package qualified import issue: https://github.com/ghcjs/ghcjs-dom/issues/101
ghcjs-dom = assert super . ghcjs-dom . version == " 0 . 9 . 5 . 0 " ; overrideCabal ( old : {
postPatch = ''
sed - i ' s/import " j s a d d l e - d o m " GHCJS.DOM.Document/import " g h c j s - d o m - j s a d d l e " GHCJS . DOM . Document / ' src/GHCJS/DOM/Document.hs
'' + ( o l d . p o s t P a t c h o r " " ) ;
2022-01-07 04:07:37 +00:00
} )
2023-08-22 20:05:09 +00:00
# 2023-07-15: Restrictive upper bounds on text
( doJailbreak super . ghcjs-dom ) ;
2022-04-03 18:54:34 +00:00
# Too strict bounds on chell: https://github.com/fpco/haskell-filesystem/issues/24
system-fileio = doJailbreak super . system-fileio ;
# Bounds too strict on base and ghc-prim: https://github.com/tibbe/ekg-core/pull/43 (merged); waiting on hackage release
2022-12-28 21:21:41 +00:00
ekg-core = assert super . ekg-core . version == " 0 . 1 . 1 . 7 " ; doJailbreak super . ekg-core ;
hasura-ekg-core = doJailbreak super . hasura-ekg-core ;
2022-04-03 18:54:34 +00:00
# https://github.com/Synthetica9/nix-linter/issues/65
nix-linter = super . nix-linter . overrideScope ( self : super : {
aeson = self . aeson_1_5_6_0 ;
} ) ;
# Test suite doesn't support hspec 2.8
# https://github.com/zellige/hs-geojson/issues/29
geojson = dontCheck super . geojson ;
2022-06-16 17:23:12 +00:00
# Test data missing from sdist
# https://github.com/ngless-toolkit/ngless/issues/152
NGLess = dontCheck super . NGLess ;
# Raise version bounds for hspec
records-sop = appendPatch ( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / k o s m i k u s / r e c o r d s - s o p / p u l l / 1 1 / c o m m i t s / d 8 8 8 3 1 3 8 8 a b 3 0 4 1 1 9 0 1 3 0 f e c 3 c d d 6 7 9 a 4 2 1 7 b 3 c 7 . p a t c h " ;
sha256 = " s h a 2 5 6 - O + v / O x v q n l W X 3 H a D v D I B Z n J + O g 3 x s / S J q I 3 g a o u U 3 Z I = " ;
} ) super . records-sop ;
# Fix build failures for ghc 9 (https://github.com/mokus0/polynomial/pull/20)
polynomial = appendPatch ( fetchpatch {
name = " h a s k e l l - p o l y n o m i a l . 2 0 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / m o k u s 0 / p o l y n o m i a l / p u l l / 2 0 . d i f f " ;
sha256 = " 1 b w i v i m p i 2 h i i l 3 z d n l 5 q k d s 1 i n y n 2 3 9 w g x b n 3 y 8 l 2 p w y p p n n f l 0 " ;
} )
( overrideCabal ( drv : {
revision = null ;
editedCabalFile = null ;
doCheck = false ; # Source dist doesn't include the checks
} )
super . polynomial ) ;
2023-07-15 17:15:38 +00:00
# Tests likely broke because of https://github.com/nick8325/quickcheck/issues/359,
# but fft is not on GitHub, so no issue reported.
fft = dontCheck super . fft ;
2022-06-16 17:23:12 +00:00
# lucid-htmx has restrictive upper bounds on lucid and servant:
#
# Setup: Encountered missing or private dependencies:
# lucid >=2.9.12.1 && <=2.11, servant >=0.18.3 && <0.19
#
# Can be removed once
#
# > https://github.com/MonadicSystems/lucid-htmx/issues/6
#
# has been resolved.
lucid-htmx = doJailbreak super . lucid-htmx ;
2022-08-12 12:06:08 +00:00
# Too strict bounds on hspec
# https://github.com/klapaucius/vector-hashtables/issues/11
vector-hashtables = doJailbreak super . vector-hashtables ;
# doctest-parallel is broken with v1-style cabal-install / Setup.hs
# https://github.com/martijnbastiaan/doctest-parallel/issues/22
doctest-parallel = dontCheck super . doctest-parallel ;
clash-prelude = dontCheck super . clash-prelude ;
# Ships a broken Setup.hs
# https://github.com/lehins/conduit-aeson/issues/1
conduit-aeson = overrideCabal ( drv : {
postPatch = ''
$ { drv . postPatch or " " }
rm Setup . hs
'' ;
# doctest suite uses doctest-parallel which still doesn't work in nixpkgs
testTarget = " t e s t s " ;
} ) super . conduit-aeson ;
2023-08-22 20:05:09 +00:00
# Upper bounds are too strict:
# https://github.com/velveteer/hermes/pull/22
hermes-json = doJailbreak super . hermes-json ;
2022-08-12 12:06:08 +00:00
# Disabling doctests.
regex-tdfa = overrideCabal {
testTarget = " r e g e x - t d f a - u n i t t e s t " ;
} super . regex-tdfa ;
2022-11-02 22:02:43 +00:00
# Missing test files https://github.com/kephas/xdg-basedir-compliant/issues/1
xdg-basedir-compliant = dontCheck super . xdg-basedir-compliant ;
2022-10-30 15:09:59 +00:00
# Test failure after libxcrypt migration, reported upstrem at
# https://github.com/phadej/crypt-sha512/issues/13
crypt-sha512 = dontCheck super . crypt-sha512 ;
2022-12-28 21:21:41 +00:00
# Too strict upper bound on HTTP
oeis = doJailbreak super . oeis ;
inherit
( let
# We need to build purescript with these dependencies and thus also its reverse
# dependencies to avoid version mismatches in their dependency closure.
2023-08-22 20:05:09 +00:00
# TODO: maybe unify with the spago overlay in configuration-nix.nix?
2022-12-28 21:21:41 +00:00
purescriptOverlay = self : super : {
# As of 2021-11-08, the latest release of `language-javascript` is 0.7.1.0,
# but it has a problem with parsing the `async` keyword. It doesn't allow
# `async` to be used as an object key:
# https://github.com/erikd/language-javascript/issues/131
language-javascript = self . language-javascript_0_7_0_0 ;
} ;
in {
purescript =
lib . pipe
( super . purescript . overrideScope purescriptOverlay )
( [
# PureScript uses nodejs to run tests, so the tests have been disabled
# for now. If someone is interested in figuring out how to get this
# working, it seems like it might be possible.
dontCheck
# The current version of purescript (0.14.5) has version bounds for LTS-17,
# but it compiles cleanly using deps in LTS-18 as well. This jailbreak can
# likely be removed when purescript-0.14.6 is released.
doJailbreak
# Generate shell completions
( self . generateOptparseApplicativeCompletions [ " p u r s " ] )
] ) ;
purenix = super . purenix . overrideScope purescriptOverlay ;
} )
purescript
purenix
;
2022-11-21 17:40:18 +00:00
# 2022-11-05: https://github.com/ysangkok/haskell-tzdata/issues/3
tzdata = dontCheck super . tzdata ;
2023-08-22 20:05:09 +00:00
# We provide newer dependencies than upstream expects.
swarm = doJailbreak super . swarm ;
2022-12-28 21:21:41 +00:00
2023-02-22 10:55:15 +00:00
# Too strict upper bound on bytestring
# https://github.com/TravisWhitaker/rdf/issues/8
rdf = doJailbreak super . rdf ;
2022-12-28 21:21:41 +00:00
# random <1.2
unfoldable = doJailbreak super . unfoldable ;
# containers <0.6, semigroupoids <5.3
data-lens = doJailbreak super . data-lens ;
# transformers <0.3
monads-fd = doJailbreak super . monads-fd ;
# HTF <0.15
cases = doJailbreak super . cases ;
# exceptions <0.9
eprocess = doJailbreak super . eprocess ;
# hashable <1.4, mmorph <1.2
composite-aeson = doJailbreak super . composite-aeson ;
# composite-aeson <0.8, composite-base <0.8
compdoc = doJailbreak super . compdoc ;
# composite-aeson <0.8, composite-base <0.8
haskell-coffee = doJailbreak super . haskell-coffee ;
# Test suite doesn't compile anymore
twitter-types = dontCheck super . twitter-types ;
# base <4.14
numbered-semigroups = doJailbreak super . numbered-semigroups ;
# Tests open file "data/test_vectors_aserti3-2d_run01.txt" but it doesn't exist
haskoin-core = dontCheck super . haskoin-core ;
# base <4.9, transformers <0.5
MonadCatchIO-transformers = doJailbreak super . MonadCatchIO-transformers ;
# unix-compat <0.5
hxt-cache = doJailbreak super . hxt-cache ;
# base <4.16
fast-builder = doJailbreak super . fast-builder ;
# QuickCheck <2.14
term-rewriting = doJailbreak super . term-rewriting ;
# tests can't find the test binary anymore - parseargs-example
parseargs = dontCheck super . parseargs ;
# base <4.14
decimal-literals = doJailbreak super . decimal-literals ;
# multiple bounds too strict
snaplet-sqlite-simple = doJailbreak super . snaplet-sqlite-simple ;
emanote = super . emanote . overrideScope ( lself : lsuper : {
commonmark-extensions = lself . commonmark-extensions_0_2_3_2 ;
} ) ;
2023-04-29 16:46:19 +00:00
# Test files missing from sdist
# https://github.com/tweag/webauthn/issues/166
webauthn = dontCheck super . webauthn ;
2022-12-28 21:21:41 +00:00
# doctest <0.19
polysemy = doJailbreak super . polysemy ;
# multiple bounds too strict
co-log-polysemy = doJailbreak super . co-log-polysemy ;
co-log-polysemy-formatting = doJailbreak super . co-log-polysemy-formatting ;
# 2022-12-02: Needs newer postgrest package
# 2022-12-02: Hackage release lags behind actual releases: https://github.com/PostgREST/postgrest/issues/2275
# 2022-12-02: Too strict bounds: https://github.com/PostgREST/postgrest/issues/2580
# 2022-12-02: Tests require running postresql server
postgrest = dontCheck ( doJailbreak ( overrideSrc rec {
version = " 1 0 . 1 . 1 " ;
src = pkgs . fetchFromGitHub {
owner = " P o s t g R E S T " ;
repo = " p o s t g r e s t " ;
rev = " v ${ version } " ;
sha256 = " s h a 2 5 6 - c e S P B H + l z G U 1 O w j o l c a E 1 B C p k K C J r v M U 5 G 8 T P e a J e s M = " ;
} ;
} super . postgrest ) ) ;
html-charset = dontCheck super . html-charset ;
2023-01-11 07:51:40 +00:00
# true-name-0.1.0.4 has been tagged, but has not been released to Hackage.
# Also, beyond 0.1.0.4 an additional patch is required to make true-name
# compatible with current versions of template-haskell
# https://github.com/liyang/true-name/pull/4
true-name = appendPatch ( fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / l i y a n g / t r u e - n a m e / c o m p a r e / 0 . 1 . 0 . 3 . . . n u t t y c o m : t r u e - n a m e : u p d a t e _ t e m p l a t e _ h a s k e l l . p a t c h " ;
hash = " s h a 2 5 6 - Z M B X G G c 2 X 5 A K X Y b q g k L X k g 5 B h E w y j 0 2 2 E 3 7 s U E W a h t c = " ;
} ) ( overrideCabal ( drv : {
revision = null ;
editedCabalFile = null ;
} ) super . true-name ) ;
2023-03-30 22:05:00 +00:00
# ffmpeg-light works against the ffmpeg-4 API, but the default ffmpeg in nixpkgs is ffmpeg-5.
# https://github.com/NixOS/nixpkgs/pull/220972#issuecomment-1484017192
ffmpeg-light = super . ffmpeg-light . override { ffmpeg = pkgs . ffmpeg_4 ; } ;
2023-01-11 07:51:40 +00:00
# posix-api has had broken tests since 2020 (until at least 2023-01-11)
# raehik has a fix pending: https://github.com/andrewthad/posix-api/pull/14
posix-api = dontCheck super . posix-api ;
2023-02-02 18:25:31 +00:00
# bytestring <0.11.0, optparse-applicative <0.13.0
# https://github.com/kseo/sfnt2woff/issues/1
sfnt2woff = doJailbreak super . sfnt2woff ;
2023-03-15 16:39:30 +00:00
# 2023-03-05: restrictive bounds on base https://github.com/diagrams/diagrams-gtk/issues/11
diagrams-gtk = doJailbreak super . diagrams-gtk ;
2023-03-30 22:05:00 +00:00
# 2023-03-13: restrictive bounds on validation-selective (>=0.1.0 && <0.2).
# Get rid of this in the next release: https://github.com/kowainik/tomland/commit/37f16460a6dfe4606d48b8b86c13635d409442cd
tomland = doJailbreak super . tomland ;
2023-04-12 12:48:02 +00:00
2023-05-24 13:37:59 +00:00
llvm-ffi = super . llvm-ffi . override {
LLVM = pkgs . llvmPackages_13 . libllvm ;
} ;
# libfuse3 fails to mount fuse file systems within the build environment
libfuse3 = dontCheck super . libfuse3 ;
# Tests fail due to the newly-build fourmolu not being in PATH
# https://github.com/fourmolu/fourmolu/issues/231
2023-10-09 19:29:22 +00:00
fourmolu_0_14_0_0 = dontCheck super . fourmolu_0_14_0_0 ;
fourmolu_0_13_1_0 = dontCheck super . fourmolu_0_13_1_0 ;
2023-05-24 13:37:59 +00:00
# Merged upstream, but never released. Allows both intel and aarch64 darwin to build.
# https://github.com/vincenthz/hs-gauge/pull/106
gauge = appendPatch ( pkgs . fetchpatch {
name = " d a r w i n - a a r c h 6 4 - f i x . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / v i n c e n t h z / h s - g a u g e / c o m m i t / 3 d 7 7 7 6 f 4 1 1 8 7 c 7 0 c 4 f 0 b 4 5 1 7 e 6 a 7 d d e 1 0 d c 0 2 3 0 9 . p a t c h " ;
hash = " s h a 2 5 6 - 4 o s U M o 0 c v T v y D T X F 8 l Y 9 t Q b F q L y w R w s c 3 R k H I h q S r i Q = " ;
} ) super . gauge ;
2023-07-15 17:15:38 +00:00
# Flaky QuickCheck tests
# https://github.com/Haskell-Things/ImplicitCAD/issues/441
implicit = dontCheck super . implicit ;
2023-08-22 20:05:09 +00:00
# The hackage source is somehow missing a file present in the repo (tests/ListStat.hs).
sym = dontCheck super . sym ;
2023-10-09 19:29:22 +00:00
# Too strict bounds on base, ghc-prim, primitive
# https://github.com/kowainik/typerep-map/pull/128
typerep-map = doJailbreak super . typerep-map ;
2022-12-28 21:21:41 +00:00
} // import ./configuration-tensorflow.nix { inherit pkgs haskellLib ; } self super