@ -1828,22 +1828,30 @@ EOT
# 2021-05-09: compilation requires patches from master,
# remove at next release (current is 0.1.0.4).
large-hashable = appendPatches super . large-hashable [
# Fix compilation of TH code for GHC >= 8.8
( pkgs . fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / f a c t i s r e s e a r c h / l a r g e - h a s h a b l e / c o m m i t / e e 7 a f e 4 b d 1 8 1 c f 1 5 a 3 2 4 c 7 f 4 8 2 3 f 7 a 3 4 8 e 4 a 0 e 6 b . p a t c h " ;
sha256 = " 1 h a 7 7 v 0 b c 6 p r x a c x h p d f g c s g w 8 3 4 8 g v h l 9 y 8 1 s m i g i f g j b i n p h x v " ;
excludes = [
" . t r a v i s . y m l "
" s t a c k * * "
] ;
} )
# Fix cpp invocation
( pkgs . fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / f a c t i s r e s e a r c h / l a r g e - h a s h a b l e / c o m m i t / 7 b 7 c 2 e d 6 a c 6 e 0 9 6 4 7 8 e 8 e e 0 0 1 6 0 f a 9 d 2 2 0 d f 8 5 3 a . p a t c h " ;
sha256 = " 1 s f 9 h 3 k 8 j b b g f s h z r c l a a w l w x 7 k 2 f r b 0 9 z 2 a 6 4 f 9 3 j h v k 6 c i 6 v g x " ;
} )
] ;
large-hashable = overrideCabal super . large-hashable ( drv : {
# fix line endings which are an issue all of a sudden for an unknown reason
prePatch = ''
find . - type f - print0 | xargs -0 $ { pkgs . buildPackages . dos2unix } /bin/dos2unix
'' + ( d r v . p r e P a t c h o r " " ) ;
# allow newer template haskell
jailbreak = true ;
patches = [
# Fix compilation of TH code for GHC >= 8.8
( pkgs . fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / f a c t i s r e s e a r c h / l a r g e - h a s h a b l e / c o m m i t / e e 7 a f e 4 b d 1 8 1 c f 1 5 a 3 2 4 c 7 f 4 8 2 3 f 7 a 3 4 8 e 4 a 0 e 6 b . p a t c h " ;
sha256 = " 1 h a 7 7 v 0 b c 6 p r x a c x h p d f g c s g w 8 3 4 8 g v h l 9 y 8 1 s m i g i f g j b i n p h x v " ;
excludes = [
" . t r a v i s . y m l "
" s t a c k * * "
] ;
} )
# Fix cpp invocation
( pkgs . fetchpatch {
url = " h t t p s : / / g i t h u b . c o m / f a c t i s r e s e a r c h / l a r g e - h a s h a b l e / c o m m i t / 7 b 7 c 2 e d 6 a c 6 e 0 9 6 4 7 8 e 8 e e 0 0 1 6 0 f a 9 d 2 2 0 d f 8 5 3 a . p a t c h " ;
sha256 = " 1 s f 9 h 3 k 8 j b b g f s h z r c l a a w l w x 7 k 2 f r b 0 9 z 2 a 6 4 f 9 3 j h v k 6 c i 6 v g x " ;
} )
] ;
} ) ;
# BSON defaults to requiring network instead of network-bsd which is
# required nowadays: https://github.com/mongodb-haskell/bson/issues/26