Skip to content

Commit

Permalink
Merge pull request #321948 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 Jul 14, 2024
2 parents 0f5c4d0 + 8c5b903 commit ca5fd99
Show file tree
Hide file tree
Showing 20 changed files with 3,793 additions and 2,961 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": "a71af8d538cda614baa0bcb3e44600061f815d57",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/a71af8d538cda614baa0bcb3e44600061f815d57.tar.gz",
"sha256": "0hsqzdfb89rqmplipz39x7m80czcvrmk42y05ifnqjhxn6q4v91l",
"msg": "Update from Hackage at 2024-05-20T16:06:03Z"
"commit": "f9ce92cad6df36ec3b9dfc6807c4a1c0426c608e",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/f9ce92cad6df36ec3b9dfc6807c4a1c0426c608e.tar.gz",
"sha256": "01fnkg977fi44v0scijgrp3hq3yrqzw5k8i326a9pz8j6r676iim",
"msg": "Update from Hackage at 2024-06-23T10:38:31Z"
}
15 changes: 10 additions & 5 deletions pkgs/development/compilers/ghc/8.10.7.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
, libiconv ? null, ncurses

, # GHC can be built with system libffi or a bundled one.
# we explicitly use libffi-3.3 here because 3.4 removes a flag that causes
# problems for ghc-8.10.7's RTS. See #324384.
# Save for aarch_darwin since libffi-3.3 is broken there but the issue isn't present anyway
libffi ? null
, libffi_3_3 ? null

, useLLVM ? !(stdenv.targetPlatform.isx86
|| stdenv.targetPlatform.isPower
Expand Down Expand Up @@ -56,7 +60,7 @@
, # Whether to disable the large address space allocator
# necessary fix for iOS: https://www.reddit.com/r/haskell/comments/4ttdz1/building_an_osxi386_to_iosarm64_cross_compiler/d5qvd67/
disableLargeAddressSpace ? stdenv.targetPlatform.isiOS
}:
}@args:

assert !enableIntegerSimple -> gmp != null;

Expand All @@ -65,6 +69,7 @@ assert !enableIntegerSimple -> gmp != null;
assert (stdenv.targetPlatform != stdenv.hostPlatform) -> !enableHaddockProgram;

let
libffi_name = if stdenv.isDarwin && stdenv.isAarch64 then "libffi" else "libffi_3_3";
inherit (stdenv) buildPlatform hostPlatform targetPlatform;

inherit (bootPkgs) ghc;
Expand Down Expand Up @@ -119,7 +124,7 @@ let

# Splicer will pull out correct variations
libDeps = platform: lib.optional enableTerminfo ncurses
++ [libffi]
++ [args.${libffi_name}]
++ lib.optional (!enableIntegerSimple) gmp
++ lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;

Expand Down Expand Up @@ -334,10 +339,10 @@ stdenv.mkDerivation (rec {
configureFlags = [
"--datadir=$doc/share/doc/ghc"
"--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib"
] ++ lib.optionals (libffi != null) [
] ++ lib.optionals (args.${libffi_name} != null) [
"--with-system-libffi"
"--with-ffi-includes=${targetPackages.libffi.dev}/include"
"--with-ffi-libraries=${targetPackages.libffi.out}/lib"
"--with-ffi-includes=${targetPackages.${libffi_name}.dev}/include"
"--with-ffi-libraries=${targetPackages.${libffi_name}.out}/lib"
] ++ lib.optionals (targetPlatform == hostPlatform && !enableIntegerSimple) [
"--with-gmp-includes=${targetPackages.gmp.dev}/include"
"--with-gmp-libraries=${targetPackages.gmp.out}/lib"
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/compilers/ghc/9.6.6.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import ./common-hadrian.nix {
version = "9.6.6";
sha256 = "008f7a04d89ad10baae6486c96645d7d726aaac7e1476199f6dd86c6bd9977ad";
}
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/common-hadrian.nix
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
then ./docs-sphinx-7-ghc98.patch
else ./docs-sphinx-7.patch )
]
++ lib.optionals (lib.versionAtLeast version "9.6" && lib.versionOlder version "9.8") [
++ lib.optionals (lib.versionAtLeast version "9.6" && lib.versionOlder version "9.6.6") [
(fetchpatch {
name = "fix-fully_static.patch";
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/1bb24432ff77e11a0340a7d8586e151e15bba2a1.diff";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/compilers/koka/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
, FloatingHex
, isocline
, lens
, lsp
, lsp_2_4_0_0
, mtl
, network
, network-simple
Expand Down Expand Up @@ -78,7 +78,7 @@ mkDerivation rec {
FloatingHex
isocline
lens
lsp
lsp_2_4_0_0
mtl
network
network-simple
Expand Down
Loading

0 comments on commit ca5fd99

Please sign in to comment.