Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
721c665
Merge master into haskell-updates
github-actions[bot] Jul 28, 2022
7f909b0
haskell.compiler: ghc923 -> ghc924
sternenseemann Jul 28, 2022
3c0b8e7
Merge master into haskell-updates
github-actions[bot] Jul 29, 2022
093f236
Merge master into haskell-updates
github-actions[bot] Jul 30, 2022
eb9760b
Merge master into haskell-updates
github-actions[bot] Jul 31, 2022
42d8425
all-cabal-hashes: 2022-07-27T11:03:11Z -> 2022-07-31T09:12:37Z
sternenseemann Jul 31, 2022
4cb2780
haskellPackages: stackage LTS 19.16 -> LTS 19.17
sternenseemann Jul 31, 2022
9a61ce5
haskellPackages: regenerate package set based on current config
sternenseemann Jul 31, 2022
f187338
haskellPackages: reflect ghc-lib*_9_2* updates
sternenseemann Jul 31, 2022
4c85669
haskellPackages.uniform-error: update override comment
sternenseemann Jul 31, 2022
b319a5c
haskellPackages.levenshtein: remove broken flag
sternenseemann Jul 31, 2022
120a70d
haskellPackages.cabal-hoogle: disable cabal v2 layout dependent test
sternenseemann Jul 31, 2022
41d7713
haskellPackages.debian: drop obsolete patches
sternenseemann Jul 31, 2022
0a7aec3
Merge master into haskell-updates
github-actions[bot] Aug 1, 2022
3ca851a
haskell.packages.ghc924.hiedb: dontCheck
maralorn Aug 1, 2022
ba819dd
Merge remote-tracking branch 'origin/master' into haskell-updates
sternenseemann Aug 1, 2022
7d4b4a6
haskellPackages: mark builds failing on hydra as broken
sternenseemann Aug 1, 2022
6a8ad0a
haskellPackages.uniform-fileio: disable tests incompatbile with HTF >…
sternenseemann Aug 1, 2022
df6d391
Merge master into haskell-updates
github-actions[bot] Aug 2, 2022
f6333fe
maintainers/scripts/haskell/hydra-report: fix capitalisation
maralorn Aug 2, 2022
1d51c8b
Merge master into haskell-updates
github-actions[bot] Aug 3, 2022
9b65c7a
Merge master into haskell-updates
github-actions[bot] Aug 4, 2022
17746af
Merge remote-tracking branch 'origin/master' into haskell-updates
sternenseemann Aug 4, 2022
4e7c3b9
haskell.compiler.ghc941: apply fix for racy build system
sternenseemann Aug 4, 2022
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
2 changes: 1 addition & 1 deletion lib/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ rec {
Example:
mkPackageOption pkgs "GHC" {
default = [ "ghc" ];
example = "pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])";
example = "pkgs.haskell.packages.ghc924.ghc.withPackages (hkgs: [ hkgs.primes ])";
}
=> { _type = "option"; default = «derivation /nix/store/jxx55cxsjrf8kyh3fp2ya17q99w7541r-ghc-8.10.7.drv»; defaultText = { ... }; description = "The GHC package to use."; example = { ... }; type = { ... }; }
*/
Expand Down
4 changes: 2 additions & 2 deletions maintainers/scripts/haskell/hydra-report.hs
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,8 @@ printBuildSummary
showBuild (name, entry) = printJob id name (summaryBuilds entry, Text.pack (if summaryReverseDeps entry > 0 then " :arrow_heading_up: " <> show (summaryUnbrokenReverseDeps entry) <>" | "<> show (summaryReverseDeps entry) else ""))
showMaintainedBuild (name, (table, maintainers)) = printJob id name (table, Text.intercalate " " (fmap ("@" <>) (toList maintainers)))
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))"]
([],[]) -> [":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**"]
warnings =
if' (Unfinished > maybe Success worstState maintainedJob) "`maintained` jobset failed." <>
Expand Down
4 changes: 2 additions & 2 deletions nixos/doc/manual/development/option-declarations.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ lib.mkOption {
```nix
lib.mkPackageOption pkgs "GHC" {
default = [ "ghc" ];
example = "pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])";
example = "pkgs.haskell.packages.ghc924.ghc.withPackages (hkgs: [ hkgs.primes ])";
}
# is like
lib.mkOption {
type = lib.types.package;
default = pkgs.ghc;
defaultText = lib.literalExpression "pkgs.ghc";
example = lib.literalExpression "pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])";
example = lib.literalExpression "pkgs.haskell.packages.ghc924.ghc.withPackages (hkgs: [ hkgs.primes ])";
description = "The GHC package to use.";
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,14 @@ lib.mkOption {
<programlisting language="bash">
lib.mkPackageOption pkgs &quot;GHC&quot; {
default = [ &quot;ghc&quot; ];
example = &quot;pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])&quot;;
example = &quot;pkgs.haskell.packages.ghc924.ghc.withPackages (hkgs: [ hkgs.primes ])&quot;;
}
# is like
lib.mkOption {
type = lib.types.package;
default = pkgs.ghc;
defaultText = lib.literalExpression &quot;pkgs.ghc&quot;;
example = lib.literalExpression &quot;pkgs.haskell.package.ghc923.ghc.withPackages (hkgs: [ hkgs.primes ])&quot;;
example = lib.literalExpression &quot;pkgs.haskell.packages.ghc924.ghc.withPackages (hkgs: [ hkgs.primes ])&quot;;
description = &quot;The GHC package to use.&quot;;
}
</programlisting>
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": "84a258f1f060f5f31f44b2d966b6e96305932eb2",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/84a258f1f060f5f31f44b2d966b6e96305932eb2.tar.gz",
"sha256": "0nyiyxxqa5h46p50jmvrx6sphxy0j8ib2vy3jvfijdpc4d6d5gx6",
"msg": "Update from Hackage at 2022-07-27T11:03:11Z"
"commit": "219207531a7a2e12e857b3ec55a7573f0a0f34d2",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/219207531a7a2e12e857b3ec55a7573f0a0f34d2.tar.gz",
"sha256": "146y45g6f1vvc3f8p1dq56y1fk1ls7v814iwa736k08ah6jfrq4f",
"msg": "Update from Hackage at 2022-07-31T09:12:37Z"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
, xattr, autoSignDarwinBinariesHook
, bash

, autoreconfHook # GHC 9.2.3 tarballs don't have autoconf run on them

, libiconv ? null, ncurses
, glibcLocales ? null

Expand Down Expand Up @@ -176,12 +174,12 @@ assert buildTargetLlvmPackages.llvm == llvmPackages.llvm;
assert stdenv.targetPlatform.isDarwin -> buildTargetLlvmPackages.clang == llvmPackages.clang;

stdenv.mkDerivation (rec {
version = "9.2.3";
version = "9.2.4";
pname = "${targetPrefix}ghc${variantSuffix}";

src = fetchurl {
url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-src.tar.xz";
sha256 = "50ecdc2bef013e518f9a62a15245d7db0e4409d737c43b1cea7306fd82e1669e";
sha256 = "15213888064a0ec4e7723d075f31b87a678ce0851773d58b44ef7aa3de996458";
};

enableParallelBuilding = true;
Expand Down Expand Up @@ -231,12 +229,7 @@ stdenv.mkDerivation (rec {
# LLVM backend on Darwin needs clang: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/codegens.html#llvm-code-generator-fllvm
export CLANG="${buildTargetLlvmPackages.clang}/bin/${buildTargetLlvmPackages.clang.targetPrefix}clang"
'' + ''

echo -n "${buildMK}" > mk/build.mk
# GHC 9.2.3 tarball is not properly prepared
./boot

sed -i -e 's|-isysroot /Developer/SDKs/MacOSX10.5.sdk||' configure
'' + lib.optionalString (stdenv.isLinux && hostPlatform.libc == "glibc") ''
export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
'' + lib.optionalString (!stdenv.isDarwin) ''
Expand Down Expand Up @@ -301,7 +294,6 @@ stdenv.mkDerivation (rec {
dontAddExtraLibs = true;

nativeBuildInputs = [
autoreconfHook # GHC 9.2.3 tarball hasn't autoconf run on it
perl autoconf automake m4 python3
ghc bootPkgs.alex bootPkgs.happy bootPkgs.hscolour
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
Expand Down
6 changes: 6 additions & 0 deletions pkgs/development/compilers/ghc/9.4.1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ stdenv.mkDerivation (rec {
extraPrefix = "utils/haddock/";
stripLen = 1;
})
# fix race condition in make build system
(fetchpatch {
name = "ghc-hs-boot-copying-fix.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/4f17eff0cbd125eca55b68f4927befdd45008eb6.diff";
sha256 = "0anq3w9z9mhxb0wx6rvxac3n7rl3apcma9zk3r9zz9hj9v7vkqzx";
})
];

postPatch = "patchShebangs .";
Expand Down
24 changes: 10 additions & 14 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2145,16 +2145,16 @@ self: super: {

# 2022-03-21: Newest stylish-haskell needs ghc-lib-parser-9_2
stylish-haskell = (super.stylish-haskell.override {
ghc-lib-parser = super.ghc-lib-parser_9_2_3_20220709;
ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_2_1_0;
ghc-lib-parser = super.ghc-lib-parser_9_2_4_20220729;
ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_2_1_1;
});

ghc-lib-parser-ex_9_2_1_0 = super.ghc-lib-parser-ex_9_2_1_0.override {
ghc-lib-parser = super.ghc-lib-parser_9_2_3_20220709;
ghc-lib-parser-ex_9_2_1_1 = super.ghc-lib-parser-ex_9_2_1_1.override {
ghc-lib-parser = super.ghc-lib-parser_9_2_4_20220729;
};

ghc-lib-parser-ex_9_2_0_4 = super.ghc-lib-parser-ex_9_2_0_4.override {
ghc-lib-parser = super.ghc-lib-parser_9_2_3_20220709;
ghc-lib-parser = super.ghc-lib-parser_9_2_4_20220729;
};

hlint_3_4_1 = doDistribute (super.hlint_3_4_1.override {
Expand Down Expand Up @@ -2407,9 +2407,12 @@ self: super: {
# 2022-03-16: strict upper bounds https://github.com/monadfix/shower/issues/18
shower = doJailbreak (dontCheck super.shower);

# Doesn't compile with HTF 0.15
# https://github.com/andrewufrank/uniform-error/issues/1
# 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
uniform-error = dontCheck super.uniform-error;
# https://github.com/andrewufrank/uniform-fileio/issues/2
uniform-fileio = dontCheck super.uniform-fileio;

# The shipped Setup.hs file is broken.
csv = overrideCabal (drv: { preCompileBuildDriver = "rm Setup.hs"; }) super.csv;
Expand Down Expand Up @@ -2503,13 +2506,6 @@ self: super: {
servant-cassava = assert super.servant-cassava.version == "0.10.1";
doJailbreak super.servant-cassava;

# Fix tests failure for ghc 9 (https://github.com/clinty/debian-haskell/pull/3)
debian = appendPatch (fetchpatch {
name = "debian-haskell.3.patch";
url = "https://github.com/clinty/debian-haskell/pull/3/commits/47441c8e4a7a00a3c8825eec98bf7a823594f9be.patch";
sha256 = "0wxpqazjnal9naibapg63nm7x6qz0lklcfw2m5mzjrh2q9x2cvnd";
}) super.debian;

# Test data missing from sdist
# https://github.com/ngless-toolkit/ngless/issues/152
NGLess = dontCheck super.NGLess;
Expand Down
10 changes: 6 additions & 4 deletions pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ self: super: {
self.data-default
] ++ drv.libraryHaskellDepends or [];
}) super.ghc-exactprint;
ghc-lib = self.ghc-lib_9_2_3_20220709;
ghc-lib-parser = self.ghc-lib-parser_9_2_3_20220709;
ghc-lib-parser-ex = self.ghc-lib-parser-ex_9_2_1_0;
ghc-lib = doDistribute self.ghc-lib_9_2_4_20220729;
ghc-lib-parser = doDistribute self.ghc-lib-parser_9_2_4_20220729;
ghc-lib-parser-ex = doDistribute self.ghc-lib-parser-ex_9_2_1_1;
hackage-security = doJailbreak super.hackage-security;
hashable = super.hashable_1_4_0_2;
hashable-time = doJailbreak super.hashable-time;
Expand Down Expand Up @@ -190,7 +190,9 @@ self: super: {
implicit-hie-cradle = doJailbreak super.implicit-hie-cradle;
# 1.3 introduced support for GHC 9.2.x, so when this assert fails, the jailbreak can be removed
hashtables = assert super.hashtables.version == "1.2.4.2"; doJailbreak super.hashtables;
hiedb = doJailbreak super.hiedb;

# 2022-08-01: Tests are broken on ghc 9.2.4: https://github.com/wz1000/HieDb/issues/46
hiedb = doJailbreak (dontCheck super.hiedb);

# 2022-02-05: The following plugins don‘t work yet on ghc9.2.
# Compare: https://haskell-language-server.readthedocs.io/en/latest/supported-versions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,6 @@ broken-packages:
- cabalgraph
- cabal-graphdeps
- cabal-helper
- cabal-hoogle
- Cabal-ide-backend
- cabal-info
- cabal-install-bundle
Expand Down Expand Up @@ -1042,6 +1041,7 @@ broken-packages:
- dbmigrations-mysql
- dbmigrations-postgresql
- dbmigrations-sqlite
- dbmonitor
- d-bus
- DBus
- dbus-core
Expand Down Expand Up @@ -1742,6 +1742,7 @@ broken-packages:
- ginger
- gingersnap
- ginsu
- gi-pangocairo
- giphy-api
- gi-rsvg
- gist
Expand Down Expand Up @@ -2987,7 +2988,6 @@ broken-packages:
- less-arbitrary
- Level0
- level-monad
- levenshtein
- levmar
- lfst
- lhc
Expand All @@ -3007,6 +3007,7 @@ broken-packages:
- libpafe
- libpq
- librandomorg
- librarian
- libsecp256k1
- libsystemd-daemon
- libsystemd-journal
Expand Down Expand Up @@ -4720,6 +4721,7 @@ broken-packages:
- skemmtun
- skulk
- skylighting-extensions
- skylighting-format-ansi
- skylighting-lucid
- skype4hs
- slack
Expand Down
Loading