Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Haskell package set to LTS 15.2 (plus other fixes) #81543

Merged
merged 20 commits into from
Mar 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2610d5e
haskellPackages.pantry: get building with ghc882
cdepillabout Feb 29, 2020
5682212
haskellPackages.stack: get compiling with ghc882
cdepillabout Feb 29, 2020
3a986cd
haskellPackages.taffybar: Fix compilation with ghc882
colonelpanic8 Mar 1, 2020
3cb572e
LTS Haskell 15.2
peti Mar 2, 2020
e9f89e0
haskellPackages.nixfmt: Unbreak
andersk Mar 2, 2020
2c7128c
unbreak lsp-related packages
ggreif Mar 2, 2020
f26fee6
haskellPackages.binary-instances: mark unbroken
cdepillabout Feb 29, 2020
17144b1
haskellPackages.github: mark unbroken
cdepillabout Feb 29, 2020
e7e936f
hackage2nix: disable Hydra builds that don't evaluate or fail
peti Mar 6, 2020
71be218
hackage-packages.nix: automatic Haskell package set update
peti Mar 1, 2020
6fe6d3b
haskellPackages.semver-range: disable tests on ghc88x
cdepillabout Feb 29, 2020
7b6f436
haskellPackages.dhall_1_29_0: disable tests since they access the net…
cdepillabout Feb 29, 2020
4e3b120
spago: unbreak after update to ghc-8.8.2
cdepillabout Feb 29, 2020
39e8cc9
ormolu: remove unneeded override after bump to lts-15
cdepillabout Mar 3, 2020
9857e57
stack: Get building with old version of pantry
cdepillabout Mar 5, 2020
354111d
haskellPackages.pantry_0_2_0_0: Mark dontCheck
cdepillabout Mar 6, 2020
4c791cb
all-cabal-hashes: update to Hackage at 2020-03-06T12:35:04Z
peti Mar 6, 2020
46a81f9
haskell-binary-instances: disable test suite to avoid spurious failures
peti Mar 6, 2020
adcd693
haskell-cryptonite: disable the test suite to fix the build on older …
peti Mar 6, 2020
6e2198b
haskell-ci: fix the build
peti Mar 6, 2020
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
4 changes: 2 additions & 2 deletions pkgs/data/misc/hackage/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ fetchurl }:

fetchurl {
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/3ff0be5c9ee1ead33e07158b9a4a579fa2fb7a7f.tar.gz";
sha256 = "15jqdjxyzcmg50zvl7szv6s2zi4k82as5wi6mkiwwpbdricg50pl";
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/fcb0ed924c8504d54870d6dc2092b9dab8305732.tar.gz";
sha256 = "0b7dxgj40y9svddrx14scnxls20ww4f717zhz3lwigb16dm4crpi";
}
80 changes: 73 additions & 7 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,35 @@ self: super: {

# Generate shell completion.
cabal2nix = generateOptparseApplicativeCompletion "cabal2nix" super.cabal2nix;
stack = generateOptparseApplicativeCompletion "stack" (super.stack.overrideScope (self: super: {
}));

stack =
let
stackWithOverrides =
super.stack.override {
# stack-2.1.3.1 requires pantry-0.2.0.0.
pantry = self.pantry_0_2_0_0;
};
in
generateOptparseApplicativeCompletion
"stack"
(appendPatches stackWithOverrides [
# This PR fixes stack up to be able to build with Cabal-3. This patch
# can probably be dropped when the next stack release is made after
# 2.1.3.1.
(pkgs.fetchpatch {
url = "https://github.com/commercialhaskell/stack/pull/5156.diff";
sha256 = "0knk6f9fh1b4fxkhvx5gfrwclal4vi2va4zy34gpmwnjr7knf42y";
excludes = [
"snapshot-lts-12.yaml"
"snapshot-nightly.yaml"
"snapshot.yaml"
];
})
# This patch fixes stack up to be able to build various GHC-8.8 changes.
# This can hopefully be dropped when the next stack release is made
# after 2.1.3.1 (assuming the next stack release uses GHC-8.8).
./patches/stack-ghc882-support.patch
]);

# musl fixes
# dontCheck: use of non-standard strptime "%s" which musl doesn't support; only used in test
Expand Down Expand Up @@ -1306,11 +1333,6 @@ self: super: {
# https://github.com/haskell-servant/servant-ekg/issues/15
servant-ekg = doJailbreak super.servant-ekg;

# Needs ghc-lib-parser 8.8.1 (does not build with 8.8.0)
ormolu = doJailbreak (super.ormolu.override {
ghc-lib-parser = self.ghc-lib-parser_8_8_3_20200224;
});

# krank-0.1.0 does not accept PyF-0.9.0.0.
krank = doJailbreak super.krank;

Expand Down Expand Up @@ -1401,4 +1423,48 @@ self: super: {
# https://github.com/bergmark/feed/issues/43
feed = dontCheck super.feed;

pantry_0_2_0_0 = appendPatches (dontCheck super.pantry_0_2_0_0) [
# pantry-0.2.0.0 doesn't build with ghc-8.8, but there is a PR adding support.
# https://github.com/commercialhaskell/pantry/pull/6
# Currently stack-2.1.3.1 requires pantry-0.2.0.0, but when a newer version of
# stack is released, it will probably use the newer pantry version, so we
# can completely get rid of pantry-0.2.0.0.
(pkgs.fetchpatch {
url = "https://github.com/commercialhaskell/pantry/pull/6.diff";
sha256 = "0aml06jshpjh3aiscs5av7y33m3d6s6x5pzdvh7pky476izfg87k";
excludes = [
".azure/azure-linux-template.yml"
".azure/azure-osx-template.yml"
".azure/azure-windows-template.yml"
"package.yaml"
"pantry.cabal"
"stack-lts-11.yaml"
"stack-lts-12.yaml"
"stack-nightly.yaml"
"stack-windows.yaml"
"stack.yaml"
];
})
];

# https://github.com/serokell/nixfmt/pull/62
nixfmt = doJailbreak super.nixfmt;

# https://github.com/phadej/binary-orphans/issues/45
binary-instances = dontCheck super.binary-instances;

# Disabling the test suite lets the build succeed on older CPUs
# that are unable to run the generated library because they
# lack support for AES-NI, like some of our Hydra build slaves
# do. See https://github.com/NixOS/nixpkgs/issues/81915 for
# details.
cryptonite = dontCheck super.cryptonite;

# The test suite depends on an impure cabal-install installation
# in $HOME, which we don't have in our build sandbox.
cabal-install-parsers = dontCheck super.cabal-install-parsers;

# haskell-ci-0.8 needs cabal-install-parsers ==0.1, but we have 0.2.
haskell-ci = doJailbreak super.haskell-ci;

} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,8 @@ self: super: {
# https://github.com/kowainik/relude/issues/241
relude = dontCheck super.relude;

# 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;
}
Loading