Skip to content

Commit

Permalink
Merge pull request #300455 from NixOS/haskell-updates
Browse files Browse the repository at this point in the history
haskellPackages: update stackage and hackage
  • Loading branch information
maralorn authored Apr 9, 2024
2 parents d038af2 + 7a87fbb commit ae67af3
Show file tree
Hide file tree
Showing 14 changed files with 1,382 additions and 1,008 deletions.
8 changes: 4 additions & 4 deletions pkgs/data/misc/hackage/pin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commit": "8fd329148e6583ab472717f5cac4e8132dac2c1e",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/8fd329148e6583ab472717f5cac4e8132dac2c1e.tar.gz",
"sha256": "0acf86rjvkh8vgbkzm1gjavm8xr508hd19ncwa19zqrf8gpp051x",
"msg": "Update from Hackage at 2024-03-16T22:28:08Z"
"commit": "a3f1357d6561e38afbb7545f733063f9ad7465c4",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/a3f1357d6561e38afbb7545f733063f9ad7465c4.tar.gz",
"sha256": "0nvrqbaf483af1abxqcms8f60nbxyqghf5k1jb4m3xah0206kdwf",
"msg": "Update from Hackage at 2024-03-31T04:36:22Z"
}
2 changes: 2 additions & 0 deletions pkgs/development/compilers/carp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ haskellPackages.mkDerivation rec {
homepage = "https://github.com/carp-lang/Carp";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jluttine ];
# Not actively maintained at the moment
broken = true;

# Windows not (yet) supported.
platforms = with lib.platforms; unix ++ darwin;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/compilers/ghc/common-hadrian.nix
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ stdenv.mkDerivation ({
'*-android*|*-gnueabi*|*-musleabi*)'
done
''
# Need to make writable EM_CACHE for emscripten
# Need to make writable EM_CACHE for emscripten. The path in EM_CACHE must be absolute.
# https://gitlab.haskell.org/ghc/ghc/-/wikis/javascript-backend#configure-fails-with-sub-word-sized-atomic-operations-not-available
+ lib.optionalString targetPlatform.isGhcjs ''
export EM_CACHE="$(mktemp -d emcache.XXXXXXXXXX)"
export EM_CACHE="$(realpath $(mktemp -d emcache.XXXXXXXXXX))"
cp -Lr ${targetCC /* == emscripten */}/share/emscripten/cache/* "$EM_CACHE/"
chmod u+rwX -R "$EM_CACHE"
''
Expand Down
29 changes: 13 additions & 16 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ with haskellLib;

self: super: {
# Make sure that Cabal 3.10.* can be built as-is
Cabal_3_10_2_1 = doDistribute (super.Cabal_3_10_2_1.override ({
Cabal-syntax = self.Cabal-syntax_3_10_2_0;
Cabal_3_10_3_0 = doDistribute (super.Cabal_3_10_3_0.override ({
Cabal-syntax = self.Cabal-syntax_3_10_3_0;
} // lib.optionalAttrs (lib.versionOlder self.ghc.version "9.2.5") {
# Use process core package when possible
process = self.process_1_6_18_0;
Expand All @@ -36,9 +36,9 @@ self: super: {
{
# Needs to be downgraded compared to Stackage LTS 21
resolv = cself.resolv_0_1_2_0;
} // lib.optionalAttrs (lib.versionOlder self.ghc.version "9.6") {
Cabal = cself.Cabal_3_10_2_1;
Cabal-syntax = cself.Cabal-syntax_3_10_2_0;
} // lib.optionalAttrs (lib.versionOlder self.ghc.version "9.10") {
Cabal = cself.Cabal_3_10_3_0;
Cabal-syntax = cself.Cabal-syntax_3_10_3_0;
} // lib.optionalAttrs (lib.versionOlder self.ghc.version "9.4") {
# We need at least directory >= 1.3.7.0. Using the latest version
# 1.3.8.* is not an option since it causes very annoying dependencies
Expand Down Expand Up @@ -81,7 +81,7 @@ self: super: {
extensions = doJailbreak (super.extensions.override {
Cabal =
if versionOlder self.ghc.version "9.6"
then self.Cabal_3_10_2_1
then self.Cabal_3_10_3_0
else null; # use GHC bundled version
});

Expand Down Expand Up @@ -185,6 +185,7 @@ self: super: {

# https://github.com/mpickering/eventlog2html/pull/187
eventlog2html = lib.pipe super.eventlog2html [
doJailbreak
(appendPatch (fetchpatch {
name = "blaze-html-compat.patch";
url = "https://github.com/mpickering/eventlog2html/commit/666aee9ee44c571173a73036b36ad4154c188481.patch";
Expand Down Expand Up @@ -1512,7 +1513,7 @@ self: super: {
# 2022-08-31: Jailbreak is done to allow aeson 2.0.*:
# https://github.com/haskell-CI/haskell-ci/commit/6ad0d5d701cbe101013335d597acaf5feadd3ab9#r82681900
cabal-install-parsers = doJailbreak (dontCheck (super.cabal-install-parsers.override {
Cabal-syntax = self.Cabal-syntax_3_10_2_0;
Cabal-syntax = self.Cabal-syntax_3_10_3_0;
}));

# Test suite requires database
Expand Down Expand Up @@ -2297,7 +2298,7 @@ self: super: {
# 2023-07-03: allow lattices-2.2, waiting on https://github.com/haskell-CI/haskell-ci/pull/664
# 2024-03-21: pins specific version of ShellCheck
haskell-ci = doJailbreak (super.haskell-ci.overrideScope (self: super: {
Cabal-syntax = self.Cabal-syntax_3_10_2_0;
Cabal-syntax = self.Cabal-syntax_3_10_3_0;
ShellCheck = self.ShellCheck_0_9_0;
}));

Expand Down Expand Up @@ -2564,7 +2565,7 @@ self: super: {

cabal-fmt = doJailbreak (super.cabal-fmt.override {
# Needs newer Cabal-syntax version.
Cabal-syntax = self.Cabal-syntax_3_10_2_0;
Cabal-syntax = self.Cabal-syntax_3_10_3_0;
});

# 2023-07-18: https://github.com/srid/ema/issues/156
Expand Down Expand Up @@ -3036,13 +3037,6 @@ self: super: {
# repa-query, repa-scalar, repa-store, repa-stream
;

# https://github.com/jhickner/smtp-mail/pull/41 Use crypton-connection instead of connection
smtp-mail = appendPatch (pkgs.fetchpatch {
name = "smtp-mail-crypton-connection.patch";
url = "https://github.com/jhickner/smtp-mail/commit/4c724c80814ab1da7c37256a6c10e04c88b9af95.patch";
hash = "sha256-rCyY4rB/wLspeAbLw1jji5BykYFLnmTjLiUyNkiEXmw";
}) (super.smtp-mail.override { connection = self.crypton-connection; });

# Use recent git version as the hackage version is outdated and not building on recent GHC versions
haskell-to-elm = overrideSrc {
version = "unstable-2023-12-02";
Expand All @@ -3068,4 +3062,7 @@ self: super: {
tasty = super.tasty_1_5;
tasty-quickcheck = super.tasty-quickcheck_0_10_3;
});

# Too strict bounds on text. Can be removed after https://github.com/alx741/currencies/pull/3 is merged
currencies = doJailbreak super.currencies;
} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
2 changes: 2 additions & 0 deletions pkgs/development/haskell-modules/configuration-darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ self: super: ({
stripLen = 1;
}) super.inline-c-cpp;

# Tests fail on macOS https://github.com/mrkkrp/zip/issues/112
zip = dontCheck super.zip;
} // lib.optionalAttrs pkgs.stdenv.isAarch64 { # aarch64-darwin

# https://github.com/fpco/unliftio/issues/87
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ in {
(
let
hls_overlay = lself: lsuper: {
Cabal-syntax = lself.Cabal-syntax_3_10_2_0;
Cabal-syntax = lself.Cabal-syntax_3_10_3_0;
};
in
lib.mapAttrs (_: pkg: doDistribute (pkg.overrideScope hls_overlay)) {
Expand Down
6 changes: 4 additions & 2 deletions pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ self: super: {
#
# Version upgrades
#
th-abstraction = doDistribute self.th-abstraction_0_6_0_0;
th-abstraction = doDistribute self.th-abstraction_0_7_0_0;
ghc-lib-parser = doDistribute self.ghc-lib-parser_9_8_2_20240223;
ghc-lib-parser-ex = doDistribute self.ghc-lib-parser-ex_9_8_0_2;
ghc-lib = doDistribute self.ghc-lib_9_8_1_20231121;
megaparsec = doDistribute self.megaparsec_9_6_1;
aeson = doDistribute self.aeson_2_2_1_0;
# TODO: remove when aeson updates or launches a revision
# see https://github.com/haskell/aeson/issues/1089 and https://github.com/haskell/aeson/pulls/1088
aeson = doJailbreak (doDistribute self.aeson_2_2_1_0);
attoparsec-aeson = doDistribute self.attoparsec-aeson_2_2_0_1;
xmonad = doDistribute self.xmonad_0_18_0;
apply-refact = self.apply-refact_0_14_0_0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,6 @@ broken-packages:
- cassava-records # failure in job https://hydra.nixos.org/build/233259049 at 2023-09-02
- cassava-streams # failure in job https://hydra.nixos.org/build/233222669 at 2023-09-02
- cassette # failure in job https://hydra.nixos.org/build/233201251 at 2023-09-02
- castagnoli # failure in job https://hydra.nixos.org/build/233213036 at 2023-09-02
- castle # failure in job https://hydra.nixos.org/build/233204027 at 2023-09-02
- catamorphism # failure in job https://hydra.nixos.org/build/233208488 at 2023-09-02
- Catana # failure in job https://hydra.nixos.org/build/233196550 at 2023-09-02
Expand Down Expand Up @@ -1083,7 +1082,6 @@ broken-packages:
- curl-aeson # failure in job https://hydra.nixos.org/build/233210106 at 2023-09-02
- curl-runnings # failure in job https://hydra.nixos.org/build/233258680 at 2023-09-02
- curly-expander # failure in job https://hydra.nixos.org/build/233250838 at 2023-09-02
- currencies # failure in job https://hydra.nixos.org/build/233216717 at 2023-09-02
- currency-convert # failure in job https://hydra.nixos.org/build/233224509 at 2023-09-02
- curry-base # failure in job https://hydra.nixos.org/build/233246647 at 2023-09-02
- CurryDB # failure in job https://hydra.nixos.org/build/233238995 at 2023-09-02
Expand Down Expand Up @@ -3300,7 +3298,6 @@ broken-packages:
- kind-integer # failure in job https://hydra.nixos.org/build/233250066 at 2023-09-02
- kleene-list # failure in job https://hydra.nixos.org/build/233237651 at 2023-09-02
- kmn-programming # failure in job https://hydra.nixos.org/build/233258328 at 2023-09-02
- kmonad # failure in job https://hydra.nixos.org/build/252717089 at 2024-03-16
- kmp-dfa # failure in job https://hydra.nixos.org/build/233237266 at 2023-09-02
- knots # failure in job https://hydra.nixos.org/build/233209153 at 2023-09-02
- koellner-phonetic # failure in job https://hydra.nixos.org/build/233217750 at 2023-09-02
Expand Down Expand Up @@ -4233,7 +4230,6 @@ broken-packages:
- optimization # failure in job https://hydra.nixos.org/build/233191078 at 2023-09-02
- optional # failure in job https://hydra.nixos.org/build/233241818 at 2023-09-02
- options-time # failure in job https://hydra.nixos.org/build/233194289 at 2023-09-02
- optparse-applicative-cmdline-util # failure in job https://hydra.nixos.org/build/252739738 at 2024-03-16
- optparse-applicative-simple # failure in job https://hydra.nixos.org/build/233236802 at 2023-09-02
- optparse-declarative # failure in job https://hydra.nixos.org/build/252718969 at 2024-03-16
- optparse-helper # failure in job https://hydra.nixos.org/build/233248522 at 2023-09-02
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ package-maintainers:
- X11
- X11-xft
- html-parse-util
- kmonad
- optparse-applicative-cmdline-util
- xmonad
- xmonad-contrib
Expand Down
Loading

0 comments on commit ae67af3

Please sign in to comment.