Skip to content

Commit

Permalink
Merge pull request #268652 from NixOS/haskell-updates
Browse files Browse the repository at this point in the history
haskellPackages: update stackage and hackage
  • Loading branch information
ncfavier authored Dec 4, 2023
2 parents 216b111 + 4e40a20 commit f8012b8
Show file tree
Hide file tree
Showing 11 changed files with 875 additions and 1,085 deletions.
36 changes: 18 additions & 18 deletions maintainers/scripts/haskell/hydra-report.hs
Original file line number Diff line number Diff line change
Expand Up @@ -382,22 +382,22 @@ data BuildState

icon :: BuildState -> Text
icon = \case
Failed -> ":x:"
DependencyFailed -> ":heavy_exclamation_mark:"
OutputLimitExceeded -> ":warning:"
Failed -> ""
DependencyFailed -> ""
OutputLimitExceeded -> "⚠️"
Unknown x -> "unknown code " <> showT x
TimedOut -> ":hourglass::no_entry_sign:"
Canceled -> ":no_entry_sign:"
Unfinished -> ":hourglass_flowing_sand:"
HydraFailure -> ":construction:"
Success -> ":heavy_check_mark:"
TimedOut -> "⌛🚫"
Canceled -> "🚫"
Unfinished -> ""
HydraFailure -> "🚧"
Success -> ""

platformIcon :: Platform -> Text
platformIcon (Platform x) = case x of
"x86_64-linux" -> ":penguin:"
"aarch64-linux" -> ":iphone:"
"x86_64-darwin" -> ":apple:"
"aarch64-darwin" -> ":green_apple:"
"x86_64-linux" -> "🐧"
"aarch64-linux" -> "📱"
"x86_64-darwin" -> "🍎"
"aarch64-darwin" -> "🍏"
_ -> x

platformIsOS :: OS -> Platform -> Bool
Expand Down Expand Up @@ -626,7 +626,7 @@ printBuildSummary eval@Eval{id} fetchTime summary topBrokenRdeps =
<> optionalHideableList "#### Unmaintained packages with failed dependency" (unmaintainedList (failedDeps summary))
<> optionalHideableList "#### Unmaintained packages with unknown error" (unmaintainedList (unknownErr summary))
<> optionalHideableList "#### Top 50 broken packages, sorted by number of reverse dependencies" (brokenLine <$> topBrokenRdeps)
<> ["","*:arrow_heading_up:: The number of packages that depend (directly or indirectly) on this package (if any). If two numbers are shown the first (lower) number considers only packages which currently have enabled hydra jobs, i.e. are not marked broken. The second (higher) number considers all packages.*",""]
<> ["","*⤴️: The number of packages that depend (directly or indirectly) on this package (if any). If two numbers are shown the first (lower) number considers only packages which currently have enabled hydra jobs, i.e. are not marked broken. The second (higher) number considers all packages.*",""]
<> footer
where
footer = ["*Report generated with [maintainers/scripts/haskell/hydra-report.hs](https://github.com/NixOS/nixpkgs/blob/haskell-updates/maintainers/scripts/haskell/hydra-report.hs)*"]
Expand All @@ -651,7 +651,7 @@ printBuildSummary eval@Eval{id} fetchTime summary topBrokenRdeps =
brokenLine :: (PkgName, Int) -> Text
brokenLine (PkgName name, rdeps) =
"[" <> name <> "](https://packdeps.haskellers.com/reverse/" <> name <>
") :arrow_heading_up: " <> Text.pack (show rdeps) <> " "
") ⤴️ " <> Text.pack (show rdeps) <> " "

numSummary = statusToNumSummary summary

Expand Down Expand Up @@ -733,7 +733,7 @@ printBuildSummary eval@Eval{id} fetchTime summary topBrokenRdeps =
, Text.pack
( if summaryReverseDeps entry > 0
then
" :arrow_heading_up: " <> show (summaryUnbrokenReverseDeps entry) <>
" ⤴️ " <> show (summaryUnbrokenReverseDeps entry) <>
" | " <> show (summaryReverseDeps entry)
else ""
)
Expand All @@ -750,9 +750,9 @@ printBuildSummary eval@Eval{id} fetchTime summary topBrokenRdeps =
)

tldr = case (errors, warnings) of
([],[]) -> [":green_circle: **Ready to merge** (if there are no [evaluation errors](https://hydra.nixos.org/jobset/nixpkgs/haskell-updates))"]
([],_) -> [":yellow_circle: **Potential issues** (and possibly [evaluation errors](https://hydra.nixos.org/jobset/nixpkgs/haskell-updates))"]
_ -> [":red_circle: **Branch not mergeable**"]
([],[]) -> ["🟢 **Ready to merge** (if there are no [evaluation errors](https://hydra.nixos.org/jobset/nixpkgs/haskell-updates))"]
([],_) -> ["🟡 **Potential issues** (and possibly [evaluation errors](https://hydra.nixos.org/jobset/nixpkgs/haskell-updates))"]
_ -> ["🔴 **Branch not mergeable**"]
warnings =
if' (Unfinished > maybe Success worstState maintainedJob) "`maintained` jobset failed." <>
if' (Unfinished == maybe Success worstState mergeableJob) "`mergeable` jobset is not finished." <>
Expand Down
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": "f4111a737432472002a38495b14b930255705d6a",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/f4111a737432472002a38495b14b930255705d6a.tar.gz",
"sha256": "0q1nhk821fdwxmidsd9mnd77ml4c05f7rnmd80g4s876s65ldi5q",
"msg": "Update from Hackage at 2023-11-10T11:27:19Z"
"commit": "def4ad933fb86415a9802d7833369d12520e7744",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/def4ad933fb86415a9802d7833369d12520e7744.tar.gz",
"sha256": "0nfqz1mwzgvkkk22igq5jxfwfcc0l8i1ihlgxaixf2ip1qqlqzs6",
"msg": "Update from Hackage at 2023-11-20T05:37:18Z"
}
8 changes: 8 additions & 0 deletions pkgs/development/compilers/ghc/common-hadrian.nix
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,14 @@ stdenv.mkDerivation ({
preInstall = ''
pushd _build/bindist/*
''
# the bindist configure script uses different env variables than the GHC configure script
# see https://github.com/NixOS/nixpkgs/issues/267250 and https://gitlab.haskell.org/ghc/ghc/-/issues/24211
+ lib.optionalString (stdenv.targetPlatform.linker == "cctools") ''
export InstallNameToolCmd=$INSTALL_NAME_TOOL
export OtoolCmd=$OTOOL
''
+ ''
$configureScript $configureFlags "''${configureFlagsArray[@]}"
'';

Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/compilers/ghc/head.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ./common-hadrian.nix {
version = "9.9.20231014";
rev = "13d3c613c3c1e4942c698449bdf58a6a13b76695";
sha256 = "13xp4ijnym2qbw2qbxkvfb79l7034vrcm9j2j9kirbhjxzdshvx9";
version = "9.9.20231121";
rev = "955520c6c4f07187b6d5e4770ecf681cc78374f2";
sha256 = "0pv77khciv513aw64pfac5p60xn5z90rxl84dcalj6knmbhm8dqy";
}
35 changes: 18 additions & 17 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,24 @@ self: super: {
# 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);

hiedb =
lib.pipe
super.hiedb
[
# hiedb-0.4.3.0 does not yet support algebraic-graphs-0.7. This patch works
# around the issue.
# https://github.com/wz1000/HieDb/pull/44
(appendPatch
(pkgs.fetchpatch {
name = "hiedb-algebraic-graphs-0.7.patch";
url = "https://github.com/wz1000/HieDB/commit/4ac8e6735321872b9d5d15a9cac492add5555234.patch";
hash = "sha256-Iu+M8r+DrpoxUCG6yekgbW+GffoNjjRksnwUJ6jojhE=";
}))
# Patch does not actually bump the bound in the .cabal file.
doJailbreak
];
# 2023-12-03: https://github.com/haskell/haskell-language-server/pull/3867
hls-plugin-api = appendPatch (fetchpatch {
url = "https://github.com/haskell/haskell-language-server/commit/1c884ea856cceeaa3254a2ef68c8ab3a3c353153.patch";
relative = "hls-plugin-api";
hash = "sha256-vlXPdEvmuIl+cM+u/GdHi8r72r4+Tqtsvx0CGbWEFCQ=";
}) (doJailbreak super.hls-plugin-api);
ghcide = appendPatch (fetchpatch {
url = "https://github.com/haskell/haskell-language-server/commit/1c884ea856cceeaa3254a2ef68c8ab3a3c353153.patch";
relative = "ghcide";
hash = "sha256-1URXyQf88v3hjFGvNmcIjHxJ5vExH3iI92XktDrQs0U=";
}) (doJailbreak super.ghcide);
hls-test-utils = doJailbreak super.hls-test-utils;
hls-alternate-number-format-plugin = doJailbreak super.hls-alternate-number-format-plugin;
hls-cabal-plugin = doJailbreak super.hls-cabal-plugin;
hls-call-hierarchy-plugin = doJailbreak super.hls-call-hierarchy-plugin;
hls-explicit-fixity-plugin = doJailbreak super.hls-explicit-fixity-plugin;
hls-floskell-plugin = doJailbreak super.hls-floskell-plugin;
hls-gadt-plugin = doJailbreak super.hls-gadt-plugin;

###########################################
### END HASKELL-LANGUAGE-SERVER SECTION ###
Expand Down Expand Up @@ -484,7 +486,6 @@ self: super: {
# Too strict bounds on algebraic-graphs and bytestring
# https://github.com/haskell-nix/hnix-store/issues/180
hnix-store-core = doJailbreak super.hnix-store-core;
hnix-store-core_0_6_1_0 = doDistribute (doJailbreak super.hnix-store-core_0_6_1_0);

# Fails for non-obvious reasons while attempting to use doctest.
focuslist = dontCheck super.focuslist;
Expand Down
8 changes: 7 additions & 1 deletion pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ self: super: {
ChasingBottoms = doJailbreak super.ChasingBottoms;
chell = doJailbreak super.chell;
Diff = dontCheck super.Diff;
doctest = doJailbreak super.doctest;
doctest = overrideCabal (drv: {
jailbreak = true;
# The test case relies on the Printf module which did not exist in base 4.13
testFlags = drv.testFlags or [ ] ++ [
"--skip=/Main/doctest (regression tests)/template-haskell-bugfix/"
];
}) super.doctest;
hashable-time = doJailbreak super.hashable-time;
hledger-lib = doJailbreak super.hledger-lib; # base >=4.8 && <4.13, easytest >=0.2.1 && <0.3
integer-logarithms = doJailbreak super.integer-logarithms;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,7 @@ broken-packages:
- fortran-vars # failure in job https://hydra.nixos.org/build/233257719 at 2023-09-02
- fortytwo # failure in job https://hydra.nixos.org/build/233209552 at 2023-09-02
- foscam-filename # failure in job https://hydra.nixos.org/build/233237326 at 2023-09-02
- fp-ieee # failure in job https://hydra.nixos.org/build/241516602 at 2023-12-03
- FPretty # failure in job https://hydra.nixos.org/build/233196648 at 2023-09-02
- fptest # failure in job https://hydra.nixos.org/build/233233288 at 2023-09-02
- fquery # failure in job https://hydra.nixos.org/build/233196287 at 2023-09-02
Expand Down Expand Up @@ -3393,6 +3394,7 @@ broken-packages:
- MapWith # failure in job https://hydra.nixos.org/build/233237146 at 2023-09-02
- markdown-kate # failure in job https://hydra.nixos.org/build/233227051 at 2023-09-02
- marked-pretty # failure in job https://hydra.nixos.org/build/233193892 at 2023-09-02
- markov-chain-usage-model # failure in job https://hydra.nixos.org/build/241522329 at 2023-12-03
- markov-realization # failure in job https://hydra.nixos.org/build/233234901 at 2023-09-02
- mars # failure in job https://hydra.nixos.org/build/234449730 at 2023-09-13
- marshal-contt # failure in job https://hydra.nixos.org/build/233231755 at 2023-09-02
Expand Down Expand Up @@ -4858,6 +4860,7 @@ broken-packages:
- semilattices # failure in job https://hydra.nixos.org/build/233223765 at 2023-09-02
- sendgrid-haskell # failure in job https://hydra.nixos.org/build/233228693 at 2023-09-02
- sendgrid-v3 # failure in job https://hydra.nixos.org/build/233224134 at 2023-09-02
- sensei # failure in job https://hydra.nixos.org/build/241518007 at 2023-12-03
- sensu-run # failure in job https://hydra.nixos.org/build/233251719 at 2023-09-02
- sentry # failure in job https://hydra.nixos.org/build/233246813 at 2023-09-02
- seonbi # failure in job https://hydra.nixos.org/build/233196115 at 2023-09-02
Expand Down Expand Up @@ -4924,6 +4927,7 @@ broken-packages:
- SessionLogger # failure in job https://hydra.nixos.org/build/233235790 at 2023-09-02
- sessions # failure in job https://hydra.nixos.org/build/233214614 at 2023-09-02
- sessiontypes # failure in job https://hydra.nixos.org/build/233224975 at 2023-09-02
- setdown # failure in job https://hydra.nixos.org/build/241521053 at 2023-12-03
- setgame # failure in job https://hydra.nixos.org/build/233218664 at 2023-09-02
- set-of # failure in job https://hydra.nixos.org/build/233202960 at 2023-09-02
- setoid # failure in job https://hydra.nixos.org/build/233213744 at 2023-09-02
Expand Down Expand Up @@ -5529,6 +5533,7 @@ broken-packages:
- th-traced # failure in job https://hydra.nixos.org/build/233247762 at 2023-09-02
- thumbnail # failure in job https://hydra.nixos.org/build/233257110 at 2023-09-02
- thumbnail-plus # failure in job https://hydra.nixos.org/build/233255464 at 2023-09-02
- thyme # failure in job https://hydra.nixos.org/build/241518029 at 2023-12-03
- tianbar # failure in job https://hydra.nixos.org/build/233195811 at 2023-09-02
- ticket-management # failure in job https://hydra.nixos.org/build/233247134 at 2023-09-02
- tictactoe3d # failure in job https://hydra.nixos.org/build/233193080 at 2023-09-02
Expand Down
Loading

0 comments on commit f8012b8

Please sign in to comment.