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

haskellPackages: update stackage and hackage #304640

Merged
merged 41 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
1dc7345
haskell.compiler.ghc981: build stage 2 compiler for “native cross”
sternenseemann Jan 25, 2024
490114a
haskellPackages.ghc: 9.6.4 -> 9.6.5
sternenseemann Apr 16, 2024
1cda300
all-cabal-hashes: 2024-04-09T20:48:09Z -> 2024-04-16T17:36:35Z
sternenseemann Apr 16, 2024
8767abc
haskellPackages: stackage LTS 22.16 -> LTS 22.17
sternenseemann Apr 16, 2024
9ce35fc
haskellPackages: regenerate package set based on current config
sternenseemann Apr 16, 2024
bd5c09c
Merge master into haskell-updates
github-actions[bot] Apr 17, 2024
686828e
Merge master into haskell-updates
github-actions[bot] Apr 18, 2024
bf2a10e
haskell.compiler.ghc8107: support {LD,AR}_STAGE0
AlexandreTunstall Jul 21, 2023
97dd14c
Merge master into haskell-updates
github-actions[bot] Apr 19, 2024
ad321e0
release-haskell.nix/mergeable: include darwin again
sternenseemann Apr 16, 2024
40bc356
release-haskell.nix/mergeable: include shellcheck
sternenseemann Apr 16, 2024
9b818bc
haskell.packages.*.cabal-install: reflect process 1.6.18 -> 1.6.19
sternenseemann Apr 19, 2024
9070ffe
mkjson: init at 0.4.0
athas Apr 18, 2024
c2accdb
Merge master into haskell-updates
github-actions[bot] Apr 20, 2024
fb9e753
Merge master into haskell-updates
github-actions[bot] Apr 21, 2024
d4f78fd
mueval: broken on aarch64
ncfavier Apr 21, 2024
1d5354e
fffuu: allow building with split-0.2.5
sternenseemann Apr 21, 2024
dc3f85a
Merge master into haskell-updates
github-actions[bot] Apr 22, 2024
bce71e9
haskellPackages.cabal2nix-unstable: 2024-02-05 -> 2024-04-21
sternenseemann Apr 21, 2024
fd8ab54
git-annex: don't use redundant installation targets
sternenseemann Apr 21, 2024
cdedb41
git-annex: fix installation location of .desktop files and icons
sternenseemann Apr 21, 2024
69e0d2c
git-annex: crypto test no longer fails on darwin
sternenseemann Apr 21, 2024
4a12991
git-annex: skip test requiring unavailable tool on darwin
sternenseemann Apr 21, 2024
fbf524e
Merge pull request #305068 from athas/mkjson
maralorn Apr 22, 2024
e102133
release-haskell.nix: include new nixfmt-* attributes
sternenseemann Apr 22, 2024
78667e9
haskellPackages.mkDerivation: fix logic error
sgrb Apr 22, 2024
718851b
haskellPackages.mkDerivation: use emcc as C compiler for ghcjs
sgrb Apr 12, 2024
eff1cb2
haskellPackages: change maintainerships by maralorn
maralorn Apr 22, 2024
c419203
haskellPackages.jsaddle-dom: Fix build
maralorn Apr 22, 2024
1c8747b
haskellPackages.ghc-debug-brick: Fix build
maralorn Apr 22, 2024
69d32db
Merge master into haskell-updates
github-actions[bot] Apr 23, 2024
466ddc4
Merge master into haskell-updates
github-actions[bot] Apr 24, 2024
4f6ebb6
haskell.packages.ghc98.ghc-lib: fix the eval
trofi Apr 22, 2024
fb0227e
Merge master into haskell-updates
github-actions[bot] Apr 25, 2024
cce32cc
Merge master into haskell-updates
github-actions[bot] Apr 26, 2024
a5b5d65
haskell.compiler.ghcjs: provide required ansi-wl-pprint < 0.7
sternenseemann Apr 27, 2024
8c3a95b
haskellPackages: mark builds failing on hydra as broken
sternenseemann Apr 27, 2024
2b3f8cc
haskellPackages.lsql-csv: lift overly strict upper bounds
sternenseemann Apr 27, 2024
e62270e
haskellPackages.jsaddle-hello: lift overly strict bounds
sternenseemann Apr 27, 2024
6de4b57
haskellPackages.ghcjs-dom-hello: lift overly strict bounds
sternenseemann Apr 27, 2024
b22521e
Merge master into haskell-updates
sternenseemann Apr 27, 2024
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
46 changes: 46 additions & 0 deletions pkgs/by-name/mk/mkjson/generated.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{ mkDerivation, lib, fetchFromGitHub
, aeson, base, bytestring, containers, criterion
, doctest, Glob, mersenne-random-pure64, mtl
, optparse-applicative, parsec, random, regex-tdfa, scientific
, text, time, unordered-containers, uuid, vector
}:

mkDerivation rec {
pname = "mkjson";
version = "0.4.0";
src = fetchFromGitHub {
owner = "mfussenegger";
repo = "mkjson";
rev = "${version}";
hash = "sha256-+NDLFtsWWxHv/6XC9hJOAHPU6YED5oHqS/j5BPwNsqA=";
};

isLibrary = false;
isExecutable = true;
libraryHaskellDepends = [
aeson base bytestring containers mersenne-random-pure64 mtl
optparse-applicative parsec random regex-tdfa scientific text time
unordered-containers uuid vector
];
executableHaskellDepends = [
aeson base bytestring containers mersenne-random-pure64 mtl
optparse-applicative parsec random regex-tdfa scientific text time
unordered-containers uuid vector
];
testHaskellDepends = [
aeson base bytestring containers doctest Glob
mersenne-random-pure64 mtl optparse-applicative parsec random
regex-tdfa scientific text time unordered-containers uuid vector
];
benchmarkHaskellDepends = [
aeson base bytestring containers criterion mersenne-random-pure64
mtl optparse-applicative parsec random regex-tdfa scientific text
time unordered-containers uuid vector
];

description = "A commandline tool to generate static or random JSON records";
homepage = "https://github.com/mfussenegger/mkjson";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ athas ];
mainProgram = "mkjson";
}
1 change: 1 addition & 0 deletions pkgs/by-name/mk/mkjson/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ haskell, haskellPackages }: haskell.lib.justStaticExecutables (haskellPackages.callPackage ./generated.nix { })
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": "5bae847bf7e96ce10e824377f4cb7f02c51b7245",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/5bae847bf7e96ce10e824377f4cb7f02c51b7245.tar.gz",
"sha256": "1p45mapjca2d7r8ky27s0pn3sflp61iippcabsb85s49fi9sqlv2",
"msg": "Update from Hackage at 2024-04-09T20:48:09Z"
"commit": "4eb9a5fde06b5d7343665582243debaf1d77e0a9",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/4eb9a5fde06b5d7343665582243debaf1d77e0a9.tar.gz",
"sha256": "0dzyfr1gv79riy2vh840b5hqly8rs10zhj01zi9nfn7jd9pzql28",
"msg": "Update from Hackage at 2024-04-16T17:36:35Z"
}
10 changes: 8 additions & 2 deletions pkgs/development/compilers/ghc/8.10.7.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# build-tools
, bootPkgs
, autoconf, automake, coreutils, fetchpatch, fetchurl, perl, python3, m4, sphinx
, autoreconfHook, autoconf, automake, coreutils, fetchpatch, fetchurl, perl, python3, m4, sphinx
, xattr, autoSignDarwinBinariesHook
, bash

Expand Down Expand Up @@ -223,6 +223,12 @@ stdenv.mkDerivation (rec {
stripLen = 3;
extraPrefix = "libraries/Cabal/Cabal/";
})

# We need to be able to set AR_STAGE0 and LD_STAGE0 when cross-compiling
(fetchpatch {
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/8f7dd5710b80906ea7a3e15b7bb56a883a49fed8.patch";
hash = "sha256-C636Nq2U8YOG/av7XQmG3L1rU0bmC9/7m7Hty5pm5+s=";
})
] ++ lib.optionals stdenv.isDarwin [
# Make Block.h compile with c++ compilers. Remove with the next release
(fetchpatch {
Expand Down Expand Up @@ -334,7 +340,7 @@ stdenv.mkDerivation (rec {
dontAddExtraLibs = true;

nativeBuildInputs = [
perl autoconf automake m4 python3
perl autoreconfHook autoconf automake m4 python3
ghc bootPkgs.alex bootPkgs.happy bootPkgs.hscolour
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
autoSignDarwinBinariesHook
Expand Down
7 changes: 5 additions & 2 deletions pkgs/development/compilers/ghc/common-hadrian.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@
-- no way to set this via the command line
finalStage :: Stage
finalStage = ${
if stdenv.hostPlatform == stdenv.targetPlatform
then "Stage2" # native compiler
# Always build the stage 2 compiler if possible. Note we can currently
# assume hostPlatform == buildPlatform.
# TODO(@sternenseemann): improve this condition when we can cross-compile GHC
if stdenv.hostPlatform.canExecute stdenv.targetPlatform
then "Stage2" # native compiler or “native” cross e.g. pkgsStatic
else "Stage1" # cross compiler
}

Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/ghcjs/8.10/common-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ in self: super: {
}) (super.ghcjs.overrideScope (self: super: {
# Allow transformers-compat >= 0.7
optparse-applicative = doJailbreak self.optparse-applicative_0_15_1_0;
ansi-wl-pprint = self.ansi-wl-pprint_0_6_9;
}));
}
6 changes: 3 additions & 3 deletions pkgs/development/haskell-modules/cabal2nix-unstable.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
}:
mkDerivation {
pname = "cabal2nix";
version = "unstable-2024-02-05";
version = "unstable-2024-04-21";
src = fetchzip {
url = "https://github.com/NixOS/cabal2nix/archive/173e8a5fa70dc95a1aeb0bd877bf5fee6d5e6b4a.tar.gz";
sha256 = "1pld7jfsjmw486ch6li1fqci1jj5p2nvfq7nrkxrmf5p2ja5528g";
url = "https://github.com/NixOS/cabal2nix/archive/f8e6bf749a158a5ed866c57deee907b5f16c38e5.tar.gz";
sha256 = "0c73mvza65iy46fv8c8cadsy7klk4jzmimm1mfdavvm8i2cr5476";
};
postUnpack = "sourceRoot+=/cabal2nix; echo source root reset to $sourceRoot";
isLibrary = true;
Expand Down
32 changes: 16 additions & 16 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ self: super: {
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;
process = self.process_1_6_19_0;
}));

# cabal-install needs most recent versions of Cabal and Cabal-syntax,
Expand All @@ -48,7 +48,7 @@ self: super: {
# cabal-install, but we need to recompile process even if the correct
# version is available to prevent inconsistent dependencies:
# process depends on directory.
process = cself.process_1_6_18_0;
process = cself.process_1_6_19_0;

# Prevent dependency on doctest which causes an inconsistent dependency
# due to depending on ghc which depends on directory etc.
Expand Down Expand Up @@ -270,20 +270,7 @@ self: super: {
ghcjs-base = null;
ghcjs-prim = null;

# 2024-03-10: Compatibility fixes have been applied upstream, but are unreleased.
ghc-debug-brick = appendPatches [
(fetchpatch {
url = "https://gitlab.haskell.org/ghc/ghc-debug/-/commit/4f195b98a8d3159bd4586af49ea8e269214a848e.patch";
sha256 = "sha256-ZMxDkkI365w/qtRc21k9UTcIiTjoOd/BGJgt/6C6P6A=";
relative = "ghc-debug-brick";
includes = ["ghc-debug-brick.cabal"];
})
(fetchpatch {
url = "https://gitlab.haskell.org/ghc/ghc-debug/-/commit/5b8f848b82ea4c5a1867b9965a973e73e5d58dad.patch";
sha256 = "sha256-XydmqScUuXyxqvW1HeKlKiiGFQi/MkM81RMPxmADrhw=";
relative = "ghc-debug-brick";
})
] super.ghc-debug-brick;
ghc-debug-client = doJailbreak super.ghc-debug-client;

# Test failure. Tests also disabled in Stackage:
# https://github.com/jtdaugherty/brick/issues/499
Expand Down Expand Up @@ -411,6 +398,13 @@ self: super: {
rm -r $out/doc/?ndroid*
'';
};

patches = drv.patches or [ ] ++ [
# Prevent .desktop files from being installed to $out/usr/share.
# TODO(@sternenseemann): submit upstreamable patch resolving this
# (this should be possible by also taking PREFIX into account).
./patches/git-annex-no-usr-prefix.patch
];
}) super.git-annex;

# Too strict bounds on servant
Expand Down Expand Up @@ -1587,8 +1581,14 @@ self: super: {
jsaddle-dom = overrideCabal (old: {
postPatch = old.postPatch or "" + ''
sed -i 's/lens.*4.20/lens/' jsaddle-dom.cabal
rm Setup.hs
'';
}) (doJailbreak super.jsaddle-dom);
jsaddle-hello = doJailbreak super.jsaddle-hello;
ghcjs-dom-hello = doJailbreak super.ghcjs-dom-hello;

# Too strict upper bounds on text
lsql-csv = doJailbreak super.lsql-csv;

reflex-dom = lib.pipe super.reflex-dom [
(appendPatch
Expand Down
11 changes: 11 additions & 0 deletions pkgs/development/haskell-modules/configuration-darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ self: super: ({
# the system-fileio tests use canonicalizePath, which fails in the sandbox
system-fileio = dontCheck super.system-fileio;

git-annex = overrideCabal (drv: {
# We can't use testFlags since git-annex side steps the Cabal test mechanism
preCheck = drv.preCheck or "" + ''
checkFlagsArray+=(
# The addurl test cases require security(1) to be in PATH which we can't
# provide from nixpkgs to my (@sternenseemann) knowledge.
"-p" "!/addurl/"
)
'';
}) super.git-annex;

# Prevents needing to add `security_tool` as a run-time dependency for
# everything using x509-system to give access to the `security` executable.
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ self: super: {
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;
ghc-lib = doDistribute self.ghc-lib_9_8_2_20240223;
megaparsec = doDistribute self.megaparsec_9_6_1;
# 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ broken-packages:
- cabal2json # failure in job https://hydra.nixos.org/build/233196099 at 2023-09-02
- cabal-audit # failure in job https://hydra.nixos.org/build/233193414 at 2023-09-02
- cabal-auto-expose # failure in job https://hydra.nixos.org/build/233195440 at 2023-09-02
- cabal-build-programs # failure in job https://hydra.nixos.org/build/257091363 at 2024-04-27
- cabal-bundle-clib # failure in job https://hydra.nixos.org/build/233199225 at 2023-09-02
- cabal-constraints # failure in job https://hydra.nixos.org/build/233214316 at 2023-09-02
- cabal-db # failure in job https://hydra.nixos.org/build/233197235 at 2023-09-02
Expand Down Expand Up @@ -738,6 +739,7 @@ broken-packages:
- changelog-d # failure in job https://hydra.nixos.org/build/252716175 at 2024-03-16
- changelog-d # failure in job https://hydra.nixos.org/build/253689337 at 2024-03-31
- changelog-d # failure in job https://hydra.nixos.org/build/255671571 at 2024-04-16
- changelog-d # failure in job https://hydra.nixos.org/build/257082502 at 2024-04-27
- changelogged # failure in job https://hydra.nixos.org/build/233211675 at 2023-09-02
- character-cases # failure in job https://hydra.nixos.org/build/233197636 at 2023-09-02
- charter # failure in job https://hydra.nixos.org/build/233237264 at 2023-09-02
Expand Down Expand Up @@ -3207,7 +3209,6 @@ broken-packages:
- joy-rewrite # failure in job https://hydra.nixos.org/build/233201002 at 2023-09-02
- jpeg # failure in job https://hydra.nixos.org/build/233204056 at 2023-09-02
- jsaddle-clib # failure in job https://hydra.nixos.org/build/233203899 at 2023-09-02
- jsaddle-warp # failure in job https://hydra.nixos.org/build/233252373 at 2023-09-02
- jsaddle-wkwebview # failure in job https://hydra.nixos.org/build/233242986 at 2023-09-02
- js-good-parts # failure in job https://hydra.nixos.org/build/233198958 at 2023-09-02
- json2 # failure in job https://hydra.nixos.org/build/233242447 at 2023-09-02
Expand Down Expand Up @@ -4910,6 +4911,7 @@ broken-packages:
- rclient # failure in job https://hydra.nixos.org/build/233239290 at 2023-09-02
- rdf4h # failure in job https://hydra.nixos.org/build/233234057 at 2023-09-02
- rds-data-codecs # failure in job https://hydra.nixos.org/build/253696582 at 2024-03-31
- react # failure in job https://hydra.nixos.org/build/257372364 at 2024-04-27
- react-flux # failure in job https://hydra.nixos.org/build/233246819 at 2023-09-02
- react-haskell # failure in job https://hydra.nixos.org/build/233242976 at 2023-09-02
- reaction-logic # failure in job https://hydra.nixos.org/build/233216789 at 2023-09-02
Expand Down Expand Up @@ -5389,6 +5391,7 @@ broken-packages:
- show-type # failure in job https://hydra.nixos.org/build/233225756 at 2023-09-02
- Shpadoinkle-console # failure in job https://hydra.nixos.org/build/233228559 at 2023-09-02
- Shpadoinkle-debug # failure in job https://hydra.nixos.org/build/233194479 at 2023-09-02
- Shpadoinkle # failure in job https://hydra.nixos.org/build/257372361 at 2024-04-27
- Shpadoinkle-isreal # failure in job https://hydra.nixos.org/build/233200051 at 2023-09-02
- shwifty # failure in job https://hydra.nixos.org/build/233249022 at 2023-09-02
- sifflet # failure in job https://hydra.nixos.org/build/233210515 at 2023-09-02
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ default-package-overrides:
- gi-gdkx11 < 4
# 2021-11-09: ghc-bignum is bundled starting with 9.0.1; only 1.0 builds with GHCs prior to 9.2.1
- ghc-bignum == 1.0
# Needs to be pinned to match jsaddle from Stackage LTS (9.8.*)
- jsaddle-dom < 0.9.9.0
- jsaddle-webkit2gtk < 0.9.9.0

extra-packages:
- Cabal-syntax == 3.6.* # Dummy package that ensures packages depending on Cabal-syntax can work for Cabal < 3.8
Expand Down Expand Up @@ -69,6 +66,7 @@ extra-packages:
- haddock-library ==1.7.* # required by stylish-cabal-0.5.0.0
- happy == 1.19.12 # for ghcjs
- hinotify == 0.3.9 # for xmonad-0.26: https://github.com/kolmodin/hinotify/issues/29
- ansi-wl-pprint >= 0.6 && < 0.7 # 2024-03-23: required for ghcjs
- hlint == 3.2.8 # 2022-09-21: needed for hls on ghc 8.8
- hlint == 3.4.1 # 2022-09-21: needed for hls with ghc-lib-parser 9.2
- hnix-store-core < 0.7 # 2023-12-11: required by hnix-store-remote 0.6
Expand Down Expand Up @@ -252,22 +250,22 @@ package-maintainers:
libjared:
- sensei
maralorn:
- bluefin
- cabal-fmt
- clay
- eventlog2html
- falsify
- generic-optics
- ghc-debug-brick
- ghc-debug-stub
- ghcid
- graphql-client
- haskell-language-server
- hedgehog
- hledger
- hledger-ui
- hledger-web
- hlint
- hmatrix
- hspec-discover
- jsaddle-warp
- matrix-client
- optics
- pandoc
Expand All @@ -276,17 +274,19 @@ package-maintainers:
- postgresql-simple
- purebred-email
- reflex-dom
- releaser
- replace-megaparsec
- req
- say
- shake-bench
- shh
- shh-extras
- snap
- stm-containers
- streamly
- streamly-bytestring
- string-interpolate
- taskwarrior
- tasty
- threadscope
- tz
- weeder
Expand Down Expand Up @@ -648,6 +648,7 @@ unsupported-platforms:
monomer: [ platforms.darwin ] # depends on mesa
monomer-hagrid: [ platforms.darwin ] # depends on mesa
mptcp-pm: [ platforms.darwin ]
mueval: [ aarch64-linux ] # https://hydra.nixos.org/build/257076117/nixlog/2 https://gitlab.haskell.org/ghc/ghc/-/issues/24432
nanovg: [ platforms.darwin ] # depends on mesa
netlink: [ platforms.darwin ]
notifications-tray-icon: [ platforms.darwin ] # depends on gi-dbusmenu
Expand Down
Loading