Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
e7f9748
Merge 7b38f24f2fe65231f1f957d7259e929acb260c1f into haskell-updates
nixpkgs-ci[bot] Sep 21, 2025
5a2cfde
haskellPackages.dunai: drop obsolete workaround
sternenseemann Sep 21, 2025
6592fef
haskellPackages.HsSyck: remove obsolete workaround
sternenseemann Sep 21, 2025
014307e
haskellPackages.lvar: drop obsolete override
sternenseemann Sep 21, 2025
aa39e97
haskellPackages.glualint: drop obsolete override
sternenseemann Sep 21, 2025
e03351f
haskellPackages.aeson-schema: drop obsolete override
sternenseemann Sep 21, 2025
9dd4e71
Merge 6d7dc316d61add37789c272a6d23dc591ef42f66 into haskell-updates
nixpkgs-ci[bot] Sep 22, 2025
ce72c74
haskell.compiler: remove references xattr missing flag issues
sternenseemann Sep 21, 2025
98830a9
haskellPackages: stackage LTS 24.10 -> LTS 24.11
sternenseemann Sep 21, 2025
b446388
haskellPackages.math-functions: drop obsolete workaround on darwin
sternenseemann Sep 22, 2025
c4b2ed5
haskell.compiler.ghc9{4,63}: let krank ignore issue ref in patch
sternenseemann Sep 22, 2025
41bd77e
haskellPackages: fix transitive broken
wolfgangwalther Sep 22, 2025
153d929
haskellPackages.ihp-openai: unbreak
mpscholten Sep 21, 2025
579cafc
haskellPackages.ihp-openai: add maintainer mpscholten
mpscholten Sep 21, 2025
ed14964
haskellPackages.ihp-openai: unbreak (#445026)
wolfgangwalther Sep 22, 2025
0538dd6
haskellPackages.cryptonite:let krank ignore issue reference in patch
sternenseemann Sep 22, 2025
344c3ca
haskell.compiler.ghc902Binary: let krank ignore informational issue ref
sternenseemann Sep 22, 2025
a11b0c4
haskell.packages.ghc902Binary.reflection: make krank ignore closed is…
sternenseemann Sep 22, 2025
22d7eee
haskell.packages.ghc902Binary.retry: drop obsolete override
sternenseemann Sep 22, 2025
ffd683a
haskell.packages.ghc902Binary.inline-c-cpp: remove broken/obsolete ov…
sternenseemann Sep 22, 2025
b9c061d
haskell.packages.ghc92.language-javascript_0_7_0_0: drop obsolete ove…
sternenseemann Sep 22, 2025
77c788e
Merge 8e8a7943800de66a7e23052514dcb42ac4463546 into haskell-updates
nixpkgs-ci[bot] Sep 23, 2025
e2bb0d4
haskell.packages.ghc910.{hinotify,fsnotify}: drop obsolete dontChecks
sternenseemann Sep 22, 2025
a65ddea
Merge 77ac76b5ca173e9d8b9bd8798993798721f0b1e4 into haskell-updates
nixpkgs-ci[bot] Sep 24, 2025
141143d
haskellPackages: stackage LTS 24.11 -> LTS 24.12
sternenseemann Sep 25, 2025
1deb923
haskellPackages.mkDerivation: enforce unix line endings in cabal files
sternenseemann Sep 15, 2025
b7c88f1
ghcWithPackages: make krank ignore informational issue references
sternenseemann Sep 26, 2025
e1831c3
haskell.compiler: make krank ignore informational issue references
sternenseemann Sep 21, 2025
3bb02f4
doc/haskell: make krank ignore informational issue reference
sternenseemann Sep 21, 2025
19420d0
test.haskell: make krank ignore purely informational issue reference
sternenseemann Sep 21, 2025
fffe18d
haskellPackages.blockio-uring: update issue reference
sternenseemann Sep 21, 2025
fc2d612
haskellPackages.serialport: explain why we skip the test suite
sternenseemann Sep 22, 2025
1780b13
haskellPackages.GLFW-b: explain why we skip the test suite
sternenseemann Sep 22, 2025
3712b50
nixfmt-classic: note current ticket for bounds issue
sternenseemann Sep 22, 2025
e13fa66
haskellPackages.pfile: note current ticket for bounds issue
sternenseemann Sep 22, 2025
89d686c
haskellPackages.regex-applicative-text:note it won't receive updates
sternenseemann Sep 22, 2025
dc9dcaf
haskellPackages.lzma-conduit: make krank ignore closed issue
sternenseemann Sep 22, 2025
0eedc11
haskell.lib: make krank ignore informational issue references
sternenseemann Sep 22, 2025
1cb88af
haskell.lib.compose.buildStackProject: make krank ignore issue ref
sternenseemann Sep 22, 2025
58f7e2d
vaultenv: clarify that it won't be released to hackage
sternenseemann Sep 22, 2025
4809a5e
haskellPackages.spago: clarify that it won't be released to hackage
sternenseemann Sep 22, 2025
1a64625
haskellPackages.cryptonite: make krank ignore closed issue tracker
sternenseemann Sep 22, 2025
9666a0d
haskellPackages.turtle: fix mv not working on dirs
sternenseemann Sep 26, 2025
28a47a0
Merge commit e9f00bd893984bc8ce46c895c3bf7cac95 into haskell-updates
sternenseemann Sep 28, 2025
621a3a5
haskellPackages.mkDerivation: convert any/all cabal files to unix nls
sternenseemann Sep 28, 2025
d9757d4
haskellPackages.mkDerivation: jailbreak any/all cabal files
sternenseemann Sep 28, 2025
bcab0af
haskellPackages.mkDerivation: convert .cabal file after prePatch
sternenseemann Sep 28, 2025
dcb45e6
Merge 62588b43e46ada6c53de392f4cd26dbc9c984026 into haskell-updates
nixpkgs-ci[bot] Sep 29, 2025
8524458
haskellPackages.ihp{,-ide,-migrate,-postgresql-simple-extra}: add mai…
mpscholten Sep 29, 2025
b541eaa
haskellPackages.ihp{,-ide,-migrate,-postgresql-simple-extra}: add mai…
maralorn Sep 29, 2025
5ae5c0f
haskellPackages.microlens-pro: pin at 0.2.0.3
sternenseemann Sep 30, 2025
93e49c0
haskellPackages.botan-bindings: drop released patch
sternenseemann Sep 30, 2025
ee751e3
fffuu: use sourceRoot instead of cd-ing in preCompileBuildDriver
sternenseemann Sep 30, 2025
7c76fbf
haskellPackages.vaultenv: run hpack in prePatch
sternenseemann Sep 30, 2025
80d5725
echidna: run hpack in prePatch
sternenseemann Sep 30, 2025
efcc559
haskellPackages.hexstring: restore Unix->DOS conversion of src file
sternenseemann Sep 30, 2025
932b4a5
Merge commit 41b88f48c16c9f7821495ea8458d70c478 into haskell-updates
sternenseemann Oct 2, 2025
7fca207
haskellPackages.zinza: update jailbreak comment
sternenseemann Oct 2, 2025
5ba41f2
haskellPackages.granite: allow QuickCheck >= 2.15
sternenseemann Oct 2, 2025
51d02e5
haskellPackages.snappy-hs: work around erroneous vector constraint
sternenseemann Oct 2, 2025
8511e08
dhall-lsp-server: apply patch for text >= 2.1.2
sternenseemann Sep 20, 2025
9395053
dhall-lsp-server: use lsp from Stackage LTS 24
sternenseemann Sep 20, 2025
dd91ca4
haskellPackages.pandoc-crossref: revert patch requiring pandoc>=3.8
sternenseemann Sep 21, 2025
823113f
stack: provide hpack 0.38.1 to match upstream binaries
sternenseemann Sep 18, 2025
5499b12
haskellPackages.cabal2nix-unstable: use correct output on Darwin
sternenseemann Sep 22, 2025
f865d6e
ihaskell: re-enable ihaskell-diagrams
sternenseemann Sep 20, 2025
b9bb1ce
haskellPackages.{arbtt,binrep,cabal-cargs,dataframe,monad-bayes,patat…
sternenseemann Sep 20, 2025
1c6a830
haskellPackages.bloomfilter-blocked: disable test suite we can't easi…
sternenseemann Sep 22, 2025
771cacf
haskell.packages.ghc{94,96,98,912}.haskell-language-server: Fix build
maralorn Sep 20, 2025
847d79d
spago-legacy: 0.21.0 -> 0.21.1, rename from spago
sternenseemann Sep 23, 2025
022de52
spago-legacy: move to by-name
sternenseemann Sep 26, 2025
c2ae641
spago: note why alias was introduced
sternenseemann Sep 28, 2025
0c50551
haskellPackages.dataframe: drop obsolete override
sternenseemann Oct 2, 2025
7d09e5d
dhall-lsp-server: drop now unnecessary dos2unix call
sternenseemann Oct 2, 2025
22057fd
haskellPackages: disable remaining dependents on libsoup_2_4
sternenseemann Sep 26, 2025
bfa2545
Merge commit 6e0e8f1225e6279dd301c20e3e069527e3 into haskell-updates
sternenseemann Oct 3, 2025
76524eb
Merge 27ac93958969b5f3dccd654b402599cf3de633ac into haskell-updates
nixpkgs-ci[bot] Oct 4, 2025
99bf2f7
Merge 0832d1b3a08fe4c695507a075d547ebfa818dfa0 into haskell-updates
nixpkgs-ci[bot] Oct 5, 2025
faa75cc
Merge commit 'aee3f2ec9ef6ddea6115097946bc237a5b6ad8d9' into haskell-…
wolfgangwalther Oct 5, 2025
15ef3bf
pkgsCross.ghcjs.haskellPackages.reflex-dom: re-enable jobs
sternenseemann Oct 5, 2025
c7bf25d
haskell: fix missing cabal file after prePatch for various packages (…
wolfgangwalther Oct 5, 2025
d744820
[haskell-updates] cherry picks from staging-next (#447025)
wolfgangwalther Oct 5, 2025
17e7702
haskellPackages.haxl: work around broken Setup.hs
sternenseemann Oct 6, 2025
f26f3c6
haskellPackages: postgresqlTestHook overrides to configuration-nix.nix
sternenseemann Sep 26, 2025
3104b06
haskellPackages.postgresql-simple-migration: refactor override
sternenseemann Sep 26, 2025
f9cbdbc
haskellPackages: only use postgresqlTestHook if available
sternenseemann Sep 26, 2025
3570093
haskell.packages.ghc9{4,6}.toml-reader: disable unsupported tests
sternenseemann Oct 6, 2025
054e2d2
Merge commit 59f9c6722b8f24b0014f222715cc315819 into haskell-updates
sternenseemann Oct 8, 2025
386c665
Merge 3ae8d45a094c060c47a44ce68afd90012d29a912 into haskell-updates
nixpkgs-ci[bot] Oct 9, 2025
df099a8
Merge 53ba29feb0981cdb2d81c0b519dd9d95a226cdae into haskell-updates
nixpkgs-ci[bot] Oct 10, 2025
485a99f
haskellPackages.HsOpenSSL-x509-system: fix Mac runtime
raehik Oct 10, 2025
4debea0
haskellPackages: change darwin postPatch substitutes to use --replace…
raehik Oct 10, 2025
c2feefd
Merge fc430b0bdf9a58513b9f4607ef6f283f5c262e78 into haskell-updates
nixpkgs-ci[bot] Oct 11, 2025
c57e60e
Merge 799d2d581d3d46d0dfe5b8f812a99580f1ce1095 into haskell-updates
nixpkgs-ci[bot] Oct 12, 2025
722f3ef
Merge 72229b769ba6b9551010e5b31d1ebad602dcd19b into haskell-updates
nixpkgs-ci[bot] Oct 13, 2025
cac97ad
haskellPackages: fix executables built for ghcjs
alexfmpe Oct 13, 2025
087f8d5
haskellPackages: fix executables built for ghcjs (#451527)
maralorn Oct 13, 2025
f538f76
haskell-modules/configuration-hackage2nix: drop mentions of 8.10
emilazy Sep 7, 2025
72a9e52
haskellPackages: fix build of cabal-macosx
alexfmpe Oct 11, 2025
ec5a9db
emanote: remove at 1.4.0.0
sternenseemann Sep 18, 2025
02f034d
[RFC] emanote: remove at 1.4.0.0 (#444083)
wolfgangwalther Oct 13, 2025
8d1ec1d
haskellPackages.gi-gtk-hs: use gi-gtk3 and gi-gdk3 to fix build
rvl Oct 12, 2025
17cdf7e
haskellPackages.HsOpenSSL-x509-system: fix Mac runtime (#450225)
wolfgangwalther Oct 13, 2025
a579ed3
haskellPackages: fix build of cabal-macosx (#450870)
alexfmpe Oct 13, 2025
828f4ff
haskellPackages: unbreak various packages
wolfgangwalther Oct 13, 2025
3051054
haskellPackages.haxl: work around broken Setup.hs (#449093)
wolfgangwalther Oct 13, 2025
0d00b8b
Merge cf2f6d331ea6734176d4f0183cbf234f204a9da9 into haskell-updates
nixpkgs-ci[bot] Oct 14, 2025
e1a3a9d
haskellPackages.hledger_1_50_1: fix eval
wolfgangwalther Oct 14, 2025
1a0f23b
haskell-modules/HACKING: remove outdated reference to update hackage
wolfgangwalther Oct 14, 2025
dae2ecd
haskellPackages.gi-gtk-hs: Fix build (#451363)
sternenseemann Oct 15, 2025
e915fbe
haskellPackages: mark builds failing on hydra as broken
wolfgangwalther Oct 15, 2025
1144a82
Merge commit '886babdb9c62195fd4def9f30f8f690758aea3fd' into haskell-…
wolfgangwalther Oct 15, 2025
4b3b8a1
haskell.packages.{ghc94,ghc96,ghc98}.haskell-language-server: disallo…
wolfgangwalther Oct 15, 2025
44f5c58
haskell.packages.{ghc94,ghc96,ghc98}.haskell-language-server: disallo…
wolfgangwalther Oct 15, 2025
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
12 changes: 10 additions & 2 deletions doc/languages-frameworks/haskell.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,14 @@ the same package with the `previousIntermediates` argument to support
incremental builds. See [“Incremental builds”](#haskell-incremental-builds) for
more information. Defaults to `false`.

`dontConvertCabalFileToUnix`
: By default, `haskellPackages.mkDerivation` converts the `.cabal` file of a
given package to Unix line endings.
This is intended to work around
[Hackage converting revised `.cabal` files to DOS line endings](https://github.com/haskell/hackage-server/issues/316)
which frequently causes patches to stop applying.
You can pass `true` to disable this behavior.

`enableLibraryProfiling`
: Whether to enable [profiling][profiling] for libraries contained in the
package. Enabled by default if supported.
Expand Down Expand Up @@ -1249,8 +1257,8 @@ it does for the unstable branches.
### Why is topic X not covered in this section? Why is section Y missing? {#haskell-why-not-covered}

We have been working on [moving the nixpkgs Haskell documentation back into the
nixpkgs manual](https://github.com/NixOS/nixpkgs/issues/121403). Since this
process has not been completed yet, you may find some topics missing here
nixpkgs manual](https://github.com/NixOS/nixpkgs/issues/121403). <!-- krank:ignore-line -->
Since this process has not been completed yet, you may find some topics missing here
covered in the old [haskell4nix docs](https://haskell4nix.readthedocs.io/).

If you feel any important topic is not documented at all, feel free to comment
Expand Down
2 changes: 2 additions & 0 deletions doc/release-notes/rl-2511.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@

- GHC 8.6, 8.10, 9.0, 9.2, and their package sets have been removed.

- The `haskellPackages.mkDerivation` builder now converts packages' cabal files to Unix line endings before `patchPhase`. This behavior can be disabled using `dontConvertCabalFileToUnix`.

- Support for bootstrapping native GHC compilers on 32‐bit ARM and little‐endian 64‐bit PowerPC has been dropped.
The latter was probably broken anyway.
If there is interest in restoring support for these architectures, it should be possible to cross‐compile a bootstrap GHC binary.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ec/echidna/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ haskellPackages.mkDerivation rec {
makeWrapper
];

preConfigure = ''
prePatch = ''
hpack
'';

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": "c074fec58a2c83bfb17c273302005fe2625207f1",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/c074fec58a2c83bfb17c273302005fe2625207f1.tar.gz",
"sha256": "1my6xrg3m694fr3k5386yx5wqd2j0wdxfx6g3scnh5af0sx2hx0w",
"msg": "Update from Hackage at 2025-09-14T21:34:10Z"
"commit": "bea83e4ce667f3d0652a67d1f8e13f5c644d6551",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/bea83e4ce667f3d0652a67d1f8e13f5c644d6551.tar.gz",
"sha256": "10lfqcjrckxjb74xwcm73hphw1y53n080pwmjf7xzyga9hf594cn",
"msg": "Update from Hackage at 2025-09-25T14:09:07Z"
}
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/9.0.2-binary.nix
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ stdenv.mkDerivation {
# GHC cannot currently produce outputs that are ready for `-pie` linking.
# Thus, disable `pie` hardening, otherwise `recompile with -fPIE` errors appear.
# See:
# * https://github.com/NixOS/nixpkgs/issues/129247
# * https://github.com/NixOS/nixpkgs/issues/129247 krank:ignore-line
# * https://gitlab.haskell.org/ghc/ghc/-/issues/19580
hardeningDisable = [ "pie" ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/9.2.4-binary.nix
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ stdenv.mkDerivation {
# GHC cannot currently produce outputs that are ready for `-pie` linking.
# Thus, disable `pie` hardening, otherwise `recompile with -fPIE` errors appear.
# See:
# * https://github.com/NixOS/nixpkgs/issues/129247
# * https://github.com/NixOS/nixpkgs/issues/129247 krank:ignore-line
# * https://gitlab.haskell.org/ghc/ghc/-/issues/19580
hardeningDisable = [ "pie" ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/9.6.3-binary.nix
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ stdenv.mkDerivation {
# GHC cannot currently produce outputs that are ready for `-pie` linking.
# Thus, disable `pie` hardening, otherwise `recompile with -fPIE` errors appear.
# See:
# * https://github.com/NixOS/nixpkgs/issues/129247
# * https://github.com/NixOS/nixpkgs/issues/129247 krank:ignore-line
# * https://gitlab.haskell.org/ghc/ghc/-/issues/19580
hardeningDisable = [ "pie" ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/9.8.4-binary.nix
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ stdenv.mkDerivation {
# GHC cannot currently produce outputs that are ready for `-pie` linking.
# Thus, disable `pie` hardening, otherwise `recompile with -fPIE` errors appear.
# See:
# * https://github.com/NixOS/nixpkgs/issues/129247
# * https://github.com/NixOS/nixpkgs/issues/129247 krank:ignore-line
# * https://gitlab.haskell.org/ghc/ghc/-/issues/19580
hardeningDisable = [ "pie" ];

Expand Down
18 changes: 12 additions & 6 deletions pkgs/development/compilers/ghc/common-hadrian.nix
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
]
++ lib.optionals (lib.versionAtLeast version "9.6" && lib.versionOlder version "9.8") [
# Fix unlit being installed under a different name than is used in the
# settings file: https://gitlab.haskell.org/ghc/ghc/-/issues/23317
# settings file: https://gitlab.haskell.org/ghc/ghc/-/issues/23317 krank:ignore-line
(fetchpatch {
name = "ghc-9.6-fix-unlit-path.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/8fde4ac84ec7b1ead238cb158bbef48555d12af9.patch";
Expand All @@ -223,7 +223,7 @@
#
# These cause problems as they're not eliminated by GHC's dead code
# elimination on aarch64-darwin. (see
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
# https://github.com/NixOS/nixpkgs/issues/140774 for details). krank:ignore-line
(
if lib.versionOlder version "9.10" then
./Cabal-at-least-3.6-paths-fix-cycle-aarch64-darwin.patch
Expand All @@ -239,12 +239,17 @@
hash = "sha256-sb+AHdkGkCu8MW0xoQIpD5kEc0zYX8udAMDoC+TWc0Q=";
})
]
++ lib.optionals stdenv.targetPlatform.isGhcjs [
# https://gitlab.haskell.org/ghc/ghc/-/issues/26290
./export-heap-methods.patch
]
# Prevents passing --hyperlinked-source to haddock. Note that this can
# be configured via a user defined flavour now. Unfortunately, it is
# impossible to import an existing flavour in UserSettings, so patching
# the defaults is actually simpler and less maintenance intensive
# compared to keeping an entire flavour definition in sync with upstream
# manually. See also https://gitlab.haskell.org/ghc/ghc/-/issues/23625
# manually.
# See also https://gitlab.haskell.org/ghc/ghc/-/issues/23625 krank:ignore-line
++ lib.optionals (!enableHyperlinkedSource) [
(
if lib.versionOlder version "9.8" then
Expand All @@ -263,7 +268,7 @@
]
# Fixes stack overrun in rts which crashes an process whenever
# freeHaskellFunPtr is called with nixpkgs' hardening flags.
# https://gitlab.haskell.org/ghc/ghc/-/issues/25485
# https://gitlab.haskell.org/ghc/ghc/-/issues/25485 krank:ignore-line
# https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13599
++ lib.optionals (lib.versionOlder version "9.13") [
(fetchpatch {
Expand Down Expand Up @@ -767,7 +772,7 @@ stdenv.mkDerivation (
# GHC cannot currently produce outputs that are ready for `-pie` linking.
# Thus, disable `pie` hardening, otherwise `recompile with -fPIE` errors appear.
# See:
# * https://github.com/NixOS/nixpkgs/issues/129247
# * https://github.com/NixOS/nixpkgs/issues/129247 krank:ignore-line
# * https://gitlab.haskell.org/ghc/ghc/-/issues/19580
hardeningDisable = [
"format"
Expand All @@ -792,7 +797,8 @@ stdenv.mkDerivation (

''
# 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
# see https://github.com/NixOS/nixpkgs/issues/267250 krank:ignore-line
# https://gitlab.haskell.org/ghc/ghc/-/issues/24211 krank:ignore-line
+ lib.optionalString (stdenv.targetPlatform.linker == "cctools") ''
export InstallNameToolCmd=$INSTALL_NAME_TOOL
export OtoolCmd=$OTOOL
Expand Down
16 changes: 8 additions & 8 deletions pkgs/development/compilers/ghc/common-make-native-bignum.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ let
# program is built (which we generally always want to have a complete GHC install)
# and whether it is run on the GHC sources to generate hyperlinked source code
# (which is impossible for cross-compilation); see:
# https://gitlab.haskell.org/ghc/ghc/-/issues/20077
# https://gitlab.haskell.org/ghc/ghc/-/issues/20077 krank:ignore-line
# This implies that currently a cross-compiled GHC will never have a `haddock`
# program, so it can never generate haddocks for any packages.
# If this is solved in the future, we'd like to unconditionally
Expand Down Expand Up @@ -292,8 +292,8 @@ stdenv.mkDerivation (
patches = [
# Determine size of time related types using hsc2hs instead of assuming CLong.
# Prevents failures when e.g. stat(2)ing on 32bit systems with 64bit time_t etc.
# https://github.com/haskell/ghcup-hs/issues/1107
# https://gitlab.haskell.org/ghc/ghc/-/issues/25095
# https://github.com/haskell/ghcup-hs/issues/1107 krank:ignore-line
# https://gitlab.haskell.org/ghc/ghc/-/issues/25095 krank:ignore-line
# Note that in normal situations this shouldn't be the case since nixpkgs
# doesn't set -D_FILE_OFFSET_BITS=64 and friends (yet).
(fetchpatch {
Expand All @@ -304,7 +304,7 @@ stdenv.mkDerivation (
extraPrefix = "libraries/unix/";
})

# Fix docs build with Sphinx >= 7 https://gitlab.haskell.org/ghc/ghc/-/issues/24129
# Fix docs build with Sphinx >= 7 https://gitlab.haskell.org/ghc/ghc/-/issues/24129 krank:ignore-line
./docs-sphinx-7.patch

# Correctly record libnuma's library and include directories in the
Expand All @@ -328,7 +328,7 @@ stdenv.mkDerivation (
# the solution is to backport those changes from GHC 9.6 that skip the intermediate
# assembly step.
#
# https://gitlab.haskell.org/ghc/ghc/-/issues/25608#note_622589
# https://gitlab.haskell.org/ghc/ghc/-/issues/25608#note_622589 krank:ignore-line
# https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6877
++ [
# Need to use this patch so the next one applies, passes file location info to the cc phase
Expand Down Expand Up @@ -358,7 +358,7 @@ stdenv.mkDerivation (

# Fixes stack overrun in rts which crashes an process whenever
# freeHaskellFunPtr is called with nixpkgs' hardening flags.
# https://gitlab.haskell.org/ghc/ghc/-/issues/25485
# https://gitlab.haskell.org/ghc/ghc/-/issues/25485 krank:ignore-line
# https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13599
# TODO: patch doesn't apply for < 9.4, but may still be necessary?
++ [
Expand All @@ -375,7 +375,7 @@ stdenv.mkDerivation (
#
# These cause problems as they're not eliminated by GHC's dead code
# elimination on aarch64-darwin. (see
# https://github.com/NixOS/nixpkgs/issues/140774 for details).
# https://github.com/NixOS/nixpkgs/issues/140774 for details). krank:ignore-line
./Cabal-at-least-3.6-paths-fix-cycle-aarch64-darwin.patch
];

Expand Down Expand Up @@ -592,7 +592,7 @@ stdenv.mkDerivation (
# GHC cannot currently produce outputs that are ready for `-pie` linking.
# Thus, disable `pie` hardening, otherwise `recompile with -fPIE` errors appear.
# See:
# * https://github.com/NixOS/nixpkgs/issues/129247
# * https://github.com/NixOS/nixpkgs/issues/129247 krank:ignore-line
# * https://gitlab.haskell.org/ghc/ghc/-/issues/19580
hardeningDisable = [
"format"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/docs-sphinx-7.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Fix build of docs after sphinx update.
https://github.com/sphinx-doc/sphinx/pull/11381
https://gitlab.haskell.org/ghc/ghc/-/issues/24129
https://gitlab.haskell.org/ghc/ghc/-/issues/24129 krank:ignore-line
--- a/docs/users_guide/rtd-theme/layout.html
+++ b/docs/users_guide/rtd-theme/layout.html
@@ -67 +67 @@
Expand Down
11 changes: 11 additions & 0 deletions pkgs/development/compilers/ghc/export-heap-methods.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff --git a/rts/js/mem.js b/rts/js/mem.js
index 44c5c37ac4..1f150c5d55 100644
--- a/rts/js/mem.js
+++ b/rts/js/mem.js
@@ -1,5 +1,5 @@
//#OPTIONS:CPP
-//#OPTIONS:EMCC:EXPORTED_RUNTIME_METHODS=addFunction,removeFunction,getEmptyTableSlot
+//#OPTIONS:EMCC:EXPORTED_RUNTIME_METHODS=addFunction,removeFunction,getEmptyTableSlot,HEAP8,HEAPU8

// #define GHCJS_TRACE_META 1

5 changes: 3 additions & 2 deletions pkgs/development/compilers/ghc/subopt.bash
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
#
# No attempt is made to support custom LLVM optimization flags, or the
# undocumented flag to disable TBAA, or avoid
# <https://gitlab.haskell.org/ghc/ghc/-/issues/23870>, as these are not
# required to bootstrap GHC and at worst will produce an error message.
# <https://gitlab.haskell.org/ghc/ghc/-/issues/23870> (krank:ignore-line),
# as these are not required to bootstrap GHC and at worst will produce an
# error message.
#
# It is called `subopt` to reflect the fact that it uses `opt(1)` as a
# subprocess, and the fact that the GHC build system situation
Expand Down
6 changes: 0 additions & 6 deletions pkgs/development/haskell-modules/HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ opening the next one. When you want to merge the currently open
$ gh auth status
```

1. Make sure you have setup your `~/.cabal/config` file for authentication
for uploading the NixOS package versions to Hackage. See the following
section for details on how to do this.

1. Make sure you have correctly marked packages broken. One of the previous
sections explains how to do this.

Expand Down Expand Up @@ -237,8 +233,6 @@ opening the next one. When you want to merge the currently open

1. Merges the currently open `haskell-updates` PR.

1. Updates the version of Haskell packages in NixOS on Hackage.

1. Updates Stackage and Hackage snapshots. Regenerates the Haskell package set.

1. Pushes the commits updating Stackage and Hackage and opens a new
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/haskell-modules/configuration-arm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ self: super:
# AARCH32-SPECIFIC OVERRIDES

# KAT/ECB/D2 test segfaults on armv7l
# https://github.com/haskell-crypto/cryptonite/issues/367
# https://github.com/haskell-crypto/cryptonite/issues/367 krank:ignore-line
cryptonite = dontCheck super.cryptonite;
}
// lib.optionalAttrs (with pkgs.stdenv.hostPlatform; isAarch && isAndroid) {
Expand Down
Loading
Loading