Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 9 additions & 34 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,16 @@ self: super: {
ghc-paths = lsuper.ghc-paths.override { Cabal = null; };
}))
[
doJailbreak
dontCheck
];

hls-plugin-api = doJailbreak super.hls-plugin-api;
ghcide = doJailbreak (appendPatch (pkgs.fetchpatch {
ghcide = appendPatch (pkgs.fetchpatch {
name = "ghcide-ghc-9.8.3.patch";
url = "https://github.com/haskell/haskell-language-server/commit/6d0a6f220226fe6c1cb5b6533177deb55e755b0b.patch";
sha256 = "1jwxldar9qzkg2z6vsx8f2yih3vkf4yjk9p3mryv0azn929qn3h1";
stripLen = 1;
excludes = [ "cabal.project" ];
}) super.ghcide);
}) super.ghcide;

# For -f-auto see cabal.project in haskell-language-server.
ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser (disableCabalFlag "auto" super.ghc-lib-parser-ex);
Expand Down Expand Up @@ -252,9 +250,6 @@ self: super: {
# There are numerical tests on random data, that may fail occasionally
lapack = dontCheck super.lapack;

# currently, cabal-plan seems to get not much maintenance
cabal-plan = doJailbreak super.cabal-plan;

# support for transformers >= 0.6
lifted-base = appendPatch (fetchpatch {
url = "https://github.com/basvandijk/lifted-base/commit/6b61483ec7fd0d5d5d56ccb967860d42740781e8.patch";
Expand Down Expand Up @@ -771,8 +766,7 @@ self: super: {
separated = dontCheck super.separated;
shadowsocks = dontCheck super.shadowsocks;
shake-language-c = dontCheck super.shake-language-c;
snap-core = doJailbreak (dontCheck super.snap-core); # attoparsec bound is too strict. This has been fixed on master
snap-server = doJailbreak super.snap-server; # attoparsec bound is too strict
snap-core = dontCheck super.snap-core;
sourcemap = dontCheck super.sourcemap;
static-resources = dontCheck super.static-resources;
strive = dontCheck super.strive; # fails its own hlint test with tons of warnings
Expand Down Expand Up @@ -896,9 +890,6 @@ self: super: {
# 2025-02-10: Too strict bounds on hedgehog < 1.5
tasty-sugar = doJailbreak super.tasty-sugar;

# Allow bytestring-0.12.1.0, https://github.com/lpeterse/haskell-socket/issues/71
socket = doJailbreak super.socket;

# Known issue with nondeterministic test suite failure
# https://github.com/nomeata/tasty-expected-failure/issues/21
tasty-expected-failure = dontCheck super.tasty-expected-failure;
Expand Down Expand Up @@ -938,9 +929,6 @@ self: super: {
# https://github.com/kazu-yamamoto/logger/issues/42
logger = dontCheck super.logger;

# https://github.com/Euterpea/Euterpea2/issues/40
Euterpea = doJailbreak super.Euterpea;

# Byte-compile elisp code for Emacs.
ghc-mod = overrideCabal (drv: {
preCheck = "export HOME=$TMPDIR";
Expand Down Expand Up @@ -1450,14 +1438,10 @@ self: super: {
# lsp-1.4.0.0 which is hard to build with this LTS. However, the latest
# git version of dhall-lsp-server works with lsp-2.1.0.0, and only
# needs jailbreaking to build successfully.
dhall-lsp-server = lib.pipe
(super.dhall-lsp-server.overrideScope (lself: lsuper: {
lsp = doJailbreak lself.lsp_2_1_0_0; # sorted-list <0.2.2
lsp-types = doJailbreak lself.lsp-types_2_1_1_0; # lens <5.3
}))
[
doJailbreak
];
dhall-lsp-server = super.dhall-lsp-server.overrideScope (lself: lsuper: {
lsp = doJailbreak lself.lsp_2_1_0_0; # sorted-list <0.2.2
lsp-types = doJailbreak lself.lsp-types_2_1_1_0; # lens <5.3
});

ghcjs-dom-hello = appendPatches [
(fetchpatch {
Expand Down Expand Up @@ -1862,7 +1846,6 @@ self: super: {
# 2021-04-16: too strict bounds on QuickCheck and tasty
# https://github.com/hasufell/lzma-static/issues/1
lzma-static = doJailbreak super.lzma-static;
xz = doJailbreak super.xz;

# Too strict version bounds on base:
# https://github.com/obsidiansystems/database-id/issues/1
Expand Down Expand Up @@ -2017,8 +2000,6 @@ self: super: {
# Too strict lower bounds on (test) deps
# https://github.com/phadej/puresat/issues/6
puresat = doJailbreak super.puresat;
# https://github.com/phadej/spdx/issues/62
spdx = doJailbreak super.spdx;

# test suite requires stack to run, https://github.com/dino-/photoname/issues/24
photoname = dontCheck super.photoname;
Expand All @@ -2034,7 +2015,7 @@ self: super: {
"--skip" "/Data.List.UniqueUnsorted.repeatedBy,repeated,unique/unique: simple test/"
"--skip" "/Data.List.UniqueUnsorted.repeatedBy,repeated,unique/repeatedBy: simple test/"
] ++ drv.testFlags or [];
}) (doJailbreak super.Unique);
}) super.Unique;

# https://github.com/AndrewRademacher/aeson-casing/issues/8
aeson-casing = assert super.aeson-casing.version == "0.2.0.0"; overrideCabal (drv: {
Expand Down Expand Up @@ -2126,10 +2107,6 @@ self: super: {
sdp4unordered = disableLibraryProfiling super.sdp4unordered;
sdp4vector = disableLibraryProfiling super.sdp4vector;

# Unnecessarily strict bound on template-haskell
# https://github.com/tree-sitter/haskell-tree-sitter/issues/298
tree-sitter = doJailbreak super.tree-sitter;

# Test suite fails to compile
# https://github.com/kuribas/mfsolve/issues/8
mfsolve = dontCheck super.mfsolve;
Expand Down Expand Up @@ -2399,8 +2376,6 @@ self: super: {

# Overly strict bounds on tasty-quickcheck (test suite) (< 0.11)
hashable = doJailbreak super.hashable;
# https://github.com/haskell/aeson/pull/1126
text-iso8601 = doJailbreak super.text-iso8601;
# https://github.com/well-typed/cborg/issues/340
cborg = doJailbreak super.cborg;
# Doesn't compile with tasty-quickcheck == 0.11 (see issue above)
Expand Down Expand Up @@ -2809,7 +2784,7 @@ let
setAmazonkaSourceRoot = dir: drv: (overrideSrc { version = "2.0"; src = amazonkaSrc + "/${dir}"; }) drv;
isAmazonkaService = name: lib.hasPrefix "amazonka-" name && name != "amazonka-test";
amazonkaServices = lib.filter isAmazonkaService (lib.attrNames super);
amazonkaServiceOverrides = (lib.genAttrs amazonkaServices (name: lib.pipe super.${name} [(setAmazonkaSourceRoot "lib/services/${name}") doJailbreak]));
amazonkaServiceOverrides = (lib.genAttrs amazonkaServices (name: lib.pipe super.${name} [(setAmazonkaSourceRoot "lib/services/${name}") (x: x)]));
in
amazonkaServiceOverrides // {
amazonka-core = assert super.amazonka-core.version == "2.0"; lib.pipe
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/haskell-modules/configuration-ghc-9.10.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ self: super: {
#
base64 = doJailbreak super.base64; # base <4.20
floskell = doJailbreak super.floskell; # base <4.20
spdx = doJailbreak super.spdx; # Cabal-syntax < 3.13
tasty-coverage = doJailbreak super.tasty-coverage; # base <4.20, filepath <1.5
tree-diff = doJailbreak super.tree-diff; # base <4.20
tree-sitter = doJailbreak super.tree-sitter; # containers <0.7, filepath <1.5
time-compat = doJailbreak super.time-compat; # base <4.20

bitvec = doJailbreak super.bitvec; # primitive <0.9
Expand Down
15 changes: 0 additions & 15 deletions pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,32 +60,17 @@ self: super: {
#
# Jailbreaks
#
blaze-svg = doJailbreak super.blaze-svg; # base <4.19
commutative-semigroups = doJailbreak super.commutative-semigroups; # base < 4.19
diagrams-lib = doJailbreak super.diagrams-lib; # base <4.19, text <2.1
diagrams-postscript = doJailbreak super.diagrams-postscript; # base <4.19, bytestring <0.12
diagrams-svg = doJailbreak super.diagrams-svg; # base <4.19, text <2.1
ghc-trace-events = doJailbreak super.ghc-trace-events; # text < 2.1, bytestring < 0.12, base < 4.19
hashing = doJailbreak super.hashing; # bytestring <0.12
hevm = appendPatch (pkgs.fetchpatch {
url = "https://github.com/hellwolf/hevm/commit/338674d1fe22d46ea1e8582b24c224d76d47d0f3.patch";
name = "release-0.54.2-ghc-9.8.4-patch";
sha256 = "sha256-Mo65FfP1nh7QTY+oLia22hj4eV2v9hpXlYsrFKljA3E=";
}) super.hevm;
json-sop = doJailbreak super.json-sop; # aeson <2.2, base <4.19, text <2.1
primitive-unlifted = doJailbreak super.primitive-unlifted; # bytestring < 0.12
statestack = doJailbreak super.statestack; # base < 4.19
newtype-generics = doJailbreak super.newtype-generics; # base < 4.19
hw-prim = doJailbreak super.hw-prim; # doctest < 0.22, ghc-prim < 0.11, hedgehog < 1.4
svg-builder = doJailbreak super.svg-builder; # base <4.19, bytestring <0.12, text <2.1
HaskellNet-SSL = doJailbreak super.HaskellNet-SSL; # bytestring >=0.9 && <0.12
raven-haskell = doJailbreak super.raven-haskell; # aeson <2.2
saltine = doJailbreak super.saltine; # bytestring && <0.12, deepseq <1.5, text > 1.2 && <1.3 || >=2.0 && <2.1
stripe-concepts = doJailbreak super.stripe-concepts; # text >=1.2.5 && <1.3 || >=2.0 && <2.1
stripe-signature = doJailbreak super.stripe-signature; # text >=1.2.5 && <1.3 || >=2.0 && <2.1
string-random = doJailbreak super.string-random; # text >=1.2.2.1 && <2.1
inflections = doJailbreak super.inflections; # text >=0.2 && <2.1
universe-some = doJailbreak super.universe-some; # th-abstraction < 0.7
broadcast-chan = doJailbreak super.broadcast-chan; # base <4.19 https://github.com/merijn/broadcast-chan/pull/19

#
Expand Down
7 changes: 3 additions & 4 deletions pkgs/development/haskell-modules/configuration-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ self: super: builtins.intersectAttrs super {
'';
}) super.GLUT;

libsystemd-journal = doJailbreak (addExtraLibrary pkgs.systemd super.libsystemd-journal);
libsystemd-journal = addExtraLibrary pkgs.systemd super.libsystemd-journal;

# does not specify tests in cabal file, instead has custom runTest cabal hook,
# so cabal2nix will not detect test dependencies.
Expand Down Expand Up @@ -952,8 +952,7 @@ self: super: builtins.intersectAttrs super {
}) (addBuildTool pkgs.buildPackages.makeWrapper super.cut-the-crap);

# Compiling the readme throws errors and has no purpose in nixpkgs
aeson-gadt-th =
disableCabalFlag "build-readme" (doJailbreak super.aeson-gadt-th);
aeson-gadt-th = disableCabalFlag "build-readme" super.aeson-gadt-th;

# Fix compilation of Setup.hs by removing the module declaration.
# See: https://github.com/tippenein/guid/issues/1
Expand Down Expand Up @@ -1065,7 +1064,7 @@ self: super: builtins.intersectAttrs super {
substituteInPlace src/Nix/Diff/Types.hs \
--replace "{-# OPTIONS_GHC -Wno-orphans #-}" "{-# OPTIONS_GHC -Wno-orphans -fconstraint-solver-iterations=0 #-}"
'';
}) (doJailbreak (dontCheck super.nix-diff));
}) (dontCheck super.nix-diff);

# mockery's tests depend on hspec-discover which dependso on mockery for its tests
mockery = dontCheck super.mockery;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let
});
in
{
tensorflow-proto = doJailbreak (setTensorflowSourceRoot "tensorflow-proto" super.tensorflow-proto);
tensorflow-proto = setTensorflowSourceRoot "tensorflow-proto" super.tensorflow-proto;

tensorflow = overrideCabal (drv: {
libraryHaskellDepends = drv.libraryHaskellDepends ++ [ self.vector-split ];
Expand Down