@ -2085,32 +2085,37 @@ self: super: {
} ;
} self . haskell-ci ;
# 2021-05-09: compilation requires patches from master,
# remove at next release (current is 0.1.0.4).
large-hashable = overrideCabal ( 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
large-hashable = pkgs . lib . pipe super . large-hashable [
# 2022-03-21: use version from git which includes support for GHC 9.0.1
( assert super . large-hashable . version == " 0 . 1 . 0 . 4 " ; overrideSrc {
version = " u n s t a b l e - 2 0 2 1 - 1 1 - 0 1 " ;
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 " ;
rev = " b 4 e 6 b 3 d 2 3 c 2 b 1 a f 9 6 5 f f c c 0 5 5 f 5 4 0 5 f f 6 7 3 e 6 6 c f " ;
sha256 = " 1 b g f 3 7 q f z d y j h p g n j 9 a i p w z p a 0 6 n c 7 b 1 g 4 f 6 4 x s m k n y d s 7 f f h i x z " ;
} ;
} )
# Provide newly added dependencies
( overrideCabal ( drv : {
libraryHaskellDepends = drv . libraryHaskellDepends or [ ] ++ [
self . cryptonite
self . memory
] ;
testHaskellDepends = drv . testHaskellDepends or [ ] ++ [
self . inspection-testing
] ;
} ) )
# 2022-03-21: patch for aeson 2.0
# https://github.com/factisresearch/large-hashable/pull/22
( appendPatches [
( 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 " ;
name = " l a r g e - h a s h a b l e - a e s o n - 2 . 0 . p a t c h " ;
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 0 9 4 e f 0 b a 5 5 b 4 8 4 8 c b 5 7 b a e 7 3 d 1 1 9 a c f b 4 9 6 a 4 c 9 . p a t c h " ;
sha256 = " 0 c k i i i 0 s 6 9 7 h 8 1 7 z 6 5 j w l m j z q w 2 c k p m 8 1 5 w q c n x j i g f 6 v 9 k x p s 8 j " ;
} )
] ;
} ) super . large-hashable ;
] )
] ;
# BSON defaults to requiring network instead of network-bsd which is
# required nowadays: https://github.com/mongodb-haskell/bson/issues/26