Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
b7d8c46
haskellPackages.ghc: 9.2.6 -> 9.2.7
sternenseemann Mar 1, 2023
499be58
haskellPackages: stackage LTS 20.11 -> LTS 20.12
sternenseemann Mar 1, 2023
a8abc9e
all-cabal-hashes: 2023-02-19T09:15:19Z -> 2023-03-01T16:43:25Z
sternenseemann Mar 1, 2023
bc6029b
haskellPackages: regenerate package set based on current config
sternenseemann Mar 1, 2023
50e7b4b
haskellPackages.haskell-gi: use hackage2nix generated 0.26.3 expr
sternenseemann Mar 1, 2023
ed65e11
haskellPackages.Cabal_3_8_1_0: drop obsolete override
sternenseemann Mar 1, 2023
0a660a7
Merge master into haskell-updates
github-actions[bot] Mar 2, 2023
5a86855
haskell.packages.*: reflect terminfo update for cross compilation
sternenseemann Mar 2, 2023
74ff13b
haskellPackages.espial: drop upstreamed patch
sternenseemann Mar 2, 2023
21b9932
haskellPackages: reflect haskelline 0.8.2 -> 0.8.2.1
sternenseemann Mar 2, 2023
7f2ac90
haskell.packages.ghc94.primitive: 0.7.4.0 -> 0.8.0.0
sternenseemann Mar 2, 2023
295066c
haskell.packages.ghc94.aeson: 2.1.1.0 -> 2.1.2.1
sternenseemann Mar 2, 2023
335f3cf
haskell.packages.ghc94.lens: 5.2 -> 5.2.1
sternenseemann Mar 2, 2023
28e1929
git-annex: update sha256 for 10.20230227
sternenseemann Mar 2, 2023
c965531
Merge remote-tracking branch 'origin/master' into haskell-updates
sternenseemann Mar 2, 2023
fa65158
elmPackages.elm-format: reflect text 2.0.1 -> 2.0.2
sternenseemann Mar 2, 2023
18c8b52
Merge master into haskell-updates
github-actions[bot] Mar 3, 2023
0054352
Merge master into haskell-updates
github-actions[bot] Mar 4, 2023
e904174
haskellPackages.drunken-bishop: unbreak (jail-break)
Mar 4, 2023
b0eb0ec
Merge pull request #219442 from KAction/v1/haskell-updates/drunken-bi…
cdepillabout Mar 4, 2023
1c43095
haskell.packages.ghc94.primitive: Pin to 0.7.4.0
maralorn Mar 4, 2023
8749e13
Merge master into haskell-updates
github-actions[bot] Mar 5, 2023
216e95c
Merge master into haskell-updates
github-actions[bot] Mar 6, 2023
5edaf69
taskell: unbreak build
avh4 Mar 6, 2023
c54e507
taskell: remove doJailbreak
avh4 Mar 6, 2023
09f2c45
diagrams-gtk: unbreak build
avh4 Mar 6, 2023
b0c4f37
Merge pull request #219776 from avh4/unbreak-taskell
cdepillabout Mar 6, 2023
6485836
Merge pull request #219782 from avh4/unbreak-diagrams-gtk
cdepillabout Mar 6, 2023
58244e9
haskellPackages: regenerate package set based on current config
cdepillabout Mar 6, 2023
3f73f26
Merge master into haskell-updates
github-actions[bot] Mar 7, 2023
70ec07b
haskell.packages.ghc94.aeson: allow quickcheck-instances 0.3.28
sternenseemann Mar 7, 2023
7587e05
Merge master into haskell-updates
github-actions[bot] Mar 8, 2023
faa92cd
pkgsCross.ghcjs.haskellPackages.ghc: formally disable shared libs
sternenseemann Feb 19, 2023
471b9ca
haskell.compiler.ghcHEAD: 9.7.20221224 -> 9.7.20230217
sternenseemann Feb 19, 2023
23dc76f
haskell.compiler.ghcHEAD: fix hadrianFlagsArray handling
sternenseemann Feb 20, 2023
97d55ec
haskell.compiler.ghcHEAD: drop malformed/redundant hadrian setting
sternenseemann Feb 22, 2023
4bda2ab
Merge master into haskell-updates
github-actions[bot] Mar 9, 2023
bf7ad8a
Merge master into haskell-updates
github-actions[bot] Mar 10, 2023
100d887
release-haskell.nix: add aarch64-darwin
sternenseemann Mar 10, 2023
6fd435b
Merge pull request #220487 from sternenseemann/release-haskell-add-aa…
maralorn Mar 10, 2023
54e1e43
Merge master into haskell-updates
github-actions[bot] Mar 11, 2023
f2ae2be
Merge remote-tracking branch 'origin/master' into haskell-updates
sternenseemann Mar 11, 2023
f2032fa
Merge master into haskell-updates
github-actions[bot] Mar 12, 2023
f07d4d0
haskell.compiler.ghc961: init at 9.6.1
sternenseemann Jan 15, 2023
7b7a444
Revert "haskellPackages.regex-rure: mark broken on aarch64-darwin"
sternenseemann Mar 12, 2023
a738911
release-haskell.nix: disable musl dependent jobs on aarch64-darwin
sternenseemann Mar 12, 2023
b68d8e3
Merge master into haskell-updates
github-actions[bot] Mar 13, 2023
b2c570e
haskell.compiler: always include python when building with hadrian
sternenseemann Mar 13, 2023
5cc155a
Merge remote-tracking branch 'origin/master' into haskell-updates
sternenseemann Mar 13, 2023
4d41563
haskellPackages.graphql: allow hspec 2.9
sternenseemann Mar 13, 2023
94c2ac5
haskellPackages: mark builds failing on hydra as broken
sternenseemann Mar 13, 2023
4fa82b9
Merge remote-tracking branch 'origin/master' into haskell-updates
sternenseemann Mar 13, 2023
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
24 changes: 14 additions & 10 deletions doc/languages-frameworks/haskell.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ $ nix-env -f '<nixpkgs>' -qaP -A haskell.compiler
haskell.compiler.ghc810 ghc-8.10.7
haskell.compiler.ghc88 ghc-8.8.4
haskell.compiler.ghc90 ghc-9.0.2
haskell.compiler.ghc92 ghc-9.2.4
haskell.compiler.ghc924 ghc-9.2.4
haskell.compiler.ghc925 ghc-9.2.5
haskell.compiler.ghc926 ghc-9.2.6
haskell.compiler.ghc92 ghc-9.2.7
haskell.compiler.ghc942 ghc-9.4.2
haskell.compiler.ghc943 ghc-9.4.3
haskell.compiler.ghc94 ghc-9.4.4
Expand All @@ -86,13 +88,15 @@ haskell.compiler.ghc924Binary ghc-binary-9.2.4
haskell.compiler.ghc924BinaryMinimal ghc-binary-9.2.4
haskell.compiler.integer-simple.ghc810 ghc-integer-simple-8.10.7
haskell.compiler.integer-simple.ghc8107 ghc-integer-simple-8.10.7
haskell.compiler.integer-simple.ghc884 ghc-integer-simple-8.8.4
haskell.compiler.integer-simple.ghc88 ghc-integer-simple-8.8.4
haskell.compiler.integer-simple.ghc884 ghc-integer-simple-8.8.4
haskell.compiler.native-bignum.ghc90 ghc-native-bignum-9.0.2
haskell.compiler.native-bignum.ghc902 ghc-native-bignum-9.0.2
haskell.compiler.native-bignum.ghc92 ghc-native-bignum-9.2.4
haskell.compiler.native-bignum.ghc924 ghc-native-bignum-9.2.4
haskell.compiler.native-bignum.ghc925 ghc-native-bignum-9.2.5
haskell.compiler.native-bignum.ghc926 ghc-native-bignum-9.2.6
haskell.compiler.native-bignum.ghc92 ghc-native-bignum-9.2.7
haskell.compiler.native-bignum.ghc927 ghc-native-bignum-9.2.7
haskell.compiler.native-bignum.ghc942 ghc-native-bignum-9.4.2
haskell.compiler.native-bignum.ghc943 ghc-native-bignum-9.4.3
haskell.compiler.native-bignum.ghc94 ghc-native-bignum-9.4.4
Expand All @@ -105,15 +109,15 @@ Each of those compiler versions has a corresponding attribute set built using
it. However, the non-standard package sets are not tested regularly and, as a
result, contain fewer working packages. The corresponding package set for GHC
9.4.4 is `haskell.packages.ghc944`. In fact `haskellPackages` is just an alias
for `haskell.packages.ghc924`:
for `haskell.packages.ghc927`:

```console
$ nix-env -f '<nixpkgs>' -qaP -A haskell.packages.ghc924
haskell.packages.ghc924.a50 a50-0.5
haskell.packages.ghc924.AAI AAI-0.2.0.1
haskell.packages.ghc924.aasam aasam-0.2.0.0
haskell.packages.ghc924.abacate abacate-0.0.0.0
haskell.packages.ghc924.abc-puzzle abc-puzzle-0.2.1
$ nix-env -f '<nixpkgs>' -qaP -A haskell.packages.ghc927
haskell.packages.ghc927.a50 a50-0.5
haskell.packages.ghc927.AAI AAI-0.2.0.1
haskell.packages.ghc927.aasam aasam-0.2.0.0
haskell.packages.ghc927.abacate abacate-0.0.0.0
haskell.packages.ghc927.abc-puzzle abc-puzzle-0.2.1
```

Expand Down
2 changes: 1 addition & 1 deletion lib/systems/doubles.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let
"x86_64-solaris"

# JS
"js-ghcjs"
"javascript-ghcjs"

# Linux
"aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux"
Expand Down
5 changes: 4 additions & 1 deletion lib/systems/examples.nix
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ rec {

# Ghcjs
ghcjs = {
config = "js-unknown-ghcjs";
# This triple is special to GHC/Cabal/GHCJS and not recognized by autotools
# See: https://gitlab.haskell.org/ghc/ghc/-/commit/6636b670233522f01d002c9b97827d00289dbf5c
# https://github.com/ghcjs/ghcjs/issues/53
config = "javascript-unknown-ghcjs";
};
}
2 changes: 1 addition & 1 deletion lib/systems/inspect.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ rec {
isM68k = { cpu = { family = "m68k"; }; };
isS390 = { cpu = { family = "s390"; }; };
isS390x = { cpu = { family = "s390"; bits = 64; }; };
isJavaScript = { cpu = cpuTypes.js; };
isJavaScript = { cpu = cpuTypes.javascript; };

is32bit = { cpu = { bits = 32; }; };
is64bit = { cpu = { bits = 64; }; };
Expand Down
2 changes: 1 addition & 1 deletion lib/systems/parse.nix
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ rec {

or1k = { bits = 32; significantByte = bigEndian; family = "or1k"; };

js = { bits = 32; significantByte = littleEndian; family = "js"; };
javascript = { bits = 32; significantByte = littleEndian; family = "javascript"; };
};

# GNU build systems assume that older NetBSD architectures are using a.out.
Expand Down
4 changes: 3 additions & 1 deletion maintainers/scripts/haskell/hydra-report.hs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ platformIcon (Platform x) = case x of
"x86_64-linux" -> ":penguin:"
"aarch64-linux" -> ":iphone:"
"x86_64-darwin" -> ":apple:"
"aarch64-darwin" -> ":green_apple:"
_ -> x

data BuildResult = BuildResult {state :: BuildState, id :: Int} deriving (Show, Eq, Ord)
Expand Down Expand Up @@ -488,7 +489,8 @@ printBuildSummary eval@Eval{id} fetchTime summary topBrokenRdeps =
if' (isNothing maintainedJob) "No `maintained` job found." <>
if' (Unfinished > maybe Success worstState mergeableJob) "`mergeable` jobset failed." <>
if' (outstandingJobs (Platform "x86_64-linux") > 100) "Too many outstanding jobs on x86_64-linux." <>
if' (outstandingJobs (Platform "aarch64-linux") > 100) "Too many outstanding jobs on aarch64-linux."
if' (outstandingJobs (Platform "aarch64-linux") > 100) "Too many outstanding jobs on aarch64-linux." <>
if' (outstandingJobs (Platform "aarch64-darwin") > 100) "Too many outstanding jobs on aarch64-darwin."
if' p e = if p then [e] else mempty
outstandingJobs platform | Table m <- numSummary = Map.findWithDefault 0 (platform, Unfinished) m
maintainedJob = Map.lookup "maintained" summary
Expand Down
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2305.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ In addition to numerous new and upgraded packages, this release has the followin

- Calling `makeSetupHook` without passing a `name` argument is deprecated.

- `lib.systems.examples.ghcjs` and consequently `pkgsCross.ghcjs` now use the target triplet `javascript-unknown-ghcjs` instead of `js-unknown-ghcjs`. This has been done to match an [upstream decision](https://gitlab.haskell.org/ghc/ghc/-/commit/6636b670233522f01d002c9b97827d00289dbf5c) to follow Cabal's platform naming more closely. Nixpkgs will also reject `js` as an architecture name.

- The `cosmoc` package has been removed. The upstream scripts in `cosmocc` should be used instead.

- Qt 5.12 and 5.14 have been removed, as the corresponding branches have been EOL upstream for a long time. This affected under 10 packages in nixpkgs, largely unmaintained upstream as well, however, out-of-tree package expressions may need to be updated manually.
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": "1f7cec5b787f338430007a1176f686ddbd85cbc5",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/1f7cec5b787f338430007a1176f686ddbd85cbc5.tar.gz",
"sha256": "0ddnzb8l5gbpsar1pz2dq86xa1mv4840f9ppk5viwnzgyfiqzfv8",
"msg": "Update from Hackage at 2023-02-19T09:15:19Z"
"commit": "083bd4855df26eb1db1c38c31fdf79ccf67c2f13",
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/083bd4855df26eb1db1c38c31fdf79ccf67c2f13.tar.gz",
"sha256": "0m0d33xd1zfpcdbyhq7akq73dpgwggi39l1wp99vpfgpi220ad5a",
"msg": "Update from Hackage at 2023-03-01T16:43:25Z"
}
2 changes: 1 addition & 1 deletion pkgs/development/compilers/elm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ let
elm-format-markdown = self.callPackage ./packages/elm-format-markdown.nix {};

# elm-format requires text >= 2.0
text = self.text_2_0_1;
text = self.text_2_0_2;
# elm-format-lib requires hspec-golden < 0.2
hspec-golden = self.hspec-golden_0_1_0_3;
# unorderd-container's tests indirectly depend on text < 2.0
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/compilers/ghc/9.6.1.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import ./common-hadrian.nix rec {
version = "9.6.1";
sha256 = "fe5ac909cb8bb087e235de97fa63aff47a8ae650efaa37a2140f4780e21f34cb";
}
19 changes: 8 additions & 11 deletions pkgs/development/compilers/ghc/common-hadrian.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

, # Whether to build dynamic libs for the standard library (on the target
# platform). Static libs are always built.
enableShared ? with stdenv.targetPlatform; !isWindows && !useiOSPrebuilt && !isStatic
enableShared ? with stdenv.targetPlatform; !isWindows && !useiOSPrebuilt && !isStatic && !isGhcjs

, # Whether to build terminfo.
enableTerminfo ? !(stdenv.targetPlatform.isWindows
Expand Down Expand Up @@ -91,7 +91,7 @@
transformers =
lib.optionals useLLVM [ "llvm" ]
++ lib.optionals (!enableShared) [
"fully_static"
"no_dynamic_libs"
"no_dynamic_ghc"
]
++ lib.optionals (!enableProfiledLibs) [ "no_profiled_libs" ]
Expand Down Expand Up @@ -182,7 +182,6 @@ let
# be needed for TemplateHaskell. This solution was described in
# https://www.tweag.io/blog/2020-09-30-bazel-static-haskell
lib.optionals enableRelocatedStaticLibs [
"*.*.rts.*.opts += -fPIC -fexternal-dynamic-refs"
"*.*.ghc.*.opts += -fPIC -fexternal-dynamic-refs"
]
++ lib.optionals targetPlatform.useAndroidPrebuilt [
Expand Down Expand Up @@ -396,16 +395,14 @@ stdenv.mkDerivation ({

nativeBuildInputs = [
perl ghc hadrian bootPkgs.alex bootPkgs.happy bootPkgs.hscolour
] ++ lib.optionals (rev != null) [
# We need to execute the boot script
autoconf automake m4 python3
# autoconf and friends are necessary for hadrian to create the bindist
autoconf automake m4
# Python is used in a few scripts invoked by hadrian to generate e.g. rts headers.
python3
] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
autoSignDarwinBinariesHook
] ++ lib.optionals enableDocs [
sphinx
] ++ lib.optionals targetPlatform.isGhcjs [
# emscripten itself is added via depBuildTarget / targetCC
python3
];

# For building runtime libs
Expand All @@ -426,10 +423,10 @@ stdenv.mkDerivation ({
runHook preBuild

# hadrianFlagsArray is created in preConfigure
echo "hadrianFlags: $hadrianFlags ''${hadrianFlagsArray}"
echo "hadrianFlags: $hadrianFlags ''${hadrianFlagsArray[@]}"

# We need to go via the bindist for installing
hadrian $hadrianFlags "''${hadrianFlagsArray}" binary-dist-dir
hadrian $hadrianFlags "''${hadrianFlagsArray[@]}" binary-dist-dir

runHook postBuild
'';
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.7.20221224";
rev = "a5bd0eb8dd1d03c54e1b0b476ebbc4cc886d6f19";
sha256 = "1rrds9alzpy4vyh2isan32h1zmf44nsr8552wbsn1y3fg6bnpbxi";
version = "9.7.20230217";
rev = "a203ad854ffee802e6bf0aca26e6c9a99bec3865";
sha256 = "06q6l7svdynvdv90yz6dxbsk3j5c8gh5ghwfl02rdwamcrzw7zic";
}
47 changes: 19 additions & 28 deletions pkgs/development/haskell-modules/configuration-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ self: super: {
name = "git-annex-${super.git-annex.version}-src";
url = "git://git-annex.branchable.com/";
rev = "refs/tags/" + super.git-annex.version;
sha256 = "1g1m18l7cx2y5d43k0vy5bqn4znybq0p345399zf9nkwhwhb7s20";
sha256 = "0ngvdcvskrhdq4m19h4b1cq3jhbzx0bqay6hvsppk6cb2y4wkfd9";
# delete android and Android directories which cause issues on
# darwin (case insensitive directory). Since we don't need them
# during the build process, we can delete it to prevent a hash
Expand Down Expand Up @@ -285,6 +285,11 @@ self: super: {
opencv = dontCheck (appendPatch ./patches/opencv-fix-116.patch super.opencv);
opencv-extra = dontCheck (appendPatch ./patches/opencv-fix-116.patch super.opencv-extra);

# Too strict lower bound on hspec
graphql =
assert lib.versionOlder self.hspec.version "2.10";
doJailbreak super.graphql;

# https://github.com/ekmett/structures/issues/3
structures = dontCheck super.structures;

Expand Down Expand Up @@ -1329,20 +1334,6 @@ self: super: {
})
] super.svgcairo;

# Espial is waiting for a hackage release to be compatible with GHC 9.X.
# [This issue](https://github.com/jonschoning/espial/issues/49) can be followed
# to track the status of the new release.
espial =
let ghc9-compat = fetchpatch {
url = "https://github.com/jonschoning/espial/commit/70177f9efb9666c3616e8a474681d3eb763d0e84.patch";
sha256 = "sha256-aJtwZGp9DUpACBV0WYRL7k32m6qWf5vq6eKBFq/G23s=";
excludes = ["package.yaml" "stack.yaml" "stack.yaml.lock"];
};
in overrideCabal (drv: {
jailbreak = assert super.espial.version == "0.0.11"; true;
patches = [ ghc9-compat ];
}) super.espial;

# Upstream PR: https://github.com/jkff/splot/pull/9
splot = appendPatch (fetchpatch {
url = "https://github.com/jkff/splot/commit/a6710b05470d25cb5373481cf1cfc1febd686407.patch";
Expand All @@ -1352,7 +1343,7 @@ self: super: {
# Fails with encoding problems, likely needs locale data.
# Test can be executed by adding which to testToolDepends and
# $PWD/dist/build/haskeline-examples-Test to $PATH.
haskeline_0_8_2 = dontCheck super.haskeline_0_8_2;
haskeline_0_8_2_1 = doDistribute (dontCheck super.haskeline_0_8_2_1);

# Too strict upper bound on HTF
# https://github.com/nikita-volkov/stm-containers/issues/29
Expand Down Expand Up @@ -1543,7 +1534,7 @@ self: super: {
# 2022-03-19: strict upper bounds https://github.com/poscat0x04/hinit/issues/2
hinit = doJailbreak
(self.generateOptparseApplicativeCompletions [ "hi" ]
(super.hinit.override { haskeline = self.haskeline_0_8_2; }));
(super.hinit.override { haskeline = self.haskeline_0_8_2_1; }));

# 2020-11-23: https://github.com/Rufflewind/blas-hs/issues/8
blas-hs = dontCheck super.blas-hs;
Expand Down Expand Up @@ -1800,10 +1791,11 @@ self: super: {
# https://github.com/serokell/haskell-crypto/issues/25
crypto-sodium = dontCheck super.crypto-sodium;

# Too strict version bounds on a bunch of libraries:
# https://github.com/smallhadroncollider/taskell/issues/100
# May be possible to remove at the next release (1.11.0)
taskell = doJailbreak super.taskell;
taskell = super.taskell.override {
# Does not support brick >= 1.0
# https://github.com/smallhadroncollider/taskell/issues/125
brick = self.brick_0_70_1;
};

# Polyfill for GHCs from the integer-simple days that don't bundle ghc-bignum
ghc-bignum = super.ghc-bignum or self.mkDerivation {
Expand Down Expand Up @@ -2125,6 +2117,7 @@ self: super: {
"-p" "!/Test Rendering/"
] ++ drv.testFlags or [];
}) super.morpheus-graphql;
drunken-bishop = doJailbreak super.drunken-bishop;
# https://github.com/SupercedeTech/dropbox-client/issues/1
dropbox = overrideCabal (drv: {
testFlags = [
Expand Down Expand Up @@ -2248,15 +2241,10 @@ self: super: {
# Too strict bounds on chell: https://github.com/fpco/haskell-filesystem/issues/24
system-fileio = doJailbreak super.system-fileio;

# Temporarily upgrade haskell-gi until our hackage pin advances
# Temporarily upgrade haskell-gi until stackage advances
# Fixes build of gi-harfbuzz with harfbuzz >= 7.0
# https://github.com/haskell-gi/haskell-gi/issues/396#issuecomment-1445181362
haskell-gi =
assert super.haskell-gi.version == "0.26.2";
overrideCabal {
version = "0.26.3";
sha256 = "sha256-jsAb3JCSHCmi2dp9bpi/J3NRO/EQFB8ar4GpxAuBGOo=";
} super.haskell-gi;
haskell-gi = doDistribute self.haskell-gi_0_26_3;

# Bounds too strict on base and ghc-prim: https://github.com/tibbe/ekg-core/pull/43 (merged); waiting on hackage release
ekg-core = assert super.ekg-core.version == "0.1.1.7"; doJailbreak super.ekg-core;
Expand Down Expand Up @@ -2503,4 +2491,7 @@ self: super: {
# bytestring <0.11.0, optparse-applicative <0.13.0
# https://github.com/kseo/sfnt2woff/issues/1
sfnt2woff = doJailbreak super.sfnt2woff;

# 2023-03-05: restrictive bounds on base https://github.com/diagrams/diagrams-gtk/issues/11
diagrams-gtk = doJailbreak super.diagrams-gtk;
} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ self: super: {
stm = null;
template-haskell = null;
# GHC only builds terminfo if it is a native compiler
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_5;
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_6;
text = null;
time = null;
transformers = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ self: super: {
stm = null;
template-haskell = null;
# GHC only builds terminfo if it is a native compiler
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_5;
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_6;
text = null;
time = null;
transformers = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ self: super: {
stm = null;
template-haskell = null;
# GHC only builds terminfo if it is a native compiler
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_5;
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_6;
text = null;
time = null;
transformers = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ self: super: {
stm = null;
template-haskell = null;
# GHC only builds terminfo if it is a native compiler
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_5;
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_6;
text = null;
time = null;
transformers = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ self: super: {
stm = null;
template-haskell = null;
# GHC only builds terminfo if it is a native compiler
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_5;
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_6;
text = null;
time = null;
transformers = null;
Expand Down
8 changes: 4 additions & 4 deletions pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ in {
system-cxx-std-lib = null;
template-haskell = null;
# GHC only builds terminfo if it is a native compiler
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_5;
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_6;
text = null;
time = null;
transformers = null;
Expand All @@ -71,7 +71,8 @@ in {

# Jailbreaks & Version Updates

aeson = self.aeson_2_1_1_0;
# Jailbreak to allow quickcheck-instances-0.3.28 (too strict lower bound)
aeson = doDistribute (doJailbreak self.aeson_2_1_2_1);

assoc = doJailbreak super.assoc;
async = doJailbreak super.async;
Expand Down Expand Up @@ -146,8 +147,7 @@ in {
] ++ drv.testFlags or [];
}) (doJailbreak super.hpack);

# lens >= 5.1 supports 9.2.1
lens = doDistribute self.lens_5_2;
lens = doDistribute self.lens_5_2_1;

# Apply patches from head.hackage.
language-haskell-extract = appendPatch (pkgs.fetchpatch {
Expand Down
Loading