2017-02-02 15:49:28 +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.
2018-07-04 11:18:21 +00:00
{ pkgs , haskellLib }:
2015-01-07 19:31:32 +00:00
2022-03-24 18:19:57 +00:00
let
2022-12-20 00:32:07 +00:00
inherit ( pkgs ) fetchpatch fetchpatch2 lib ;
2022-03-24 18:19:57 +00:00
inherit ( lib ) throwIfNot versionOlder ;
in
2017-08-01 16:44:08 +00:00
with haskellLib ;
2015-01-07 19:31:32 +00:00
self : super : {
2023-02-18 18:18:05 +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 :
lib . optionalAttrs ( lib . versionOlder self . ghc . version " 9 . 4 " ) {
Cabal = cself . Cabal_3_8_1_0 ;
Cabal-syntax = cself . Cabal-syntax_3_8_1_0 ;
2023-02-18 18:34:27 +00:00
} // lib . optionalAttrs ( lib . versionOlder self . ghc . version " 9 . 2 . 5 " ) {
# GHC 9.2.5 starts shipping 1.6.16.0
2023-02-19 12:16:55 +00:00
process = cself . process_1_6_17_0 ;
2023-02-18 18:18:05 +00:00
} // lib . optionalAttrs ( lib . versions . majorMinor self . ghc . version == " 8 . 1 0 " ) {
# Prevent dependency on doctest which causes an inconsistent dependency
# due to depending on ghc-8.10.7 (with bundled process) vs. process 1.6.16.0
vector = dontCheck csuper . vector ;
} ;
in
{
cabal-install = super . cabal-install . overrideScope cabalInstallOverlay ;
cabal-install-solver = super . cabal-install-solver . overrideScope cabalInstallOverlay ;
2023-02-18 19:33:07 +00:00
guardian = lib . pipe
# Needs cabal-install >= 3.8 /as well as/ matching Cabal
( super . guardian . overrideScope ( self : super :
cabalInstallOverlay self super // {
# Needs at least path-io 1.8.0 due to canonicalizePath changes
path-io = self . path-io_1_8_0 ;
}
) )
[
# Tests need internet access (run stack)
dontCheck
# May as well…
( self . generateOptparseApplicativeCompletions [ " g u a r d i a n " ] )
] ;
2023-02-18 18:18:05 +00:00
}
) cabal-install
cabal-install-solver
2023-02-18 19:33:07 +00:00
guardian
2023-02-18 18:18:05 +00:00
;
2021-11-16 11:25:31 +00:00
# There are numerical tests on random data, that may fail occasionally
lapack = dontCheck super . lapack ;
2022-04-02 00:56:35 +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 ;
2019-10-14 17:22:06 +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.
arion-compose = dontCheck super . arion-compose ;
2017-07-26 08:09:05 +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 ;
2020-06-04 16:18:03 +00:00
# waiting for release: https://github.com/jwiegley/c2hsc/issues/41
2022-03-24 18:19:57 +00:00
c2hsc = appendPatch ( fetchpatch {
2020-06-04 16:18:03 +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-10-26 10:20:34 +00:00
} ) super . c2hsc ;
2020-06-04 16:18:03 +00:00
2016-11-16 12:42:54 +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 ;
2017-07-26 07:26:18 +00:00
ghcjs-prim = null ;
2016-11-16 12:42:54 +00:00
2019-06-01 15:44:48 +00:00
# Needs older QuickCheck version
attoparsec-varword = dontCheck super . attoparsec-varword ;
2018-06-25 20:05:53 +00:00
# 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-20 20:36:35 +00:00
ghc-vis = disableLibraryProfiling super . ghc-vis ;
2018-06-25 20:05:53 +00:00
2023-02-14 19:05:29 +00:00
# patat main branch has an unreleased commit that fixes the build by
# relaxing restrictive upper boundaries. This can be removed once there's a
# new release following version 0.8.8.0.
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 / c o m m i t / b e 9 e 0 f e 5 6 4 2 b a 6 a a 7 b 2 5 7 0 5 b a 1 7 9 5 0 9 2 3 e 9 9 5 1 f a . p a t c h " ;
sha256 = " s h a 2 5 6 - V x x i 4 6 q r k I y z Y Q Z + f e 1 v N T P l d c Q E I 2 r X 2 H 4 0 G v F J R 2 M = " ;
excludes = [ " s t a c k . y a m l " " s t a c k . y a m l . l o c k " ] ;
} ) super . patat ;
2022-02-08 09:34:38 +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 ) ;
2016-08-15 12:05:55 +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 ;
2017-02-04 00:19:08 +00:00
# check requires mysql server
mysql-simple = dontCheck super . mysql-simple ;
2017-03-27 07:34:37 +00:00
mysql-haskell = dontCheck super . mysql-haskell ;
2017-02-04 00:19:08 +00:00
2017-03-02 11:17:36 +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-11-14 10:29:53 +00:00
git-annex = overrideCabal ( drv : {
2017-03-02 11:17:36 +00:00
src = pkgs . fetchgit {
2018-07-10 14:06:19 +00:00
name = " g i t - a n n e x - ${ super . git-annex . version } - s r c " ;
2017-03-02 11:17:36 +00:00
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 / " ;
2018-07-10 14:06:19 +00:00
rev = " r e f s / t a g s / " + super . git-annex . version ;
2023-03-02 14:04:16 +00:00
sha256 = " 0 n g v d c v s k r h d q 4 m 1 9 h 4 b 1 c q 3 j h b z x 0 b q a y 6 h v s p p k 6 c b 2 y 4 w k f d 9 " ;
2021-06-22 16:11:25 +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 *
'' ;
2016-06-07 16:10:08 +00:00
} ;
2022-02-20 04:17:29 +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 " ;
2021-11-14 10:29:53 +00:00
} ) super . git-annex ;
2018-12-04 11:33:48 +00:00
2022-11-08 10:58:23 +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 ;
2017-08-15 04:02:19 +00:00
# Fix test trying to access /home directory
2021-10-26 10:20:34 +00:00
shell-conduit = overrideCabal ( drv : {
2017-08-15 04:02:19 +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-10-26 10:20:34 +00:00
} ) super . shell-conduit ;
2017-08-15 04:02:19 +00:00
2022-12-18 09:37:26 +00:00
cachix = self . generateOptparseApplicativeCompletions [ " c a c h i x " ] super . cachix ;
2022-11-24 02:13:51 +00:00
2015-09-02 10:27:36 +00:00
# https://github.com/froozen/kademlia/issues/2
kademlia = dontCheck super . kademlia ;
2021-03-18 09:35:41 +00:00
# Tests require older versions of tasty.
2017-02-02 15:49:28 +00:00
hzk = dontCheck super . hzk ;
2021-03-18 09:35:41 +00:00
resolv = doJailbreak super . resolv ;
2022-03-19 22:57:58 +00:00
2017-10-16 11:08:10 +00:00
# Tests require a Kafka broker running locally
2017-02-02 15:49:28 +00:00
haskakafka = dontCheck super . haskakafka ;
2015-12-08 17:20:16 +00:00
2022-11-27 02:48:59 +00:00
bindings-levmar = addExtraLibrary pkgs . blas super . bindings-levmar ;
2015-06-09 18:48:36 +00:00
2021-02-26 22:59:46 +00:00
# Requires wrapQtAppsHook
2021-10-26 10:20:34 +00:00
qtah-cpp-qt5 = overrideCabal ( drv : {
2021-02-26 22:59:46 +00:00
buildDepends = [ pkgs . qt5 . wrapQtAppsHook ] ;
2021-10-26 10:20:34 +00:00
} ) super . qtah-cpp-qt5 ;
2021-02-26 22:59:46 +00:00
2015-01-10 19:27:16 +00:00
# The Haddock phase fails for one reason or another.
2015-01-21 09:22:30 +00:00
deepseq-magic = dontHaddock super . deepseq-magic ;
2015-03-24 15:10:17 +00:00
feldspar-signal = dontHaddock super . feldspar-signal ; # https://github.com/markus-git/feldspar-signal/issues/1
2015-01-10 19:27:16 +00:00
hoodle-core = dontHaddock super . hoodle-core ;
hsc3-db = dontHaddock super . hsc3-db ;
2015-01-11 15:30:56 +00:00
2022-11-22 18:25:02 +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 ) ;
2015-01-11 15:30:56 +00:00
# https://github.com/techtangents/ablist/issues/1
ABList = dontCheck super . ABList ;
2015-01-11 16:18:22 +00:00
2023-02-08 11:03:43 +00:00
pandoc-cli = throwIfNot ( versionOlder super . pandoc . version " 3 . 0 . 0 " ) " p a n d o c - c l i c o n t a i n s t h e p a n d o c e x e c u t a b l e s t a r t i n g w i t h 3 . 0 , t h i s n e e d s t o b e c o n s i d e r e d n o w . " ( markBroken ( dontDistribute super . pandoc-cli ) ) ;
2017-02-12 13:13:53 +00:00
# sse2 flag due to https://github.com/haskell/vector/issues/47.
2021-01-01 20:38:03 +00:00
# Jailbreak is necessary for QuickCheck dependency.
2021-10-26 10:20:34 +00:00
vector = doJailbreak ( if pkgs . stdenv . isi686 then appendConfigureFlag " - - g h c - o p t i o n s = - m s s e 2 " super . vector else super . vector ) ;
2015-01-14 15:02:51 +00:00
2021-10-26 10:20:34 +00:00
inline-c-cpp = overrideCabal ( drv : {
2022-05-18 16:26:35 +00:00
patches = drv . patches or [ ] ++ [
( fetchpatch {
# awaiting release >0.5.0.0
url = " h t t p s : / / g i t h u b . c o m / f p c o / i n l i n e - c / c o m m i t / e 1 7 6 b 8 e 8 c 3 c 9 4 e 7 d 8 2 8 9 a 8 b 7 c c 4 c e 8 e 7 3 7 7 4 1 7 3 0 . p a t c h " ;
name = " i n l i n e - c - c p p - p r - 1 3 2 - 1 . p a t c h " ;
sha256 = " s h a 2 5 6 - C d Z X A T 3 A r 4 K K D G y A U u 8 A 7 h z d d K e 5 / A u M K o Z S j t 3 o 0 U E = " ;
stripLen = 1 ;
} )
] ;
2019-07-04 08:16:38 +00:00
postPatch = ( drv . postPatch or " " ) + ''
substituteInPlace inline-c-cpp . cabal - - replace " - o p t c - s t d = c + + 1 1 " " "
'' ;
2021-10-26 10:20:34 +00:00
} ) super . inline-c-cpp ;
2016-06-15 23:03:22 +00:00
2021-10-26 10:20:34 +00:00
inline-java = addBuildDepend pkgs . jdk super . inline-java ;
2017-07-07 10:49:45 +00:00
2015-01-20 15:29:54 +00:00
# Upstream notified by e-mail.
permutation = dontCheck super . permutation ;
2015-01-20 15:37:55 +00:00
# https://github.com/jputcu/serialport/issues/25
serialport = dontCheck super . serialport ;
2020-04-16 19:51:46 +00:00
# Test suite depends on source code being available
simple-affine-space = dontCheck super . simple-affine-space ;
2015-01-20 16:17:13 +00:00
# Fails no apparent reason. Upstream has been notified by e-mail.
assertions = dontCheck super . assertions ;
2023-01-29 21:12:44 +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 ) ;
2015-01-20 16:28:50 +00:00
# These packages try to execute non-existent external programs.
2015-01-20 16:28:50 +00:00
cmaes = dontCheck super . cmaes ; # http://hydra.cryp.to/build/498725/log/raw
2015-02-23 10:43:29 +00:00
dbmigrations = dontCheck super . dbmigrations ;
2015-01-20 16:28:50 +00:00
filestore = dontCheck super . filestore ;
2015-01-20 22:59:31 +00:00
graceful = dontCheck super . graceful ;
2015-01-20 16:22:26 +00:00
HList = dontCheck super . HList ;
2015-09-03 12:39:18 +00:00
ide-backend = dontCheck super . ide-backend ;
2015-03-27 22:23:49 +00:00
marquise = dontCheck super . marquise ; # https://github.com/anchor/marquise/issues/69
2015-01-20 16:28:50 +00:00
memcached-binary = dontCheck super . memcached-binary ;
2015-09-03 12:39:18 +00:00
msgpack-rpc = dontCheck super . msgpack-rpc ;
2015-03-05 17:02:53 +00:00
persistent-zookeeper = dontCheck super . persistent-zookeeper ;
2015-03-05 17:22:06 +00:00
pocket-dns = dontCheck super . pocket-dns ;
2015-01-20 16:28:50 +00:00
postgresql-simple = dontCheck super . postgresql-simple ;
2022-05-15 16:15:49 +00:00
squeal-postgresql = dontCheck super . squeal-postgresql ;
2017-05-07 10:46:49 +00:00
postgrest-ws = dontCheck super . postgrest-ws ;
2015-01-20 16:28:50 +00:00
snowball = dontCheck super . snowball ;
2015-09-03 12:39:18 +00:00
sophia = dontCheck super . sophia ;
2015-03-03 20:44:57 +00:00
test-sandbox = dontCheck super . test-sandbox ;
2016-10-07 08:57:54 +00:00
texrunner = dontCheck super . texrunner ;
2015-03-09 11:14:33 +00:00
users-postgresql-simple = dontCheck super . users-postgresql-simple ;
2015-01-25 19:57:19 +00:00
wai-middleware-hmac = dontCheck super . wai-middleware-hmac ;
2015-06-17 14:06:15 +00:00
xkbcommon = dontCheck super . xkbcommon ;
2015-01-20 16:28:50 +00:00
xmlgen = dontCheck super . xmlgen ;
2015-09-27 14:20:24 +00:00
HerbiePlugin = dontCheck super . HerbiePlugin ;
2016-10-06 00:04:35 +00:00
wai-cors = dontCheck super . wai-cors ;
2015-01-20 16:28:50 +00:00
2023-01-29 21:28:04 +00:00
# 2022-01-29: Tests fail: https://github.com/psibi/streamly-bytestring/issues/27
2023-02-14 18:16:59 +00:00
# 2022-02-14: Strict upper bound: https://github.com/psibi/streamly-bytestring/issues/30
streamly-bytestring = dontCheck ( doJailbreak super . streamly-bytestring ) ;
2023-01-29 21:28:04 +00:00
2017-10-16 11:08:10 +00:00
# base bound
digit = doJailbreak super . digit ;
2023-01-29 21:20:59 +00:00
# 2022-01-29: Tests require package to be in ghc-db.
aeson-schemas = dontCheck super . aeson-schemas ;
2023-01-25 15:30:46 +00:00
# matterhorn-50200.17.0 won't work with brick >= 0.71, brick-skylighting >= 1.0
2022-08-13 16:27:34 +00:00
matterhorn = doJailbreak ( super . matterhorn . overrideScope ( self : super : {
brick = self . brick_0_70_1 ;
2023-01-25 15:30:46 +00:00
brick-skylighting = self . brick-skylighting_0_3 ;
2022-08-13 16:27:34 +00:00
} ) ) ;
2022-02-18 13:50:04 +00:00
# 2020-06-05: HACK: does not pass own build suite - `dontCheck`
2022-11-24 15:06:53 +00:00
# 2022-11-24: jailbreak as it has too strict bounds on a bunch of things
hnix = self . generateOptparseApplicativeCompletions [ " h n i x " ] ( dontCheck ( doJailbreak super . hnix ) ) ;
# Too strict bounds on algebraic-graphs and bytestring
2022-02-20 19:03:57 +00:00
# https://github.com/haskell-nix/hnix-store/issues/180
2022-11-24 15:06:53 +00:00
hnix-store-core = doJailbreak super . hnix-store-core ;
2020-12-31 00:44:28 +00:00
2015-01-20 16:28:50 +00:00
# Fails for non-obvious reasons while attempting to use doctest.
2021-07-21 07:09:47 +00:00
focuslist = dontCheck super . focuslist ;
2015-01-20 16:28:50 +00:00
search = dontCheck super . search ;
2018-11-10 16:07:54 +00:00
# see https://github.com/LumiGuide/haskell-opencv/commit/cd613e200aa20887ded83256cf67d6903c207a60
2021-10-26 10:20:34 +00:00
opencv = dontCheck ( appendPatch ./patches/opencv-fix-116.patch super . opencv ) ;
opencv-extra = dontCheck ( appendPatch ./patches/opencv-fix-116.patch super . opencv-extra ) ;
2018-11-10 16:07:54 +00:00
2023-03-13 10:15:18 +00:00
# Too strict lower bound on hspec
graphql =
assert lib . versionOlder self . hspec . version " 2 . 1 0 " ;
doJailbreak super . graphql ;
2015-01-20 16:28:50 +00:00
# https://github.com/ekmett/structures/issues/3
structures = dontCheck super . structures ;
2015-01-20 16:28:50 +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
2015-03-14 12:09:51 +00:00
aeson-schema = dontCheck super . aeson-schema ; # https://github.com/timjb/aeson-schema/issues/9
2016-09-17 08:48:12 +00:00
angel = dontCheck super . angel ;
2015-01-20 16:28:50 +00:00
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
2015-01-21 09:22:30 +00:00
aws-kinesis = dontCheck super . aws-kinesis ; # needs aws credentials for testing
2015-01-20 16:28:50 +00:00
binary-protocol = dontCheck super . binary-protocol ; # http://hydra.cryp.to/build/499749/log/raw
2016-09-17 08:48:12 +00:00
binary-search = dontCheck super . binary-search ;
2022-04-08 23:13:07 +00:00
bloodhound = dontCheck super . bloodhound ; # https://github.com/plow-technologies/quickcheck-arbitrary-template/issues/10
2015-01-20 21:56:30 +00:00
buildwrapper = dontCheck super . buildwrapper ;
2015-01-20 16:28:50 +00:00
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
2016-09-17 08:48:12 +00:00
camfort = dontCheck super . camfort ;
2015-01-20 16:28:50 +00:00
cjk = dontCheck super . cjk ;
2016-09-17 08:48:12 +00:00
CLI = dontCheck super . CLI ; # Upstream has no issue tracker.
2015-01-20 16:28:50 +00:00
command-qq = dontCheck super . command-qq ; # http://hydra.cryp.to/build/499042/log/raw
2015-01-20 21:56:30 +00:00
conduit-connection = dontCheck super . conduit-connection ;
2015-01-20 16:28:50 +00:00
craftwerk = dontCheck super . craftwerk ;
2021-09-17 12:22:14 +00:00
crc = dontCheck super . crc ; # https://github.com/MichaelXavier/crc/issues/2
2016-09-17 08:48:12 +00:00
css-text = dontCheck super . css-text ;
2015-01-20 16:28:50 +00:00
damnpacket = dontCheck super . damnpacket ; # http://hydra.cryp.to/build/496923/log
2015-05-04 14:20:11 +00:00
data-hash = dontCheck super . data-hash ;
2015-01-20 16:28:50 +00:00
Deadpan-DDP = dontCheck super . Deadpan-DDP ; # http://hydra.cryp.to/build/496418/log/raw
2015-01-20 21:56:30 +00:00
DigitalOcean = dontCheck super . DigitalOcean ;
2016-09-17 08:48:12 +00:00
direct-sqlite = dontCheck super . direct-sqlite ;
2015-01-20 16:28:50 +00:00
directory-layout = dontCheck super . directory-layout ;
2016-09-17 08:48:12 +00:00
dlist = dontCheck super . dlist ;
2015-01-20 16:28:50 +00:00
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
2019-11-12 13:46:38 +00:00
dotenv = dontCheck super . dotenv ; # Tests fail because of missing test file on version 0.8.0.2 fixed on version 0.8.0.4
2015-01-20 16:28:50 +00:00
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
2016-09-17 08:48:12 +00:00
ed25519 = dontCheck super . ed25519 ;
2015-01-20 21:56:30 +00:00
etcd = dontCheck super . etcd ;
fb = dontCheck super . fb ; # needs credentials for Facebook
2015-01-20 16:28:50 +00:00
fptest = dontCheck super . fptest ; # http://hydra.cryp.to/build/499124/log/raw
2017-03-19 21:21:34 +00:00
friday-juicypixels = dontCheck super . friday-juicypixels ; #tarball missing test/rgba8.png
2015-01-20 16:28:50 +00:00
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 ;
2019-11-08 17:29:16 +00:00
github-rest = dontCheck super . github-rest ; # test suite needs the network
2016-09-17 08:48:12 +00:00
gitlib-cmdline = dontCheck super . gitlib-cmdline ;
2015-03-20 10:29:59 +00:00
GLFW-b = dontCheck super . GLFW-b ; # https://github.com/bsl/GLFW-b/issues/50
2015-01-20 16:28:50 +00:00
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 ;
2018-02-05 18:00:12 +00:00
haxl = dontCheck super . haxl ; # non-deterministic failure https://github.com/facebook/Haxl/issues/85
2015-01-21 09:22:30 +00:00
haxl-facebook = dontCheck super . haxl-facebook ; # needs facebook credentials for testing
2015-01-20 16:28:50 +00:00
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 ;
2015-03-05 17:11:10 +00:00
hierarchical-clustering = dontCheck super . hierarchical-clustering ;
2021-10-26 10:20:34 +00:00
hlibgit2 = disableHardening [ " f o r m a t " ] super . hlibgit2 ;
2015-01-20 16:28:50 +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-10-26 10:20:34 +00:00
HTF = overrideCabal ( orig : {
2021-04-27 10:55:49 +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-02-20 20:32:06 +00:00
# test suite doesn't compile with aeson >= 2.0
# https://github.com/skogsbaer/HTF/issues/114
doCheck = false ;
2021-10-26 10:20:34 +00:00
} ) super . HTF ;
2015-01-20 16:28:50 +00:00
htsn = dontCheck super . htsn ;
htsn-import = dontCheck super . htsn-import ;
2018-06-06 15:40:35 +00:00
http-link-header = dontCheck super . http-link-header ; # non deterministic failure https://hydra.nixos.org/build/75041105
2015-06-03 14:12:21 +00:00
influxdb = dontCheck super . influxdb ;
2020-12-02 11:19:44 +00:00
integer-roots = dontCheck super . integer-roots ; # requires an old version of smallcheck, will be fixed in > 1.0
2015-01-20 16:28:50 +00:00
itanium-abi = dontCheck super . itanium-abi ;
2015-01-20 21:56:30 +00:00
katt = dontCheck super . katt ;
2019-11-08 17:29:47 +00:00
language-slice = dontCheck super . language-slice ;
2023-02-19 04:51:07 +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 ;
2015-11-09 20:56:44 +00:00
ldap-client = dontCheck super . ldap-client ;
2015-01-20 16:28:50 +00:00
lensref = dontCheck super . lensref ;
2021-10-26 10:20:34 +00:00
lvmrun = disableHardening [ " f o r m a t " ] ( dontCheck super . lvmrun ) ;
2019-09-04 12:16:52 +00:00
matplotlib = dontCheck super . matplotlib ;
2015-01-20 16:28:50 +00:00
memcache = dontCheck super . memcache ;
2016-09-17 08:48:12 +00:00
metrics = dontCheck super . metrics ;
2015-01-20 16:28:50 +00:00
milena = dontCheck super . milena ;
2018-12-13 15:46:22 +00:00
modular-arithmetic = dontCheck super . modular-arithmetic ; # tests require a very old Glob (0.7.*)
2015-01-20 16:28:50 +00:00
nats-queue = dontCheck super . nats-queue ;
netpbm = dontCheck super . netpbm ;
2016-09-17 08:48:12 +00:00
network = dontCheck super . network ;
2021-03-15 15:04:53 +00:00
network_2_6_3_1 = dontCheck super . network_2_6_3_1 ; # package is missing files for test
2015-01-20 16:28:50 +00:00
network-dbus = dontCheck super . network-dbus ;
notcpp = dontCheck super . notcpp ;
ntp-control = dontCheck super . ntp-control ;
2018-06-18 19:50:57 +00:00
odpic-raw = dontCheck super . odpic-raw ; # needs a running oracle database server
2015-01-20 16:28:50 +00:00
opaleye = dontCheck super . opaleye ;
openpgp = dontCheck super . openpgp ;
optional = dontCheck super . optional ;
2017-02-13 14:13:02 +00:00
orgmode-parse = dontCheck super . orgmode-parse ;
2015-01-20 16:28:50 +00:00
os-release = dontCheck super . os-release ;
2021-04-19 18:39:38 +00:00
parameterized = dontCheck super . parameterized ; # https://github.com/louispan/parameterized/issues/2
2015-01-20 16:28:50 +00:00
persistent-redis = dontCheck super . persistent-redis ;
pipes-extra = dontCheck super . pipes-extra ;
pipes-websockets = dontCheck super . pipes-websockets ;
2019-01-30 08:00:27 +00:00
posix-pty = dontCheck super . posix-pty ; # https://github.com/merijn/posix-pty/issues/12
2015-03-08 10:19:50 +00:00
postgresql-binary = dontCheck super . postgresql-binary ; # needs a running postgresql server
2015-01-20 16:28:50 +00:00
postgresql-simple-migration = dontCheck super . postgresql-simple-migration ;
2022-07-05 09:58:21 +00:00
powerdns = dontCheck super . powerdns ; # Tests require networking and external services
2015-01-20 16:28:50 +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 ;
2016-09-17 08:48:12 +00:00
safecopy = dontCheck super . safecopy ;
2015-01-20 16:28:50 +00:00
sai-shape-syb = dontCheck super . sai-shape-syb ;
2020-03-08 10:00:44 +00:00
saltine = dontCheck super . saltine ; # https://github.com/tel/saltine/pull/56
2015-01-20 16:28:50 +00:00
scp-streams = dontCheck super . scp-streams ;
2018-11-02 23:11:11 +00:00
sdl2 = dontCheck super . sdl2 ; # the test suite needs an x server
2015-04-19 15:03:21 +00:00
sdl2-ttf = dontCheck super . sdl2-ttf ; # as of version 0.2.1, the test suite requires user intervention
2015-01-20 16:28:50 +00:00
separated = dontCheck super . separated ;
shadowsocks = dontCheck super . shadowsocks ;
shake-language-c = dontCheck super . shake-language-c ;
2022-03-01 11:43:05 +00:00
snap-core = doJailbreak ( dontCheck super . snap-core ) ; # attoparsec bound is too strict. This has been fixed on master
2022-03-19 00:43:27 +00:00
snap-server = doJailbreak super . snap-server ; # attoparsec bound is too strict
2019-11-08 17:29:47 +00:00
sourcemap = dontCheck super . sourcemap ;
2015-01-20 16:28:50 +00:00
static-resources = dontCheck super . static-resources ;
2015-01-20 21:56:30 +00:00
strive = dontCheck super . strive ; # fails its own hlint test with tons of warnings
2015-01-20 16:28:50 +00:00
svndump = dontCheck super . svndump ;
2020-04-18 20:51:19 +00:00
tar = dontCheck super . tar ; #https://hydra.nixos.org/build/25088435/nixlog/2 (fails only on 32-bit)
2016-09-17 08:48:12 +00:00
th-printf = dontCheck super . th-printf ;
2015-01-20 16:28:50 +00:00
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 ;
2016-09-17 08:48:12 +00:00
webdriver-angular = dontCheck super . webdriver-angular ;
2015-01-20 16:28:50 +00:00
xsd = dontCheck super . xsd ;
2019-07-21 09:53:23 +00:00
zip-archive = dontCheck super . zip-archive ; # https://github.com/jgm/zip-archive/issues/57
2015-01-20 16:28:50 +00:00
2015-01-20 23:10:12 +00:00
# These test suites run for ages, even on a fast machine. This is nuts.
Random123 = dontCheck super . Random123 ;
systemd = dontCheck super . systemd ;
2015-01-21 09:22:30 +00:00
# https://github.com/eli-frey/cmdtheline/issues/28
cmdtheline = dontCheck super . cmdtheline ;
# https://github.com/bos/snappy/issues/1
2023-02-23 07:49:31 +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 ) ;
2015-01-21 09:22:30 +00:00
2015-01-22 16:30:05 +00:00
# https://github.com/vincenthz/hs-crypto-pubkey/issues/20
crypto-pubkey = dontCheck super . crypto-pubkey ;
2015-01-29 14:40:30 +00:00
# https://github.com/Philonous/xml-picklers/issues/5
xml-picklers = dontCheck super . xml-picklers ;
2015-01-29 10:32:37 +00:00
2015-01-29 14:40:30 +00:00
# https://github.com/joeyadams/haskell-stm-delay/issues/3
stm-delay = dontCheck super . stm-delay ;
2015-02-02 10:57:59 +00:00
# https://github.com/pixbi/duplo/issues/25
2022-11-27 02:48:59 +00:00
duplo = doJailbreak super . duplo ;
2015-02-02 10:57:59 +00:00
2015-02-03 11:24:13 +00:00
# https://github.com/evanrinehart/mikmod/issues/1
2021-10-26 10:20:34 +00:00
mikmod = addExtraLibrary pkgs . libmikmod super . mikmod ;
2015-02-03 11:24:13 +00:00
2015-02-08 12:02:11 +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
2015-02-07 15:21:30 +00:00
2015-04-12 12:15:44 +00:00
# no haddock since this is an umbrella package.
cloud-haskell = dontHaddock super . cloud-haskell ;
2015-02-12 19:19:07 +00:00
# This packages compiles 4+ hours on a fast machine. That's just unreasonable.
CHXHtml = dontDistribute super . CHXHtml ;
2015-02-15 19:04:38 +00:00
# https://github.com/NixOS/nixpkgs/issues/6350
2021-10-26 10:20:34 +00:00
paypal-adaptive-hoops = overrideCabal ( drv : { testTarget = " l o c a l " ; } ) super . paypal-adaptive-hoops ;
2015-02-15 19:04:38 +00:00
2018-03-15 14:06:01 +00:00
# Avoid "QuickCheck >=2.3 && <2.10" dependency we cannot fulfill in lts-11.x.
test-framework = dontCheck super . test-framework ;
2015-02-21 13:46:56 +00:00
# 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 ;
2015-03-04 13:37:05 +00:00
# https://github.com/junjihashimoto/test-sandbox-compose/issues/2
test-sandbox-compose = dontCheck super . test-sandbox-compose ;
2018-03-20 12:34:06 +00:00
# Test suite won't compile against tasty-hunit 0.10.x.
2018-12-08 21:17:40 +00:00
binary-parsers = dontCheck super . binary-parsers ;
2020-07-29 13:44:14 +00:00
2021-05-08 15:32:54 +00:00
# https://github.com/ndmitchell/shake/issues/804
shake = dontCheck super . shake ;
2015-01-17 19:54:31 +00:00
2015-05-03 18:34:10 +00:00
# https://github.com/nushio3/doctest-prop/issues/1
doctest-prop = dontCheck super . doctest-prop ;
2018-07-23 23:42:43 +00:00
# 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-09 03:36:01 +00:00
# (if pkgs.stdenv.buildPlatform != pkgs.stdenv.hostPlatform
2018-07-23 23:42:43 +00:00
# then self.buildHaskellPackages.doctest-discover
# else dontCheck super.doctest-discover);
doctest-discover = dontCheck super . doctest-discover ;
2022-11-24 14:29:04 +00:00
# Test suite is missing an import from hspec
# https://github.com/haskell-works/tasty-discover/issues/9
# https://github.com/commercialhaskell/stackage/issues/6584#issuecomment-1326522815
tasty-discover = assert super . tasty-discover . version == " 4 . 2 . 2 " ; dontCheck super . tasty-discover ;
2017-01-24 10:57:09 +00:00
2021-01-14 16:33:46 +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-06-25 04:08:15 +00:00
# Waiting on https://github.com/RaphaelJ/friday/pull/36
2019-01-05 04:08:53 +00:00
friday = doJailbreak super . friday ;
2015-05-15 17:39:45 +00:00
# Won't compile with recent versions of QuickCheck.
2015-07-22 13:11:04 +00:00
inilist = dontCheck super . inilist ;
2020-02-28 19:28:01 +00:00
2015-05-18 10:29:10 +00:00
# https://github.com/yaccz/saturnin/issues/3
Saturnin = dontCheck super . Saturnin ;
2015-05-21 09:47:34 +00:00
# https://github.com/kkardzis/curlhs/issues/6
curlhs = dontCheck super . curlhs ;
2023-01-18 19:23:11 +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 ;
2015-05-22 09:31:26 +00:00
# https://github.com/hvr/token-bucket/issues/3
token-bucket = dontCheck super . token-bucket ;
2015-05-23 13:16:31 +00:00
# https://github.com/alphaHeavy/lzma-enumerator/issues/3
lzma-enumerator = dontCheck super . lzma-enumerator ;
2015-05-29 09:15:24 +00:00
# FPCO's fork of Cabal won't succeed its test suite.
Cabal-ide-backend = dontCheck super . Cabal-ide-backend ;
2015-06-11 09:11:15 +00:00
# This package can't be built on non-Windows systems.
2021-10-26 10:20:34 +00:00
Win32 = overrideCabal ( drv : { broken = ! pkgs . stdenv . isCygwin ; } ) super . Win32 ;
2015-06-11 09:11:15 +00:00
inline-c-win32 = dontDistribute super . inline-c-win32 ;
2015-07-23 18:33:26 +00:00
Southpaw = dontDistribute super . Southpaw ;
2015-06-11 09:11:15 +00:00
2015-07-05 18:58:34 +00:00
# Hydra no longer allows building texlive packages.
lhs2tex = dontDistribute super . lhs2tex ;
2015-07-21 09:15:26 +00:00
# https://ghc.haskell.org/trac/ghc/ticket/9825
2021-10-26 10:20:34 +00:00
vimus = overrideCabal ( drv : { broken = pkgs . stdenv . isLinux && pkgs . stdenv . isi686 ; } ) super . vimus ;
2015-07-22 17:43:01 +00:00
2015-08-06 12:26:18 +00:00
# https://github.com/kazu-yamamoto/logger/issues/42
logger = dontCheck super . logger ;
2017-10-16 11:08:10 +00:00
# vector dependency < 0.12
imagemagick = doJailbreak super . imagemagick ;
2015-08-06 17:00:53 +00:00
2015-08-07 17:53:16 +00:00
# https://github.com/liyang/thyme/issues/36
thyme = dontCheck super . thyme ;
2015-08-14 15:38:57 +00:00
# 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 ;
2020-04-20 13:17:49 +00:00
# https://github.com/Euterpea/Euterpea2/issues/40
2021-05-20 07:56:42 +00:00
Euterpea = doJailbreak super . Euterpea ;
2020-04-20 13:17:49 +00:00
2020-01-31 20:38:10 +00:00
# Install icons, metadata and cli program.
2023-03-24 17:57:43 +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-01-31 20:38:10 +00:00
buildDepends = [ pkgs . libpcap ] ;
buildTools = with pkgs . buildPackages ; [ gettext perl help2man ] ;
postInstall = ''
make install PREFIX = $ out
'' ;
2023-03-24 17:57:43 +00:00
} ) super . bustle ) ;
2017-12-16 21:37:47 +00:00
2015-08-17 23:21:18 +00:00
# Byte-compile elisp code for Emacs.
2021-10-26 10:20:34 +00:00
ghc-mod = overrideCabal ( drv : {
2015-08-17 23:21:18 +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-19 20:12:32 +00:00
executableToolDepends = drv . executableToolDepends or [ ] ++ [ pkgs . buildPackages . emacs ] ;
2015-08-17 23:21:18 +00:00
postInstall = ''
2022-03-31 10:53:40 +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 " )
2015-08-17 23:21:18 +00:00
make - C $ lispdir
2017-07-11 12:44:41 +00:00
mkdir - p $ data/share/emacs/site-lisp
ln - s " $ l i s p d i r / " * . el { , c } $ data/share/emacs/site-lisp /
2015-08-17 23:21:18 +00:00
'' ;
2021-10-26 10:20:34 +00:00
} ) super . ghc-mod ;
2015-08-17 23:21:18 +00:00
2022-03-19 23:51:45 +00:00
# 2022-03-20: descriptive is unmaintained since 2018 and archived on github.com
2022-03-19 23:19:27 +00:00
# It does not support aeson 2.0
descriptive = super . descriptive . override { aeson = self . aeson_1_5_6_0 ; } ;
2022-03-19 23:51:45 +00:00
# 2022-03-19: Testsuite is failing: https://github.com/puffnfresh/haskell-jwt/issues/2
jwt = dontCheck super . jwt ;
2017-12-14 11:59:23 +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-10-26 10:20:34 +00:00
structured-haskell-mode = overrideCabal ( drv : {
2017-08-01 13:35:44 +00:00
src = pkgs . fetchFromGitHub {
2019-12-27 17:42:56 +00:00
owner = " p r o j e c t i o n a l - h a s k e l l " ;
2017-08-01 13:35:44 +00:00
repo = " s t r u c t u r e d - h a s k e l l - m o d e " ;
2018-07-10 14:11:19 +00:00
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 " ;
2017-08-01 13:35:44 +00:00
} ;
2018-07-10 14:11:19 +00:00
version = " 2 0 1 7 0 2 0 5 - g i t " ;
2017-08-01 13:35:44 +00:00
editedCabalFile = null ;
2016-09-26 06:41:04 +00:00
# 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.
2015-08-17 23:21:53 +00:00
postInstall = ''
2022-03-31 10:53:40 +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 " )
2017-08-01 13:24:20 +00:00
mkdir - p $ data/share/emacs
ln - s $ lispdir $ data/share/emacs/site-lisp
2015-08-17 23:21:53 +00:00
'' ;
2021-10-26 10:20:34 +00:00
} ) super . structured-haskell-mode ;
2015-08-17 23:21:53 +00:00
2017-08-01 13:24:57 +00:00
# Make elisp files available at a location where people expect it.
2021-10-26 10:20:34 +00:00
hindent = ( overrideCabal ( drv : {
2016-09-26 06:41:42 +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.
2015-08-18 10:59:36 +00:00
postInstall = ''
2022-03-31 10:53:40 +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 " )
2017-08-01 13:24:57 +00:00
mkdir - p $ data/share/emacs
ln - s $ lispdir $ data/share/emacs/site-lisp
2015-08-18 10:59:36 +00:00
'' ;
2016-09-19 15:04:52 +00:00
doCheck = false ; # https://github.com/chrisdone/hindent/issues/299
2021-10-26 10:20:34 +00:00
} ) super . hindent ) ;
2015-08-18 10:59:36 +00:00
2015-08-28 12:23:57 +00:00
# https://github.com/basvandijk/concurrent-extra/issues/12
concurrent-extra = dontCheck super . concurrent-extra ;
2022-12-19 11:13:56 +00:00
bloomfilter = appendPatches [
# https://github.com/bos/bloomfilter/issues/7
./patches/bloomfilter-fix-on-32bit.patch
# Fix build with GHC >= 9.2 by using stock unsafeShift* functions
# https://github.com/bos/bloomfilter/pull/20
( pkgs . fetchpatch {
name = " b l o o m f i l t e r - g h c - 9 . 2 - s h i f t . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / b o s / b l o o m f i l t e r / p u l l / 2 0 / c o m m i t s / f b 7 9 b 3 9 c 4 4 4 0 4 f d 7 9 1 a 3 b e d 9 7 3 e 9 d 8 4 4 f b 0 8 4 f 1 e . p a t c h " ;
sha256 = " 0 c l m r 5 i a r 4 m h p 8 n b g h 1 c 1 r h 4 f l 7 d y 0 g 2 k b q q h 0 a f 8 a q m h j p q z r q 3 " ;
} )
] ( overrideCabal ( drv : {
# Make sure GHC 9.2 patch applies correctly
revision = null ;
editedCabalFile = null ;
prePatch = drv . prePatch or " " + ''
" ${ pkgs . buildPackages . dos2unix } / b i n / d o s 2 u n i x " * . cabal
'' ;
} ) super . bloomfilter ) ;
2015-09-01 16:01:34 +00:00
2015-09-03 12:38:52 +00:00
# https://github.com/pxqr/base32-bytestring/issues/4
base32-bytestring = dontCheck super . base32-bytestring ;
2019-01-01 06:30:43 +00:00
# Djinn's last release was 2014, incompatible with Semigroup-Monoid Proposal
# https://github.com/augustss/djinn/pull/8
2022-03-24 18:19:57 +00:00
djinn = appendPatch ( fetchpatch {
2020-04-01 01:11:51 +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 " ;
2019-01-01 06:30:43 +00:00
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-10-26 10:20:34 +00:00
} ) super . djinn ;
2019-01-01 06:30:43 +00:00
2015-09-18 07:59:08 +00:00
# We cannot build this package w/o the C library from <http://www.phash.org/>.
phash = markBroken super . phash ;
2016-09-10 18:59:45 +00:00
# https://github.com/Philonous/hs-stun/pull/1
# Remove if a version > 0.1.0.1 ever gets released.
2021-10-26 10:20:34 +00:00
stunclient = overrideCabal ( drv : {
2016-08-11 15:41:06 +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-10-26 10:20:34 +00:00
} ) super . stunclient ;
2016-08-11 15:41:06 +00:00
2021-09-21 07:51:17 +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-10-26 10:20:34 +00:00
newer = overrideSrc {
2021-09-21 07:51:17 +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-10-26 10:20:34 +00:00
} super . d-bus ;
2021-09-21 07:51:17 +00:00
# Add now required extension on recent compilers.
# https://github.com/Philonous/d-bus/pull/23
2022-03-24 18:19:57 +00:00
in appendPatch ( fetchpatch {
2021-09-21 07:51:17 +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-10-26 10:20:34 +00:00
} ) newer ;
2021-09-21 07:51:17 +00:00
2021-02-22 21:39:15 +00:00
# * The standard libraries are compiled separately.
2023-01-06 10:32:47 +00:00
# * We need a patch from master to fix compilation with
2021-02-22 21:39:15 +00:00
# updated dependencies (haskeline and megaparsec) which can be
2023-01-06 10:32:47 +00:00
# removed when the next idris release comes around.
2022-09-09 18:33:20 +00:00
idris = self . generateOptparseApplicativeCompletions [ " i d r i s " ]
2023-01-06 10:32:47 +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 ) ) ) ;
2016-09-10 20:00:45 +00:00
2022-12-30 10:57:16 +00:00
# Too strict bound on hspec
# https://github.com/lspitzner/multistate/issues/9#issuecomment-1367853016
multistate = doJailbreak super . multistate ;
2016-09-17 17:49:38 +00:00
# https://github.com/pontarius/pontarius-xmpp/issues/105
pontarius-xmpp = dontCheck super . pontarius-xmpp ;
2017-03-22 00:25:47 +00:00
# fails with sandbox
yi-keymap-vim = dontCheck super . yi-keymap-vim ;
2016-10-05 19:06:39 +00:00
# https://github.com/bmillwood/applicative-quoters/issues/6
applicative-quoters = doJailbreak super . applicative-quoters ;
2016-10-29 14:58:35 +00:00
# https://hydra.nixos.org/build/42769611/nixlog/1/raw
# note: the library is unmaintained, no upstream issue
dataenc = doJailbreak super . dataenc ;
2016-11-02 15:22:29 +00:00
# horribly outdated (X11 interface changed a lot)
sindre = markBroken super . sindre ;
2016-11-07 07:25:33 +00:00
# Test suite occasionally runs for 1+ days on Hydra.
distributed-process-tests = dontCheck super . distributed-process-tests ;
2016-11-09 07:42:38 +00:00
# https://github.com/mulby/diff-parse/issues/9
diff-parse = doJailbreak super . diff-parse ;
2017-01-28 09:56:01 +00:00
# No upstream issue tracker
hspec-expectations-pretty-diff = dontCheck super . hspec-expectations-pretty-diff ;
2017-02-12 12:59:12 +00:00
# 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 ;
2017-10-16 11:08:10 +00:00
# The tests spuriously fail
libmpd = dontCheck super . libmpd ;
2017-03-01 16:25:17 +00:00
2021-10-28 11:52:35 +00:00
# https://github.com/xu-hao/namespace/issues/1
namespace = doJailbreak super . namespace ;
2017-03-08 16:18:18 +00:00
# https://github.com/danidiaz/streaming-eversion/issues/1
streaming-eversion = dontCheck super . streaming-eversion ;
2017-03-13 11:27:08 +00:00
2017-03-31 09:15:17 +00:00
# https://github.com/danidiaz/tailfile-hinotify/issues/2
2022-11-27 02:48:59 +00:00
tailfile-hinotify = doJailbreak ( dontCheck super . tailfile-hinotify ) ;
2017-05-26 18:32:39 +00:00
2017-06-16 11:34:17 +00:00
# Test suite fails: https://github.com/lymar/hastache/issues/46.
# Don't install internal mkReadme tool.
2021-10-26 10:20:34 +00:00
hastache = overrideCabal ( drv : {
2017-06-16 11:34:17 +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-10-26 10:20:34 +00:00
} ) super . hastache ;
2017-06-16 11:34:17 +00:00
2017-07-18 14:50:20 +00:00
# Has a dependency on outdated versions of directory.
cautious-file = doJailbreak ( dontCheck super . cautious-file ) ;
2017-08-08 18:56:31 +00:00
# missing dependencies: blaze-html >=0.5 && <0.9, blaze-markup >=0.5 && <0.8
digestive-functors-blaze = doJailbreak super . digestive-functors-blaze ;
2017-10-16 11:08:10 +00:00
digestive-functors = doJailbreak super . digestive-functors ;
2017-08-08 18:56:31 +00:00
2019-05-02 08:17:09 +00:00
# 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-10-26 10:20:34 +00:00
cryptol = overrideCabal ( drv : {
2021-06-19 20:12:32 +00:00
buildTools = drv . buildTools or [ ] ++ [ pkgs . buildPackages . makeWrapper ] ;
2019-04-02 22:39:53 +00:00
postInstall = drv . postInstall or " " + ''
for b in $ out/bin/cryptol $ out/bin/cryptol-html ; do
2022-03-24 18:19:57 +00:00
wrapProgram $ b - - prefix ' PATH' ' : ' " ${ lib . getBin pkgs . z3 } / b i n "
2019-04-02 22:39:53 +00:00
done
'' ;
2021-10-26 10:20:34 +00:00
} ) super . cryptol ;
2017-09-14 12:53:47 +00:00
2017-10-16 11:08:10 +00:00
# Tests try to invoke external process and process == 1.4
2017-09-10 09:17:24 +00:00
grakn = dontCheck ( doJailbreak super . grakn ) ;
2017-09-10 10:09:23 +00:00
2017-09-22 04:50:11 +00:00
# test suite requires git and does a bunch of git operations
2020-06-28 18:21:40 +00:00
restless-git = dontCheck super . restless-git ;
2017-09-28 10:27:19 +00:00
2022-04-21 19:23:33 +00:00
# requires git at test-time *and* runtime, but we'll just rely on users to
# bring their own git at runtime
sensei = overrideCabal ( drv : {
2022-09-20 00:10:05 +00:00
testHaskellDepends = drv . testHaskellDepends or [ ] ++ [ self . hspec-meta_2_10_5 ] ;
2022-04-21 19:23:33 +00:00
testToolDepends = drv . testToolDepends or [ ] ++ [ pkgs . git ] ;
2022-06-01 12:22:00 +00:00
} ) ( super . sensei . override {
2023-01-29 11:10:44 +00:00
hspec = self . hspec_2_10_9 ;
2023-02-13 09:40:20 +00:00
hspec-wai = self . hspec-wai . override {
2023-01-29 11:10:44 +00:00
hspec = self . hspec_2_10_9 ;
2022-06-01 12:22:00 +00:00
} ;
2023-02-13 09:40:20 +00:00
hspec-contrib = self . hspec-contrib . override {
hspec-core = self . hspec-core_2_10_9 ;
} ;
fsnotify = self . fsnotify_0_4_1_0 ;
2022-06-01 12:22:00 +00:00
} ) ;
2022-04-21 19:23:33 +00:00
2017-10-17 09:52:02 +00:00
# Depends on broken fluid.
fluid-idl-http-client = markBroken super . fluid-idl-http-client ;
2017-10-18 07:53:07 +00:00
fluid-idl-scotty = markBroken super . fluid-idl-scotty ;
2017-10-17 09:52:02 +00:00
2018-04-28 10:43:19 +00:00
# Work around https://github.com/haskell/c2hs/issues/192.
c2hs = dontCheck super . c2hs ;
2017-11-10 18:26:24 +00:00
2017-12-04 22:29:47 +00:00
# Needs pginit to function and pgrep to verify.
2021-10-26 10:20:34 +00:00
tmp-postgres = overrideCabal ( drv : {
2021-08-01 16:34:16 +00:00
# Flaky tests: https://github.com/jfischoff/tmp-postgres/issues/274
doCheck = false ;
2021-06-20 21:51:37 +00:00
preCheck = ''
export HOME = " $ T M P D I R "
'' + ( d r v . p r e C h e c k o r " " ) ;
2021-06-19 20:12:32 +00:00
libraryToolDepends = drv . libraryToolDepends or [ ] ++ [ pkgs . buildPackages . postgresql ] ;
2017-12-04 22:29:47 +00:00
testToolDepends = drv . testToolDepends or [ ] ++ [ pkgs . procps ] ;
2021-10-26 10:20:34 +00:00
} ) super . tmp-postgres ;
2017-12-11 13:33:32 +00:00
2017-12-19 21:11:13 +00:00
# Needs QuickCheck <2.10, which we don't have.
2017-12-19 20:59:01 +00:00
edit-distance = doJailbreak super . edit-distance ;
2017-12-19 21:49:40 +00:00
int-cast = doJailbreak super . int-cast ;
2017-12-19 20:59:01 +00:00
2017-12-20 12:17:19 +00:00
# Needs QuickCheck <2.10, HUnit <1.6 and base <4.10
pointfree = doJailbreak super . pointfree ;
2017-12-19 21:03:14 +00:00
# Needs tasty-quickcheck ==0.8.*, which we don't have.
2018-01-17 16:18:16 +00:00
gitHUD = dontCheck super . gitHUD ;
2018-11-19 14:33:29 +00:00
githud = dontCheck super . githud ;
2017-12-19 21:03:14 +00:00
2017-10-16 11:08:10 +00:00
# Test suite fails due to trying to create directories
path-io = dontCheck super . path-io ;
2017-12-19 22:29:20 +00:00
# Duplicate instance with smallcheck.
store = dontCheck super . store ;
2017-12-20 14:00:20 +00:00
# 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 ;
2017-12-22 17:48:07 +00:00
# https://github.com/alphaHeavy/protobuf/issues/34
protobuf = dontCheck super . protobuf ;
2017-12-22 18:54:01 +00:00
2021-05-08 11:55:59 +00:00
# jailbreak tasty < 1.2 until servant-docs > 0.11.3 is on hackage.
2020-08-19 09:16:17 +00:00
snap-templates = doJailbreak super . snap-templates ; # https://github.com/snapframework/snap-templates/issues/22
2017-10-16 11:08:10 +00:00
2018-01-26 18:31:37 +00:00
# Copy hledger man pages from data directory into the proper place. This code
# should be moved into the cabal2nix generator.
2021-10-26 10:20:34 +00:00
hledger = overrideCabal ( drv : {
2018-01-26 18:31:37 +00:00
postInstall = ''
2019-02-21 11:09:50 +00:00
# Don't install files that don't belong into this package to avoid
# conflicts when hledger and hledger-ui end up in the same profile.
rm embeddedfiles/hledger- { api , ui , web } . *
2018-01-26 18:31:37 +00:00
for i in $ ( seq 1 9 ) ; do
2018-04-01 09:42:53 +00:00
for j in embeddedfiles /* . $ i ; d o
2018-01-26 18:31:37 +00:00
mkdir - p $ out/share/man/man $ i
2018-04-01 09:42:53 +00:00
cp - v $ j $ out/share/man/man $ i /
2018-01-26 18:31:37 +00:00
done
done
2018-02-06 01:07:39 +00:00
mkdir - p $ out/share/info
2018-04-01 09:42:53 +00:00
cp - v embeddedfiles /* . i n f o * $ o u t / s h a r e / i n f o /
2018-01-26 18:31:37 +00:00
'' ;
2021-10-26 10:20:34 +00:00
} ) super . hledger ;
hledger-ui = overrideCabal ( drv : {
2018-01-26 18:31:37 +00:00
postInstall = ''
for i in $ ( seq 1 9 ) ; do
2018-04-01 09:42:53 +00:00
for j in * . $ i ; do
2018-01-26 18:31:37 +00:00
mkdir - p $ out/share/man/man $ i
2018-04-01 09:42:53 +00:00
cp - v $ j $ out/share/man/man $ i /
2018-01-26 18:31:37 +00:00
done
done
2018-02-06 01:07:39 +00:00
mkdir - p $ out/share/info
2018-04-01 09:42:53 +00:00
cp - v * . info * $ out/share/info /
2018-07-09 23:23:50 +00:00
'' ;
2021-10-26 10:20:34 +00:00
} ) super . hledger-ui ;
hledger-web = overrideCabal ( drv : {
2020-12-18 19:17:45 +00:00
preCheck = " e x p o r t H O M E = $ T M P D I R " ;
2018-01-26 18:31:37 +00:00
postInstall = ''
for i in $ ( seq 1 9 ) ; do
2018-04-01 09:42:53 +00:00
for j in * . $ i ; do
2018-01-26 18:31:37 +00:00
mkdir - p $ out/share/man/man $ i
2018-04-01 09:42:53 +00:00
cp - v $ j $ out/share/man/man $ i /
2018-01-26 18:31:37 +00:00
done
done
2018-02-06 01:07:39 +00:00
mkdir - p $ out/share/info
2018-04-01 09:42:53 +00:00
cp - v * . info * $ out/share/info /
2018-01-26 18:31:37 +00:00
'' ;
2021-10-26 10:20:34 +00:00
} ) super . hledger-web ;
2018-01-26 18:31:37 +00:00
2018-03-26 20:13:46 +00:00
2019-09-02 13:19:40 +00:00
# https://github.com/haskell-hvr/resolv/pull/6
2019-08-28 15:38:36 +00:00
resolv_0_1_1_2 = dontCheck super . resolv_0_1_1_2 ;
2018-03-29 10:32:15 +00:00
2018-04-02 18:00:43 +00:00
# The test suite does not know how to find the 'alex' binary.
2021-10-26 10:20:34 +00:00
alex = overrideCabal ( drv : {
2018-07-04 11:18:21 +00:00
testSystemDepends = ( drv . testSystemDepends or [ ] ) ++ [ pkgs . which ] ;
2018-04-02 18:00:43 +00:00
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-10-26 10:20:34 +00:00
} ) super . alex ;
2018-04-02 18:00:43 +00:00
2018-04-19 09:23:20 +00:00
# This package refers to the wrong library (itself in fact!)
vulkan = super . vulkan . override { vulkan = pkgs . vulkan-loader ; } ;
2018-04-20 15:51:07 +00:00
2020-11-04 06:21:32 +00:00
# Compiles some C or C++ source which requires these headers
2021-10-26 10:20:34 +00:00
VulkanMemoryAllocator = addExtraLibrary pkgs . vulkan-headers super . VulkanMemoryAllocator ;
2022-12-08 02:21:44 +00:00
# dontCheck can be removed on the next package set bump
vulkan-utils = dontCheck ( addExtraLibrary pkgs . vulkan-headers super . vulkan-utils ) ;
2020-05-29 11:07:34 +00:00
2018-04-25 11:47:39 +00:00
# https://github.com/dmwit/encoding/pull/3
2021-10-26 10:20:34 +00:00
encoding = doJailbreak ( appendPatch ./patches/encoding-Cabal-2.0.patch super . encoding ) ;
2018-04-25 11:47:39 +00:00
2018-05-07 11:26:42 +00:00
# Work around overspecified constraint on github ==0.18.
github-backup = doJailbreak super . github-backup ;
2020-11-21 16:33:21 +00:00
# dontCheck: https://github.com/haskell-servant/servant-auth/issues/113
# doJailbreak: waiting on revision 1 to hit hackage
servant-auth-client = doJailbreak ( dontCheck super . servant-auth-client ) ;
2022-03-08 11:45:47 +00:00
servant-auth-server = doJailbreak super . servant-auth-server ;
2018-07-25 08:02:22 +00:00
2020-07-24 18:31:14 +00:00
# Generate cli completions for dhall.
2022-09-09 18:33:20 +00:00
dhall = self . generateOptparseApplicativeCompletions [ " d h a l l " ] super . dhall ;
2021-01-08 11:14:33 +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-09-09 18:33:20 +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-11-30 20:29:56 +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-09-09 18:33:20 +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-11-30 20:30:14 +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 ) ;
2018-07-09 23:23:50 +00:00
2022-11-26 03:07:50 +00:00
stack = self . generateOptparseApplicativeCompletions [ " s t a c k " ] super . stack ;
2018-07-10 18:03:13 +00:00
2022-02-23 12:23:19 +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 ) ;
2018-07-12 03:32:30 +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-02-26 21:28:19 +00:00
2022-11-21 13:48:39 +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-06 13:56:35 +00:00
# hslua has tests that break when using musl.
2021-12-14 05:02:24 +00:00
# https://github.com/hslua/hslua/issues/106
2023-02-06 13:56:35 +00:00
hslua-core = if pkgs . stdenv . hostPlatform . isMusl then dontCheck super . hslua-core else super . hslua-core ;
2021-12-14 05:02:24 +00:00
2023-02-18 17:16:49 +00:00
# Missing files required by the test suite.
# https://github.com/deemp/flakes/issues/4
lima = dontCheck super . lima ;
2021-02-26 21:28:19 +00:00
# The test suite runs for 20+ minutes on a very fast machine, which feels kinda disproportionate.
prettyprinter = dontCheck super . prettyprinter ;
2018-07-14 04:39:17 +00:00
# Fix with Cabal 2.2, https://github.com/guillaume-nargeot/hpc-coveralls/pull/73
2022-03-24 18:19:57 +00:00
hpc-coveralls = appendPatch ( fetchpatch {
2018-07-14 04:39:17 +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-10-26 10:20:34 +00:00
} ) super . hpc-coveralls ;
2018-07-24 00:32:00 +00:00
2018-08-09 18:15:20 +00:00
# sexpr is old, broken and has no issue-tracker. Let's fix it the best we can.
2021-10-26 10:20:34 +00:00
sexpr = appendPatch ./patches/sexpr-0.2.1.patch
( overrideCabal ( drv : {
2018-08-03 00:00:47 +00:00
isExecutable = false ;
libraryHaskellDepends = drv . libraryHaskellDepends ++ [ self . QuickCheck ] ;
2021-10-26 10:20:34 +00:00
} ) super . sexpr ) ;
2018-08-09 18:15:20 +00:00
2018-08-17 13:02:24 +00:00
# https://github.com/haskell/hoopl/issues/50
hoopl = dontCheck super . hoopl ;
2018-08-17 13:25:35 +00:00
2020-08-24 17:47:16 +00:00
# Generate shell completion for spago
2022-09-09 18:33:20 +00:00
spago = self . generateOptparseApplicativeCompletions [ " s p a g o " ] super . spago ;
2020-08-24 17:47:16 +00:00
2020-06-24 19:43:54 +00:00
# https://github.com/DanielG/cabal-helper/pull/123
2018-10-19 08:27:12 +00:00
cabal-helper = doJailbreak super . cabal-helper ;
2018-11-19 14:44:32 +00:00
# TODO(Profpatsch): factor out local nix store setup from
# lib/tests/release.nix and use that for the tests of libnix
2021-10-26 10:20:34 +00:00
# libnix = overrideCabal (old: {
2018-11-19 14:44:32 +00:00
# testToolDepends = old.testToolDepends or [] ++ [ pkgs.nix ];
2021-10-26 10:20:34 +00:00
# }) super.libnix;
2018-11-19 14:44:32 +00:00
libnix = dontCheck super . libnix ;
2020-06-22 18:09:37 +00:00
# dontCheck: The test suite tries to mess with ALSA, which doesn't work in the build sandbox.
2020-06-28 15:28:31 +00:00
xmobar = dontCheck super . xmobar ;
2018-12-04 11:17:13 +00:00
2018-12-05 19:45:32 +00:00
# https://github.com/mgajda/json-autotype/issues/25
json-autotype = dontCheck super . json-autotype ;
2019-04-30 11:22:14 +00:00
# Requires pg_ctl command during tests
2021-10-26 10:20:34 +00:00
beam-postgres = overrideCabal ( drv : {
2022-10-29 16:42:59 +00:00
# https://github.com/NixOS/nixpkgs/issues/198495
doCheck = pkgs . postgresql . doCheck ;
2019-04-30 11:22:14 +00:00
testToolDepends = ( drv . testToolDepends or [ ] ) ++ [ pkgs . postgresql ] ;
2021-10-26 10:20:34 +00:00
} ) super . beam-postgres ;
2019-02-04 12:04:06 +00:00
2018-12-30 09:31:42 +00:00
# Fix for base >= 4.11
2021-10-26 10:20:34 +00:00
scat = overrideCabal ( drv : {
2022-03-24 18:19:57 +00:00
patches = [ ( fetchpatch {
2018-12-30 09:31:42 +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-10-26 10:20:34 +00:00
} ) super . scat ;
2018-12-30 09:31:42 +00:00
2019-03-09 16:37:46 +00:00
# Fix build with attr-2.4.48 (see #53716)
2021-10-26 10:20:34 +00:00
xattr = appendPatch ./patches/xattr-fix-build.patch super . xattr ;
2019-03-09 16:37:46 +00:00
2022-12-19 10:33:45 +00:00
patch = dontCheck super . patch ;
2022-04-16 15:37:13 +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-10-29 16:42:59 +00:00
# https://github.com/NixOS/nixpkgs/issues/198495
doCheck = pkgs . postgresql . doCheck ;
2022-04-16 15:37:13 +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 ;
2019-05-02 18:14:15 +00:00
2019-05-23 13:35:13 +00:00
# Requires API keys to run tests
algolia = dontCheck super . algolia ;
# 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 ;
2019-06-01 14:33:17 +00:00
# Test suite doesn't work with current QuickCheck
# https://github.com/pruvisto/heap/issues/11
heap = dontCheck super . heap ;
2019-06-13 20:05:51 +00:00
# Test suite won't link for no apparent reason.
constraints-deriving = dontCheck super . constraints-deriving ;
2019-08-21 19:29:03 +00:00
# https://github.com/elliottt/hsopenid/issues/15
openid = markBroken super . openid ;
2019-10-18 19:41:16 +00:00
# https://github.com/erikd/hjsmin/issues/32
hjsmin = dontCheck super . hjsmin ;
2019-11-06 19:08:44 +00:00
# Remove for hail > 0.2.0.0
2021-10-26 10:20:34 +00:00
hail = overrideCabal ( drv : {
2019-11-06 19:08:44 +00:00
patches = [
2022-03-24 18:19:57 +00:00
( fetchpatch {
2019-11-06 19:08:44 +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-03-24 18:19:57 +00:00
( fetchpatch {
2019-11-06 19:08:44 +00:00
# Relax dependency constraints,
2020-11-12 09:40:07 +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 " ;
2019-11-06 19:08:44 +00:00
} )
] ;
2021-10-26 10:20:34 +00:00
} ) super . hail ;
2019-11-06 19:08:44 +00:00
2019-11-29 19:57:30 +00:00
# https://github.com/kazu-yamamoto/dns/issues/150
dns = dontCheck super . dns ;
2019-12-27 19:34:14 +00:00
# https://github.com/haskell-servant/servant-ekg/issues/15
servant-ekg = doJailbreak super . servant-ekg ;
2020-02-06 10:50:47 +00:00
# the test suite has an overly tight restriction on doctest
2020-02-07 13:34:07 +00:00
# See https://github.com/ekmett/perhaps/pull/5
2020-02-06 10:50:47 +00:00
perhaps = doJailbreak super . perhaps ;
2020-02-08 19:52:00 +00:00
# it wants to build a statically linked binary by default
2021-10-26 10:20:34 +00:00
hledger-flow = overrideCabal ( drv : {
2020-02-08 19:52:00 +00:00
postPatch = ( drv . postPatch or " " ) + ''
substituteInPlace hledger-flow . cabal - - replace " - s t a t i c " " "
'' ;
2021-10-26 10:20:34 +00:00
} ) super . hledger-flow ;
2020-02-08 19:52:00 +00:00
2020-02-21 03:33:29 +00:00
# Chart-tests needs and compiles some modules from Chart itself
2021-10-26 10:20:34 +00:00
Chart-tests = overrideCabal ( old : {
2021-10-28 11:52:35 +00:00
# https://github.com/timbod7/haskell-chart/issues/233
jailbreak = true ;
2021-10-28 11:41:30 +00:00
preCheck = old . preCheck or " " + ''
2020-02-21 03:33:29 +00:00
tar - - one-top-level = ../chart - - strip-components = 1 - xf $ { self . Chart . src }
'' ;
2021-10-26 10:20:34 +00:00
} ) ( addExtraLibrary self . QuickCheck super . Chart-tests ) ;
2020-02-21 03:33:29 +00:00
2020-02-21 21:21:30 +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-04 15:48:25 +00:00
# 2021-10-04: too strict upper bound on Hakyll
hakyll-filestore = doJailbreak super . hakyll-filestore ;
2020-02-21 21:21:30 +00:00
2020-04-17 12:29:46 +00:00
# The test suite depends on an impure cabal-install installation in
2020-04-25 16:22:55 +00:00
# $HOME, which we don't have in our build sandbox.
2022-08-31 14:20:08 +00:00
# 2022-08-31: Jailbreak is done to allow aeson 2.0.*:
# https://github.com/haskell-CI/haskell-ci/commit/6ad0d5d701cbe101013335d597acaf5feadd3ab9#r82681900
2022-08-31 13:15:28 +00:00
cabal-install-parsers = doJailbreak ( dontCheck ( super . cabal-install-parsers . override {
Cabal-syntax = self . Cabal-syntax_3_8_1_0 ;
} ) ) ;
cabal-install-parsers_0_4_5 = doDistribute (
dontCheck (
super . cabal-install-parsers_0_4_5 . override {
Cabal = self . Cabal_3_6_3_0 ;
}
)
) ;
2020-03-06 21:11:33 +00:00
2022-03-12 18:42:58 +00:00
# 2022-03-12: Pick patches from master for compat with Stackage Nightly
2022-12-07 21:29:48 +00:00
# 2022-12-07: Lift bounds to allow dependencies shipped with LTS-20
# https://github.com/jgm/gitit/pull/683
2022-03-12 18:42:58 +00:00
gitit = appendPatches [
2022-03-24 18:19:57 +00:00
( fetchpatch {
2022-03-12 18:42:58 +00:00
name = " g i t i t - f i x - b u i l d - w i t h - h o a u t h 2 - 2 . 3 . 0 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / j g m / g i t i t / c o m m i t / f d 5 3 4 c 0 1 5 5 e e f 1 7 9 0 5 0 0 c 8 3 4 e 6 1 2 a b 2 2 c f 9 b 6 7 b 6 . p a t c h " ;
sha256 = " 0 h m l q k a v n 8 h r 0 b 4 y 4 h x s 1 y y g 0 r 7 9 y l k z h z w y 1 d z b b 3 a 2 q 8 6 y d d 2 f " ;
} )
2022-12-07 21:29:48 +00:00
] ( doJailbreak super . gitit ) ;
2020-06-08 10:00:27 +00:00
2020-04-04 19:42:07 +00:00
# Test suite requires database
2020-03-04 02:37:56 +00:00
persistent-mysql = dontCheck super . persistent-mysql ;
2022-04-16 15:39:19 +00:00
persistent-postgresql =
2023-02-13 14:05:16 +00:00
# TODO: move this override to configuration-nix.nix
2022-04-16 15:39:19 +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-13 14:05:16 +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-16 15:39:19 +00:00
preCheck = drv . preCheck or " " + ''
PGDATABASE = test
PGUSER = test
'' ;
testToolDepends = drv . testToolDepends or [ ] ++ [
pkgs . postgresql
pkgs . postgresqlTestHook
] ;
} )
super . persistent-postgresql ;
2020-03-04 02:37:56 +00:00
2023-02-12 15:14:25 +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-26 11:37:21 +00:00
# 2021-12-26: Too strict bounds on doctest
polysemy-plugin = doJailbreak super . polysemy-plugin ;
2020-04-03 01:09:34 +00:00
2023-02-01 20:53:47 +00:00
# hasn’ t bumped upper bounds
2020-05-07 17:43:28 +00:00
# upstream: https://github.com/obsidiansystems/which/pull/6
which = doJailbreak super . which ;
2022-09-20 00:49:35 +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-12-19 10:33:45 +00:00
jsaddle-webkit2gtk = overrideCabal ( old : {
postPatch = old . postPatch or " " + ''
sed - i ' s/bytestring. * 0.11/bytestring / ' jsaddle-webkit2gtk . cabal
'' ;
} ) super . jsaddle-webkit2gtk ;
2022-03-15 23:49:13 +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-19 10:33:45 +00:00
} ) ( doJailbreak super . jsaddle-dom ) ;
2022-03-15 23:49:13 +00:00
2020-06-13 21:01:44 +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-03-16 00:32:13 +00:00
# 2022-03-16: Pullrequest for ghc 9 compat https://github.com/reflex-frp/reflex-dom/pull/433
2022-12-19 10:33:45 +00:00
reflex-dom-core = overrideCabal ( old : {
postPatch = old . postPatch or " " + ''
sed - i ' s/template-haskell. * 2.17/template-haskell / ' reflex-dom-core . cabal
'' ;
2022-12-20 02:24:33 +00:00
} )
2022-12-19 10:33:45 +00:00
( ( appendPatches [
( 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 / 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 = " ;
relative = " r e f l e x - d o m - c o r e " ;
} )
2022-03-24 18:19:57 +00:00
( fetchpatch {
2022-12-19 10:33:45 +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 / 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 = " ;
2022-03-25 16:42:21 +00:00
relative = " r e f l e x - d o m - c o r e " ;
2022-03-16 00:32:13 +00:00
} )
2022-12-19 10:33:45 +00:00
]
( doDistribute ( unmarkBroken ( dontCheck ( doJailbreak super . reflex-dom-core ) ) ) ) ) ) ;
2020-11-18 23:17:36 +00:00
2020-06-22 19:40:20 +00:00
# Tests disabled because they assume to run in the whole jsaddle repo and not the hackage tarbal of jsaddle-warp.
2020-07-23 15:56:34 +00:00
jsaddle-warp = dontCheck super . jsaddle-warp ;
2020-06-22 19:40:20 +00:00
2020-06-23 22:21:29 +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 16:54:42 +00:00
# 2020-06-24: Tests are broken in hackage distribution.
# See: https://github.com/robstewart57/rdf4h/issues/39
rdf4h = dontCheck super . rdf4h ;
2020-07-03 18:47:17 +00:00
2020-06-25 12:23:09 +00:00
# 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-11-27 02:48:59 +00:00
monad-dijkstra = dontCheck super . monad-dijkstra ;
2020-06-25 12:23:09 +00:00
2020-08-28 18:27:35 +00:00
# Fixed upstream but not released to Hackage yet:
# https://github.com/k0001/hs-libsodium/issues/2
2021-10-26 10:20:34 +00:00
libsodium = overrideCabal ( drv : {
2021-06-19 20:12:32 +00:00
libraryToolDepends = ( drv . libraryToolDepends or [ ] ) ++ [ self . buildHaskellPackages . c2hs ] ;
2021-10-26 10:20:34 +00:00
} ) super . libsodium ;
2020-08-25 10:30:50 +00:00
2021-10-26 10:20:34 +00:00
svgcairo = appendPatches [
2021-10-21 17:30:26 +00:00
# Remove when https://github.com/gtk2hs/svgcairo/pull/12 goes in.
2022-03-24 18:19:57 +00:00
( fetchpatch {
2021-10-21 17:30:26 +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-03-24 18:19:57 +00:00
( fetchpatch {
2021-10-21 17:30:26 +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-10-26 10:20:34 +00:00
] super . svgcairo ;
2021-09-25 19:11:01 +00:00
2020-07-20 20:53:53 +00:00
# Upstream PR: https://github.com/jkff/splot/pull/9
2022-03-24 18:19:57 +00:00
splot = appendPatch ( fetchpatch {
2020-07-20 20:53:53 +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-10-26 10:20:34 +00:00
} ) super . splot ;
2020-07-23 13:22:23 +00:00
2021-08-04 11:04:41 +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-02 12:41:56 +00:00
haskeline_0_8_2_1 = doDistribute ( dontCheck super . haskeline_0_8_2_1 ) ;
2020-07-27 08:31:43 +00:00
2022-07-26 11:20:35 +00:00
# Too strict upper bound on HTF
# https://github.com/nikita-volkov/stm-containers/issues/29
stm-containers = doJailbreak super . stm-containers ;
2020-08-13 20:43:19 +00:00
2022-02-20 23:37:08 +00:00
# Test suite fails to compile https://github.com/agrafix/Spock/issues/177
Spock = dontCheck super . Spock ;
2022-02-20 23:44:31 +00:00
# https://github.com/strake/filtrable.hs/issues/6
filtrable = doJailbreak super . filtrable ;
2021-08-15 13:48:53 +00:00
# hasura packages need some extra care
2021-10-26 10:20:34 +00:00
graphql-engine = overrideCabal ( drv : {
2022-03-15 11:26:32 +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-10-26 10:20:34 +00:00
doHaddock = false ;
2022-03-15 11:26:32 +00:00
version = " 2 . 3 . 1 " ;
} ) ( super . graphql-engine . override {
2021-08-15 13:48:53 +00:00
immortal = self . immortal_0_2_2_1 ;
2021-08-17 06:58:54 +00:00
resource-pool = self . hasura-resource-pool ;
ekg-core = self . hasura-ekg-core ;
ekg-json = self . hasura-ekg-json ;
2021-08-22 01:24:21 +00:00
} ) ;
2022-03-15 11:26:32 +00:00
hasura-ekg-json = super . hasura-ekg-json . override {
ekg-core = self . hasura-ekg-core ;
} ;
2021-10-26 10:20:34 +00:00
pg-client = overrideCabal ( drv : {
2021-08-15 13:48:53 +00:00
librarySystemDepends = with pkgs ; [ postgresql krb5 . dev openssl . dev ] ;
2022-04-16 15:19:13 +00:00
testToolDepends = drv . testToolDepends or [ ] ++ [
pkgs . postgresql pkgs . postgresqlTestHook
] ;
2022-10-29 16:42:59 +00:00
# https://github.com/NixOS/nixpkgs/issues/198495
doCheck = pkgs . postgresql . doCheck ;
2022-04-16 15:19:13 +00:00
preCheck = drv . preCheck or " " + ''
# empty string means use default connection
export DATABASE_URL = " "
'' ;
2021-10-26 10:20:34 +00:00
} ) ( super . pg-client . override {
resource-pool = self . hasura-resource-pool ;
2022-03-15 11:26:32 +00:00
ekg-core = self . hasura-ekg-core ;
2021-08-15 13:48:53 +00:00
} ) ;
2020-08-13 20:43:19 +00:00
2021-10-26 10:20:34 +00:00
hcoord = overrideCabal ( drv : {
2020-07-19 11:46:41 +00:00
# Remove when https://github.com/danfran/hcoord/pull/8 is merged.
patches = [
2022-03-24 18:19:57 +00:00
( fetchpatch {
2020-07-19 11:46:41 +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-10-26 10:20:34 +00:00
} ) super . hcoord ;
2020-07-19 11:46:41 +00:00
2020-08-21 14:48:15 +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.
2020-08-27 13:38:39 +00:00
# So let's not go there and just disable the tests altogether.
2020-08-21 14:48:15 +00:00
hspec-core = dontCheck super . hspec-core ;
2020-08-21 11:07:06 +00:00
2022-11-26 03:01:14 +00:00
# tests seem to require a different version of hspec-core
hspec-contrib = dontCheck super . hspec-contrib ;
2020-08-27 13:19:25 +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-05 17:28:58 +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-08-16 18:33:47 +00:00
2020-11-06 06:31:00 +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-08 02:33:07 +00:00
# - Patch can be removed on next package set bump (for v0.2.11)
2020-11-06 06:31:00 +00:00
update-nix-fetchgit = let deps = [ pkgs . git pkgs . nix pkgs . nix-prefetch-git ] ;
2022-09-09 18:33:20 +00:00
in self . generateOptparseApplicativeCompletions [ " u p d a t e - n i x - f e t c h g i t " ] ( overrideCabal
2021-10-26 10:20:34 +00:00
( drv : {
2021-06-19 20:12:32 +00:00
buildTools = drv . buildTools or [ ] ++ [ pkgs . buildPackages . makeWrapper ] ;
2020-11-06 06:31:00 +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-03-24 18:19:57 +00:00
lib . makeBinPath deps
2020-11-06 06:31:00 +00:00
} "
'' ;
2022-12-17 09:29:48 +00:00
} ) ( addTestToolDepends deps super . update-nix-fetchgit ) ) ;
2022-03-20 16:05:21 +00:00
2022-03-01 14:42:34 +00:00
# Raise version bounds: https://github.com/idontgetoutmuch/binary-low-level/pull/16
binary-strict = appendPatches [
2022-03-24 18:19:57 +00:00
( fetchpatch {
2022-03-01 14:42:34 +00:00
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 ;
2022-09-20 00:49:35 +00:00
haskell-language-server = ( lib . pipe super . haskell-language-server [
2022-02-20 23:10:35 +00:00
dontCheck
2022-09-20 00:49:35 +00:00
( 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 …
2023-02-28 22:45:50 +00:00
# Allow hls-call-hierarchy >= 1.2 which requires only a bound adjustment
( appendPatch ( fetchpatch {
name = " h l s - a l l o w - h l s - c a l l - h i e r a r c h y - 1 . 2 . 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 / h a s k e l l - l a n g u a g e - s e r v e r / c o m m i t / 0 5 b 2 4 8 d f a c c 3 0 7 c 3 3 9 7 b 3 3 4 6 3 5 c b 3 8 2 9 8 a e e 9 5 6 3 . p a t c h " ;
includes = [ " h a s k e l l - l a n g u a g e - s e r v e r . c a b a l " ] ;
sha256 = " 1 v 0 z i 1 l v 9 2 p 6 x q 5 4 y w 9 s w z a f 2 4 d x s i 9 l p k 1 0 s n g g 3 k a 6 5 4 i k m 7 j 5 " ;
} ) )
2022-09-20 00:49:35 +00:00
] ) . overrideScope ( lself : lsuper : {
2022-10-27 21:53:43 +00:00
# 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 with have the same abi-hash, which can lead to confusions and conflicts.
ghc-paths = lsuper . ghc-paths . override { Cabal = null ; } ;
2022-09-21 04:06:28 +00:00
} ) ;
2022-12-30 16:21:48 +00:00
hls-hlint-plugin = super . hls-hlint-plugin . override {
2022-09-20 00:49:35 +00:00
# For "ghc-lib" flag see https://github.com/haskell/haskell-language-server/issues/3185#issuecomment-1250264515
2022-12-30 16:21:48 +00:00
hlint = enableCabalFlag " g h c - l i b " super . hlint ;
2023-02-02 12:45:03 +00:00
apply-refact = self . apply-refact_0_11_0_0 ;
2022-12-30 16:21:48 +00:00
} ;
2022-02-20 23:10:35 +00:00
2022-09-20 00:49:35 +00:00
# For -f-auto see cabal.project in haskell-language-server.
2022-11-24 13:13:14 +00:00
ghc-lib-parser-ex = addBuildDepend self . ghc-lib-parser ( disableCabalFlag " a u t o " super . ghc-lib-parser-ex ) ;
2022-02-20 23:10:35 +00:00
2021-05-07 23:04:00 +00:00
# 2021-05-08: Tests fail: https://github.com/haskell/haskell-language-server/issues/1809
hls-eval-plugin = dontCheck super . hls-eval-plugin ;
2021-06-20 19:56:34 +00:00
# 2021-06-20: Tests fail: https://github.com/haskell/haskell-language-server/issues/1949
hls-refine-imports-plugin = dontCheck super . hls-refine-imports-plugin ;
2021-03-19 12:41:58 +00:00
2021-11-20 01:54:04 +00:00
# 2021-11-20: https://github.com/haskell/haskell-language-server/pull/2373
hls-explicit-imports-plugin = dontCheck super . hls-explicit-imports-plugin ;
# 2021-11-20: https://github.com/haskell/haskell-language-server/pull/2374
hls-module-name-plugin = dontCheck super . hls-module-name-plugin ;
2022-09-20 00:49:35 +00:00
# 2022-09-19: https://github.com/haskell/haskell-language-server/issues/3200
hls-refactor-plugin = dontCheck super . hls-refactor-plugin ;
2022-11-27 02:48:59 +00:00
# tests require network
ghcide = dontCheck super . ghcide ;
2020-11-15 01:04:30 +00:00
2020-11-15 01:39:19 +00:00
# 2020-11-15: nettle tests are pre MonadFail change
# https://github.com/stbuehler/haskell-nettle/issues/10
nettle = dontCheck super . nettle ;
2020-11-16 23:56:13 +00:00
2020-11-18 11:33:04 +00:00
# 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 19:33:01 +00:00
# https://github.com/obsidiansystems/dependent-sum/issues/55
dependent-sum = doJailbreak super . dependent-sum ;
2022-06-19 19:41:21 +00:00
# 2022-06-19: Disable checks because of https://github.com/reflex-frp/reflex/issues/475
2022-12-19 10:33:45 +00:00
reflex = doJailbreak ( dontCheck super . reflex ) ;
2020-11-19 00:52: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 ) ;
2020-11-20 01:58:42 +00:00
2020-11-21 16:33:21 +00:00
# Due to tests restricting base in 0.8.0.0 release
http-media = doJailbreak super . http-media ;
2022-03-19 22:27:49 +00:00
# 2022-03-19: strict upper bounds https://github.com/poscat0x04/hinit/issues/2
2022-09-09 18:33:20 +00:00
hinit = doJailbreak
( self . generateOptparseApplicativeCompletions [ " h i " ]
2023-03-02 12:41:56 +00:00
( super . hinit . override { haskeline = self . haskeline_0_8_2_1 ; } ) ) ;
2021-02-15 12:43:31 +00:00
2020-11-25 03:51:57 +00:00
# 2020-11-23: https://github.com/Rufflewind/blas-hs/issues/8
blas-hs = dontCheck super . blas-hs ;
2022-06-01 09:55:04 +00:00
# Strange doctest problems
# https://github.com/biocad/servant-openapi3/issues/30
servant-openapi3 = dontCheck super . servant-openapi3 ;
2022-06-01 10:49:36 +00:00
# Give hspec 2.10.* correct dependency versions without overrideScope
2023-01-29 11:10:44 +00:00
hspec_2_10_9 = doDistribute ( super . hspec_2_10_9 . override {
hspec-discover = self . hspec-discover_2_10_9 ;
hspec-core = self . hspec-core_2_10_9 ;
2022-06-01 10:49:36 +00:00
} ) ;
2023-01-29 11:10:44 +00:00
hspec-discover_2_10_9 = super . hspec-discover_2_10_9 . override {
2022-09-20 00:10:05 +00:00
hspec-meta = self . hspec-meta_2_10_5 ;
2022-06-01 10:49:36 +00:00
} ;
2023-01-29 11:10:44 +00:00
hspec-core_2_10_9 = super . hspec-core_2_10_9 . override {
2022-09-20 00:10:05 +00:00
hspec-meta = self . hspec-meta_2_10_5 ;
2022-06-01 10:49:36 +00:00
} ;
2022-07-14 05:43:52 +00:00
# Point hspec 2.7.10 to correct dependencies
2022-12-30 19:38:53 +00:00
hspec_2_7_10 = super . hspec_2_7_10 . override {
2022-07-14 05:43:52 +00:00
hspec-discover = self . hspec-discover_2_7_10 ;
hspec-core = self . hspec-core_2_7_10 ;
2022-12-30 19:38:53 +00:00
} ;
2022-07-14 05:43:52 +00:00
2022-02-22 14:16:52 +00:00
# waiting for aeson bump
servant-swagger-ui-core = doJailbreak super . servant-swagger-ui-core ;
2022-11-03 03:23:26 +00:00
hercules-ci-agent = lib . pipe super . hercules-ci-agent [
2023-03-06 20:06:28 +00:00
( appendPatch ( fetchpatch {
name = " h e r c u l e s - c i - a g e n t - s u p p o r t - c a c h i x - 1 . 3 . 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 / h e r c u l e s - c i - a g e n t / p u l l / 5 0 0 . d i f f " ;
sha256 = " s h a 2 5 6 - E r r F v z B 1 N i I J L p s P 2 w f x 5 C X 8 D n H 1 x 5 i / i j Q Z E e u O z e I = " ;
relative = " h e r c u l e s - c i - a g e n t " ;
} ) )
2022-11-03 03:23:26 +00:00
( self . generateOptparseApplicativeCompletions [ " h e r c u l e s - c i - a g e n t " ] )
] ;
2020-11-27 16:32:13 +00:00
2022-03-08 13:13:12 +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 ;
2022-03-24 18:19:57 +00:00
hercules-ci-cli = lib . pipe super . hercules-ci-cli [
2021-11-14 15:35:29 +00:00
unmarkBroken
( overrideCabal ( drv : { hydraPlatforms = super . hercules-ci-cli . meta . platforms ; } ) )
2021-03-07 12:40:17 +00:00
# See hercules-ci-optparse-applicative in non-hackage-packages.nix.
2021-11-14 15:35:29 +00:00
( addBuildDepend super . hercules-ci-optparse-applicative )
2022-09-09 18:33:20 +00:00
( self . generateOptparseApplicativeCompletions [ " h c i " ] )
2021-11-14 15:35:29 +00:00
] ;
2021-03-07 12:40:17 +00:00
2022-03-21 20:36:26 +00:00
pipes-aeson = appendPatches [
# Dependency of the aeson-2 patch
2022-03-24 18:19:57 +00:00
( fetchpatch {
2022-03-21 20:36:26 +00:00
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
2022-03-24 18:19:57 +00:00
( fetchpatch {
2022-03-21 20:36:26 +00:00
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-10 16:17:56 +00:00
# Needs bytestring 0.11
# https://github.com/Gabriella439/Haskell-Pipes-HTTP-Library/pull/17
pipes-http = doJailbreak super . pipes-http ;
2022-03-21 20:49:34 +00:00
moto-postgresql = appendPatches [
# https://gitlab.com/k0001/moto/-/merge_requests/3
2022-03-24 18:19:57 +00:00
( fetchpatch {
2022-03-21 20:49:34 +00:00
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 " ;
2022-03-25 16:42:21 +00:00
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 = " ;
2022-03-21 20:49:34 +00:00
} )
] ( unmarkBroken super . moto-postgresql ) ;
2022-03-21 20:49:08 +00:00
moto = appendPatches [
# https://gitlab.com/k0001/moto/-/merge_requests/3
2022-03-24 18:19:57 +00:00
( fetchpatch {
2022-03-21 20:49:08 +00:00
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 " ;
2022-03-25 16:42:21 +00:00
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 = " ;
2022-03-21 20:49:08 +00:00
} )
] super . moto ;
2021-08-14 07:59:29 +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-10-26 10:20:34 +00:00
readline = appendPatch ./patches/readline-fix-for-cabal-3.patch super . readline ;
2021-08-14 07:59:29 +00:00
2021-09-11 07:39:35 +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-06 18:16:33 +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 ;
2020-12-18 10:27:36 +00:00
2022-03-19 23:39:39 +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-01 21:03:25 +00:00
# Break out of overspecified constraint on QuickCheck.
2021-01-02 18:28:14 +00:00
filepath-bytestring = doJailbreak super . filepath-bytestring ;
haddock-library = doJailbreak super . haddock-library ;
2021-01-05 04:04:06 +00:00
2022-11-20 14:50:17 +00:00
# Test suite has overly strict bounds on tasty, jailbreaking fails.
2021-01-08 16:32:47 +00:00
# https://github.com/input-output-hk/nothunks/issues/9
2022-11-20 14:50:17 +00:00
nothunks = dontCheck super . nothunks ;
2021-01-08 16:32:47 +00:00
2021-01-15 19:47:46 +00:00
# Allow building with older versions of http-client.
http-client-restricted = doJailbreak super . http-client-restricted ;
2021-02-11 11:58:49 +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-17 10:34:44 +00:00
2021-03-09 07:56:46 +00:00
# while waiting for a new release: https://github.com/brendanhay/amazonka/pull/572
2021-10-26 10:20:34 +00:00
amazonka = appendPatches [
2022-03-24 18:19:57 +00:00
( fetchpatch {
2022-03-25 16:42:21 +00:00
relative = " a m a z o n k a " ;
2021-03-09 08:27:11 +00:00
url = " h t t p s : / / g i t h u b . c o m / b r e n d a n h a y / a m a z o n k a / c o m m i t / 4 3 d d d 8 7 b 1 e b d 6 a f 7 5 5 b 1 6 6 e 1 6 3 3 6 2 5 9 e c 0 2 5 b 3 3 7 . p a t c h " ;
2022-03-25 16:42:21 +00:00
sha256 = " s h a 2 5 6 - 9 E d 3 q r L G R a N C d v q W M y g 8 y d A n q D k F q W K L L o O b v / 5 j G 5 4 = " ;
2021-03-09 07:56:46 +00:00
} )
2021-10-26 10:20:34 +00:00
] ( doJailbreak super . amazonka ) ;
2021-03-09 07:56:46 +00:00
2021-03-12 14:37:30 +00:00
# Test suite does not compile.
feed = dontCheck super . feed ;
2021-10-26 10:20:34 +00:00
spacecookie = overrideCabal ( old : {
2021-06-19 20:12:32 +00:00
buildTools = ( old . buildTools or [ ] ) ++ [ pkgs . buildPackages . installShellFiles ] ;
2021-03-16 22:45:18 +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-10-26 10:20:34 +00:00
} ) super . spacecookie ;
2021-03-16 22:45:18 +00:00
2021-03-18 23:51:55 +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-03-24 18:19:57 +00:00
( fetchpatch {
2021-03-18 23:51:55 +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-10-26 10:20:34 +00:00
} )
( dontCheck ( doJailbreak ( super . chatter . override { regex-tdfa-text = null ; } ) ) ) ;
2021-03-18 23:51:55 +00:00
# test suite doesn't compile anymore due to changed hunit/tasty APIs
fullstop = dontCheck super . fullstop ;
2021-03-19 19:45:51 +00:00
# https://github.com/jgm/pandoc/issues/7163
pandoc = dontCheck super . pandoc ;
2021-04-08 20:15:48 +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-03-19 17:26:14 +00:00
2021-03-23 10:29:33 +00:00
# Too strict version bounds on ansi-terminal
# https://github.com/kowainik/co-log/pull/218
co-log = doJailbreak super . co-log ;
2021-03-23 23:15:25 +00:00
# Test suite has a too strict bound on base
# https://github.com/jswebtools/language-ecmascript/pull/88
2022-11-27 19:18:23 +00:00
# Test suite doesn't compile anymore
language-ecmascript = dontCheck ( doJailbreak super . language-ecmascript ) ;
2021-03-23 23:15:25 +00:00
# Too strict bounds on containers
# https://github.com/jswebtools/language-ecmascript-analysis/issues/1
language-ecmascript-analysis = doJailbreak super . language-ecmascript-analysis ;
2021-03-23 23:16:43 +00:00
# Too strict bounds on optparse-applicative
# https://github.com/faylang/fay/pull/474
fay = doJailbreak super . fay ;
2021-03-22 22:59:23 +00:00
# Too strict version bounds on cryptonite.
# Issue reported upstream, no bug tracker url yet.
darcs = doJailbreak super . darcs ;
2021-12-26 22:03:40 +00:00
# Too strict verion bounds on cryptonite and github.
# PRs are merged, will be fixed next release or Hackage revision.
2021-12-14 04:27:03 +00:00
nix-thunk = appendPatches [
2022-03-24 18:19:57 +00:00
( fetchpatch {
2021-12-14 04:27:03 +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-03-24 18:19:57 +00:00
( fetchpatch {
2021-12-14 04:27:03 +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-03-27 23:54:31 +00:00
2021-03-20 11:21:56 +00:00
# list `modbus` in librarySystemDepends, correct to `libmodbus`
2022-11-27 02:48:59 +00:00
libmodbus = doJailbreak ( addExtraLibrary pkgs . libmodbus super . libmodbus ) ;
2021-03-20 11:21:56 +00:00
2021-04-02 11:07:26 +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 ;
2022-12-28 20:40:25 +00:00
# 2022-12-28: Too strict version bounds on bytestring
iconv = doJailbreak super . iconv ;
2021-04-02 11:30:44 +00:00
# 2021-04-02: iCalendar is basically unmaintained.
2022-12-19 21:56:44 +00:00
# There is a PR for fixing the build: https://github.com/chrra/iCalendar/pull/50
iCalendar = appendPatches [
( 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 / 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 ;
2021-04-02 11:30:44 +00:00
2022-11-27 02:48:59 +00:00
ginger = doJailbreak super . ginger ;
2021-04-02 14:56:23 +00:00
2021-04-02 14:58:12 +00:00
# Too strict version bounds on cryptonite
# https://github.com/obsidiansystems/haveibeenpwned/issues/7
haveibeenpwned = doJailbreak super . haveibeenpwned ;
2021-04-02 15:03:07 +00:00
# Too strict version bounds on ghc-events
2022-01-18 20:09:17 +00:00
# https://github.com/mpickering/hs-speedscope/issues/16
hs-speedscope = doJailbreak super . hs-speedscope ;
2021-04-02 15:03:07 +00:00
2021-04-02 15:23:13 +00:00
# Test suite doesn't support base16-bytestring >= 1.0
# https://github.com/centromere/blake2/issues/6
blake2 = dontCheck super . blake2 ;
2021-04-02 15:27:26 +00:00
# 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-06 01:08:38 +00:00
taskell = super . taskell . override {
2023-03-06 01:06:34 +00:00
# Does not support brick >= 1.0
# https://github.com/smallhadroncollider/taskell/issues/125
brick = self . brick_0_70_1 ;
} ;
2021-04-02 15:05:03 +00:00
2022-02-18 13:43:37 +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 " ;
2022-03-24 18:19:57 +00:00
license = lib . licenses . bsd3 ;
2022-02-18 13:43:37 +00:00
# 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 = [
2022-03-24 18:19:57 +00:00
( fetchpatch {
2021-04-03 21:24:29 +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-03-25 16:42:21 +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-03 21:24:29 +00:00
} )
] ;
2022-02-18 13:43:37 +00:00
} ;
2021-04-03 21:24:29 +00:00
2021-04-09 12:40:32 +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 12:48:02 +00:00
# 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-16 17:21:41 +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-01 11:31:26 +00:00
# Too strict version bounds on base:
# https://github.com/obsidiansystems/database-id/issues/1
database-id-class = doJailbreak super . database-id-class ;
2021-10-26 10:20:34 +00:00
cabal2nix-unstable = overrideCabal {
2023-02-19 10:55:51 +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-10-26 10:20:34 +00:00
} super . cabal2nix-unstable ;
2020-05-03 23:01:57 +00:00
2021-05-04 11:34:35 +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 ;
2021-05-04 14:06:57 +00:00
# Fixes too strict version bounds on regex libraries
# Presumably to be removed at the next release
2022-03-19 22:54:32 +00:00
# Test suite doesn't support hspec 2.8
# https://github.com/yi-editor/yi/issues/1124
2022-03-24 18:19:57 +00:00
yi-language = appendPatch ( fetchpatch {
2021-05-04 14:06:57 +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-22 19:47:46 +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-03-19 22:54:32 +00:00
} ) ( dontCheck super . yi-language ) ;
2021-05-04 14:06:57 +00:00
2022-03-16 00:05:41 +00:00
# 2022-03-16: Upstream is not bumping bounds https://github.com/ghcjs/jsaddle/issues/123
2021-10-26 10:20:34 +00:00
jsaddle = overrideCabal ( drv : {
2021-05-04 14:56:31 +00:00
# lift conditional version constraint on ref-tf
postPatch = ''
sed - i ' s/ref-tf. * , /ref-tf , / ' jsaddle . cabal
2022-03-16 00:05:41 +00:00
sed - i ' s/attoparsec. * , /attoparsec , / ' jsaddle . cabal
2022-12-19 10:33:45 +00:00
sed - i ' s/time. * , /time , / ' jsaddle . cabal
2022-03-16 00:05:41 +00:00
sed - i ' s / ( ! name ) / ( ! name ) / ' src/Language/Javascript/JSaddle/Object.hs
2021-05-04 14:56:31 +00:00
'' + ( d r v . p o s t P a t c h o r " " ) ;
2022-03-16 00:05:41 +00:00
} ) ( doJailbreak super . jsaddle ) ;
2021-05-04 14:56:31 +00:00
2022-03-21 23:33:26 +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-06 08:49:57 +00:00
# Tests need to lookup target triple x86_64-unknown-linux
# https://github.com/llvm-hs/llvm-hs/issues/334
2021-10-26 10:20:34 +00:00
llvm-hs = overrideCabal {
2021-05-06 08:49:57 +00:00
doCheck = pkgs . stdenv . targetPlatform . system == " x 8 6 _ 6 4 - l i n u x " ;
2021-10-26 10:20:34 +00:00
} super . llvm-hs ;
2021-05-06 08:49:57 +00:00
2022-03-20 10:57:17 +00:00
# Fix build with bytestring >= 0.11 (GHC 9.2)
# https://github.com/llvm-hs/llvm-hs/pull/389
llvm-hs-pure = appendPatches [
2022-03-24 18:19:57 +00:00
( fetchpatch {
2022-03-20 10:57:17 +00:00
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 " ;
2022-03-25 16:42:21 +00:00
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 " ;
2022-03-20 10:57:17 +00:00
excludes = [ " * * / T r i p l e . h s " ] ; # doesn't exist in 9.0.0
} )
2023-02-14 14:03:09 +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-03-20 10:57:17 +00:00
2021-05-21 22:15:39 +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-03-24 18:19:57 +00:00
sbv_7_13 = appendPatch ( fetchpatch {
2021-10-26 10:20:34 +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-05 19:52:20 +00:00
2021-05-08 14:32:24 +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-03 09:15:38 +00:00
# Tests are flaky on busy machines, upstream doesn't intend to fix
2021-05-08 22:49:23 +00:00
# https://github.com/merijn/paramtree/issues/4
paramtree = dontCheck super . paramtree ;
2021-05-08 19:13:55 +00:00
# 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 ;
2022-11-26 11:40:05 +00:00
# 2022-01-16 haskell-ci needs Cabal 3.6
haskell-ci = ( appendPatches [
# Allow building with optparse-applicative 0.17* and ShellCheck 0.8.0
./patches/haskell-ci-optparse-applicative-0.17-ShellCheck-0.8.patch
] super . haskell-ci ) . overrideScope ( self : super : {
2022-03-08 12:45:33 +00:00
Cabal = self . Cabal_3_6_3_0 ;
2022-08-31 13:15:28 +00:00
cabal-install-parsers = self . cabal-install-parsers_0_4_5 ;
2022-12-28 00:30:36 +00:00
ShellCheck = self . ShellCheck_0_8_0 ;
2022-01-15 20:58:54 +00:00
} ) ;
2021-05-09 08:00:21 +00:00
2022-06-14 13:52:55 +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-03-21 08:38:59 +00:00
( assert super . large-hashable . version == " 0 . 1 . 0 . 4 " ; overrideSrc {
2022-06-14 13:52:55 +00:00
version = " u n s t a b l e - 2 0 2 2 - 0 6 - 1 0 " ;
2022-03-21 08:38:59 +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-14 13:52:55 +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-03-21 08:38:59 +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-14 13:52:55 +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 $ "
] ;
} ) )
2022-03-21 08:38:59 +00:00
] ;
2021-05-09 21:25:09 +00:00
2021-05-10 08:23:27 +00:00
# BSON defaults to requiring network instead of network-bsd which is
# required nowadays: https://github.com/mongodb-haskell/bson/issues/26
2021-10-26 10:20:34 +00:00
bson = appendConfigureFlag " - f - _ o l d _ n e t w o r k " ( super . bson . override {
2021-05-10 08:23:27 +00:00
network = self . network-bsd ;
2021-10-26 10:20:34 +00:00
} ) ;
2021-05-10 08:23:27 +00:00
2021-05-20 08:28:21 +00:00
# Disable flaky tests
# https://github.com/DavidEichmann/alpaca-netcode/issues/2
2021-10-26 10:20:34 +00:00
alpaca-netcode = overrideCabal {
2021-06-09 13:09:00 +00:00
testFlags = [ " - - p a t t e r n " " ! / [ N O C I ] / " ] ;
2021-10-26 10:20:34 +00:00
} super . alpaca-netcode ;
2021-05-20 08:28:21 +00:00
2021-05-22 15:48:06 +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-10-26 10:20:34 +00:00
libarchive = overrideCabal {
2021-06-09 13:09:00 +00:00
testFlags = [ " - j 1 " ] ;
2021-10-26 10:20:34 +00:00
} super . libarchive ;
2021-05-22 15:48:06 +00:00
2021-06-16 21:07:32 +00:00
# Too strict bounds on QuickCheck
# https://github.com/muesli4/table-layout/issues/16
table-layout = doJailbreak super . table-layout ;
2021-06-20 20:41:27 +00:00
# 2021-06-20: Outdated upper bounds
# https://github.com/Porges/email-validate-hs/issues/58
email-validate = doJailbreak super . email-validate ;
2021-10-02 10:44:03 +00:00
# https://github.com/plow-technologies/hspec-golden-aeson/issues/17
2022-02-18 13:50:04 +00:00
hspec-golden-aeson = dontCheck super . hspec-golden-aeson ;
2021-10-02 10:44:03 +00:00
2021-06-22 10:48:30 +00:00
# To strict bound on hspec
# https://github.com/dagit/zenc/issues/5
zenc = doJailbreak super . zenc ;
2021-08-06 13:32:15 +00:00
# https://github.com/ajscholl/basic-cpuid/pull/1
2022-03-24 18:19:57 +00:00
basic-cpuid = appendPatch ( fetchpatch {
2021-08-06 13:32:15 +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-10-26 10:20:34 +00:00
} ) super . basic-cpuid ;
2021-08-06 13:32:15 +00:00
2021-08-10 12:33:36 +00:00
# Needs Cabal >= 3.4
chs-cabal = super . chs-cabal . override {
2022-03-08 12:45:33 +00:00
Cabal = self . Cabal_3_6_3_0 ;
2021-08-10 12:33:36 +00:00
} ;
2021-08-18 08:22:35 +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 ;
2021-09-14 17:18:27 +00:00
# 2021-09-14: Tests are flaky.
hls-splice-plugin = dontCheck super . hls-splice-plugin ;
2021-09-13 23:04:39 +00:00
2021-09-17 23:12:20 +00:00
# 2021-09-18: https://github.com/haskell/haskell-language-server/issues/2205
hls-stylish-haskell-plugin = doJailbreak super . hls-stylish-haskell-plugin ;
2022-05-02 02:42:50 +00:00
# Necesssary .txt files are not included in sdist.
# https://github.com/haskell/haskell-language-server/pull/2887
hls-change-type-signature-plugin = dontCheck super . hls-change-type-signature-plugin ;
2021-09-17 23:12:20 +00:00
2022-12-30 16:21:48 +00:00
# 2022-12-30: Restrictive upper bound on optparse-applicative
retrie = doJailbreak super . retrie ;
2022-08-30 12:25:18 +00:00
# 2022-08-30 Too strict bounds on finite-typelits
# https://github.com/jumper149/blucontrol/issues/1
blucontrol = doJailbreak super . blucontrol ;
2021-10-21 07:23:22 +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-10-26 10:20:34 +00:00
gogol-core = appendPatch ./patches/gogol-core-144.patch super . gogol-core ;
2021-10-21 07:23:22 +00:00
2022-07-13 20:05:14 +00:00
# Stackage LTS 19 still has 10.*
hadolint = super . hadolint . override {
language-docker = self . language-docker_11_0_0 ;
} ;
2021-11-13 20:46:17 +00:00
2022-02-18 13:50:04 +00:00
nix-tree = super . nix-tree ;
2021-11-28 22:26:09 +00:00
2021-12-05 14:47:40 +00:00
# test suite requires stack to run, https://github.com/dino-/photoname/issues/24
photoname = dontCheck super . photoname ;
2021-12-21 18:53:27 +00:00
# Upgrade of unordered-containers in Stackage causes ordering-sensitive test to fail
# https://github.com/commercialhaskell/stackage/issues/6366
2021-12-22 09:49:30 +00:00
# https://github.com/kapralVV/Unique/issues/9
2022-11-26 11:13:49 +00:00
# Too strict bounds on hashable
# https://github.com/kapralVV/Unique/pull/10
2021-12-22 09:49:30 +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-11-26 11:13:49 +00:00
} ) ( doJailbreak super . Unique ) ;
2022-05-20 20:41:38 +00:00
2021-12-22 11:48:33 +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-05-20 20:41:38 +00:00
2021-12-23 13:33:21 +00:00
# https://github.com/emc2/HUnit-Plus/issues/26
HUnit-Plus = dontCheck super . HUnit-Plus ;
2021-12-26 10:18:26 +00:00
# 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 ;
2021-12-26 10:23:49 +00:00
# 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 ;
2021-12-26 11:06:21 +00:00
# https://github.com/fieldstrength/aeson-deriving/issues/5
aeson-deriving = dontCheck super . aeson-deriving ;
2021-12-26 11:06:43 +00:00
# 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 ;
2021-12-27 13:58:16 +00:00
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-04 00:50:28 +00:00
drunken-bishop = doJailbreak super . drunken-bishop ;
2021-12-26 11:07:03 +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 ;
2021-12-26 11:07:18 +00:00
# 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 ;
2021-12-26 13:46:00 +00:00
# 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 ;
2021-12-21 18:53:27 +00:00
2021-12-26 13:02:27 +00:00
# Invalid CPP in test suite: https://github.com/cdornan/memory-cd/issues/1
memory-cd = dontCheck super . memory-cd ;
2022-02-19 08:52:12 +00:00
# https://github.com/haskell/fgl/pull/99
fgl = doJailbreak super . fgl ;
fgl-arbitrary = doJailbreak super . fgl-arbitrary ;
2022-01-17 09:49:36 +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-26 13:02:41 +00:00
# https://github.com/andreymulik/sdp/issues/3
sdp = disableLibraryProfiling super . sdp ;
2021-12-27 13:57:27 +00:00
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-26 13:02:41 +00:00
2022-02-20 19:40:30 +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-08 08:48:07 +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-07 20:39:39 +00:00
# Test suite fails to compile
# https://github.com/kuribas/mfsolve/issues/8
mfsolve = dontCheck super . mfsolve ;
2022-02-20 12:46:45 +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-07-17 13:53:23 +00:00
] ( overrideCabal {
2022-07-17 10:20:30 +00:00
# Revision introduces bound base < 4.15
revision = null ;
editedCabalFile = null ;
2022-07-17 13:53:23 +00:00
} super . regex-compat-tdfa ) ;
2022-02-20 12:46:45 +00:00
2022-03-08 10:58:26 +00:00
# https://github.com/kowainik/validation-selective/issues/64
validation-selective = doJailbreak super . validation-selective ;
2022-03-25 13:08:27 +00:00
# https://github.com/system-f/validation/issues/57
validation = doJailbreak super . validation ;
2022-03-08 10:58:26 +00:00
2022-03-16 00:36:27 +00:00
# 2022-03-16: strict upper bounds https://github.com/monadfix/shower/issues/18
shower = doJailbreak ( dontCheck super . shower ) ;
2022-07-31 10:38:25 +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
2022-07-27 15:31:38 +00:00
uniform-error = dontCheck super . uniform-error ;
2022-08-01 14:20:20 +00:00
# https://github.com/andrewufrank/uniform-fileio/issues/2
uniform-fileio = dontCheck super . uniform-fileio ;
2022-07-27 15:31:38 +00:00
2022-02-20 19:10:56 +00:00
# The shipped Setup.hs file is broken.
csv = overrideCabal ( drv : { preCompileBuildDriver = " r m S e t u p . h s " ; } ) super . csv ;
2022-09-21 17:29:02 +00:00
cabal-fmt = doJailbreak ( super . cabal-fmt . override {
2022-10-27 21:20:45 +00:00
# Needs newer Cabal-syntax version.
2022-09-21 17:29:02 +00:00
Cabal-syntax = self . Cabal-syntax_3_8_1_0 ;
} ) ;
2022-02-25 20:48:05 +00:00
2022-08-22 16:21:44 +00:00
# Tests require ghc-9.2.
ema = dontCheck super . ema ;
2022-08-23 09:19:12 +00:00
glirc = doJailbreak ( super . glirc . override {
2022-06-04 11:11:26 +00:00
vty = self . vty_5_35_1 ;
2022-08-23 09:19:12 +00:00
} ) ;
2022-02-25 21:59:08 +00:00
2022-02-25 22:30:08 +00:00
# 2022-02-25: Unmaintained and to strict upper bounds
paths = doJailbreak super . paths ;
2022-03-09 14:15:22 +00:00
# 2022-02-26: https://github.com/emilypi/base64/issues/39
base64 = dontCheck super . base64 ;
2022-03-16 00:29:20 +00:00
# 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 00:34:28 +00:00
# 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-21 20:16:46 +00:00
# 2022-03-16: package qualified import issue: https://github.com/ghcjs/ghcjs-dom/issues/101
2022-03-16 00:29:20 +00:00
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 " " ) ;
} )
super . ghcjs-dom ;
2022-02-20 21:22:59 +00:00
# Too strict bounds on chell: https://github.com/fpco/haskell-filesystem/issues/24
system-fileio = doJailbreak super . system-fileio ;
2022-02-27 10:56:24 +00:00
2023-03-01 17:39:52 +00:00
# Temporarily upgrade haskell-gi until stackage advances
2023-02-27 16:57:08 +00:00
# Fixes build of gi-harfbuzz with harfbuzz >= 7.0
# https://github.com/haskell-gi/haskell-gi/issues/396#issuecomment-1445181362
2023-03-01 17:39:52 +00:00
haskell-gi = doDistribute self . haskell-gi_0_26_3 ;
2023-02-27 16:57:08 +00:00
2022-03-02 10:12:22 +00:00
# Bounds too strict on base and ghc-prim: https://github.com/tibbe/ekg-core/pull/43 (merged); waiting on hackage release
2022-11-27 19:18:23 +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-03-02 10:12:22 +00:00
2022-03-27 10:11:28 +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 ;
} ) ;
2022-03-26 22:19:00 +00:00
# Test suite doesn't support hspec 2.8
# https://github.com/zellige/hs-geojson/issues/29
geojson = dontCheck super . geojson ;
2022-06-07 19:12:21 +00:00
# Test data missing from sdist
# https://github.com/ngless-toolkit/ngless/issues/152
NGLess = dontCheck super . NGLess ;
2022-05-15 16:15:49 +00:00
# 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 ;
2022-05-16 23:43:35 +00:00
# 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 ) ;
2022-12-22 12:23:43 +00:00
# Unreleased bound relaxing patch allowing scotty 0.12
taffybar = appendPatch ( pkgs . fetchpatch {
name = " t a f f y b a r - a l l o w - s c o t t y - 0 . 1 2 . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / t a f f y b a r / t a f f y b a r / c o m m i t / 2 e 4 2 8 b a 5 5 0 f c 5 1 0 6 7 5 2 6 a 0 3 5 0 b 9 1 1 8 5 a c e f 7 2 d 1 9 . p a t c h " ;
sha256 = " 1 l p c z 6 7 1 m k 5 c w q f f j f i 9 n c c 0 d 6 7 b m w g z y p y 3 i 3 7 a 2 f h f m x d 0 y 3 n l " ;
} ) ( ( p : assert p . version == " 4 . 0 . 0 " ; p ) super . taffybar ) ;
2022-06-01 21:22:57 +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-09-20 00:49:35 +00:00
# 2022-09-20: Restrictive upper bound on lsp
futhark = doJailbreak super . futhark ;
2022-07-07 09:25:39 +00:00
2022-07-14 05:44:21 +00:00
# Too strict bounds on hspec
# https://github.com/klapaucius/vector-hashtables/issues/11
vector-hashtables = doJailbreak super . vector-hashtables ;
2022-07-26 16:40:11 +00:00
# doctest-parallel is broken with v1-style cabal-install / Setup.hs
# https://github.com/martijnbastiaan/doctest-parallel/issues/22
2022-07-24 17:11:35 +00:00
doctest-parallel = dontCheck super . doctest-parallel ;
2022-07-26 16:40:11 +00:00
clash-prelude = dontCheck super . clash-prelude ;
2022-11-24 14:11:19 +00:00
# Too strict upper bound on th-desugar, fixed in 3.1.1
singletons-th = assert super . singletons-th . version == " 3 . 1 " ; doJailbreak super . singletons-th ;
2022-12-28 07:47:57 +00:00
singletons-base = doJailbreak super . singletons-base ;
2022-11-24 14:11:19 +00:00
2022-07-26 16:40:11 +00:00
# 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 ;
2022-07-24 17:11:35 +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-10-30 16:18:27 +00:00
# Missing test files https://github.com/kephas/xdg-basedir-compliant/issues/1
xdg-basedir-compliant = dontCheck super . xdg-basedir-compliant ;
2022-10-22 16:22:00 +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-10-03 15:05:48 +00:00
2022-11-21 22:46:08 +00:00
# Too strict upper bound on HTTP
oeis = doJailbreak super . oeis ;
2022-11-26 22:51:54 +00:00
inherit
( let
# We need to build purescript with these dependencies and thus also its reverse
# dependencies to avoid version mismatches in their dependency closure.
# TODO(@cdepillabout): maybe unify with the spago overlay in configuration-nix.nix?
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-08-08 03:43:47 +00:00
2022-11-05 00:40:33 +00:00
# 2022-11-05: https://github.com/ysangkok/haskell-tzdata/issues/3
tzdata = dontCheck super . tzdata ;
2022-11-15 16:46:08 +00:00
# 2022-11-15: Needs newer witch package and brick 1.3 which in turn works with text-zipper 0.12
# Other dependencies are resolved with doJailbreak for both swarm and brick_1_3
swarm = doJailbreak ( super . swarm . override {
2023-02-18 18:09:12 +00:00
brick = doJailbreak ( dontCheck super . brick_1_6 ) ;
2022-11-15 16:46:08 +00:00
} ) ;
2022-11-27 19:18:23 +00:00
2023-02-18 17:52:02 +00:00
# Too strict upper bound on bytestring
# https://github.com/TravisWhitaker/rdf/issues/8
rdf = doJailbreak super . rdf ;
2022-11-27 19:18:23 +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 ;
2022-11-28 18:42:37 +00:00
# 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 ;
2022-12-17 01:46:37 +00:00
emanote = super . emanote . overrideScope ( lself : lsuper : {
commonmark-extensions = lself . commonmark-extensions_0_2_3_2 ;
} ) ;
2022-11-28 18:42:37 +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 15:49:02 +00:00
# 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 ) ) ;
2022-12-12 14:40:35 +00:00
html-charset = dontCheck super . html-charset ;
2022-12-30 18:37:11 +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-01-11 21:44:07 +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-01-21 17:13:49 +00:00
# bytestring <0.11.0, optparse-applicative <0.13.0
# https://github.com/kseo/sfnt2woff/issues/1
sfnt2woff = doJailbreak super . sfnt2woff ;
2023-03-06 02:01:41 +00:00
# 2023-03-05: restrictive bounds on base https://github.com/diagrams/diagrams-gtk/issues/11
diagrams-gtk = doJailbreak super . diagrams-gtk ;
2022-11-26 22:51:54 +00:00
} // import ./configuration-tensorflow.nix { inherit pkgs haskellLib ; } self super