-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update flake.nix to make GHC 9.10.1 and GHC 9.8.2 available (#2810)
* Update GHC 9.6.2 to 9.6.6. * Enable GHC 9.8.2 and remove GHC 9.0.2. * Export ghcVersion from flake.nix. * Remove Hackage calls for packages already in nixpkgs. * Add GHC 9.10.1. * Add comments to overlays. * Make GHC 9.10 the default in flake.nix. * Remove commented code.
- Loading branch information
Showing
7 changed files
with
118 additions
and
72 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ pkgs }: | ||
final: prev: | ||
let | ||
inherit (pkgs.haskell.lib) dontCheck doJailbreak markUnbroken; | ||
in | ||
{ | ||
# Use an older version than the default in nixpkgs. Since rewrite-inspector | ||
# is basically abandonware it catches fire with brick 1.0+. | ||
brick = doJailbreak prev.brick_0_70_1; | ||
|
||
# brick 0.70.1 requires vty < 6.0. | ||
vty = doJailbreak (prev.callHackage "vty" "5.39" { }); | ||
|
||
# Relies on older versions of some libraries. | ||
hint = doJailbreak prev.hint; | ||
|
||
# Marked as broken in nixpkgs, since it specifies much older dependencies | ||
# than the defaults in nixpkgs. | ||
rewrite-inspector = doJailbreak (markUnbroken prev.rewrite-inspector); | ||
|
||
# Requires some old versions of libraries, but still works. | ||
derive-storable-plugin = doJailbreak prev.derive-storable-plugin; | ||
|
||
# Marken as broken, but compiles anyway. | ||
hedgehog-fakedata = doJailbreak (markUnbroken prev.hedgehog-fakedata); | ||
|
||
# Fails on GHC 9.10 with: | ||
# library/Text/Regex/PCRE/Heavy.hs:123: failure in expression `head $ scan [re|\s*entry (\d+) (\w+)\s*&?|] (" entry 1 hello &entry 2 hi" :: String)' | ||
# expected: (" entry 1 hello &",["1","hello"]) | ||
# but got: <interactive>:55:1: warning: [GHC-63394] [-Wx-partial] | ||
# ^ | ||
# In the use of ‘head’ | ||
# (imported from Prelude.Compat, but defined in GHC.Internal.List): | ||
# "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"." | ||
# (" entry 1 hello &",["1","hello"]) | ||
|
||
pcre-heavy = dontCheck prev.pcre-heavy; | ||
|
||
# Relies on older versions of text. | ||
string-random = doJailbreak prev.string-random; | ||
|
||
# We need the newest version from nixpkgs for these packages. | ||
singletons-base = prev.singletons-base_3_4; | ||
|
||
microstache = prev.microstache_1_0_3; | ||
|
||
th-desugar = prev.th-desugar_1_17; | ||
|
||
singletons-th = prev.singletons-th_3_4; | ||
|
||
# nixplgs doesn't include revision 1, changing dependency on template-haskell. | ||
string-interpolate = pkgs.haskell.lib.compose.overrideCabal (drv: { | ||
revision = "1"; | ||
editedCabalFile = "sha256-oh0tR+LDFcVzQnm4kSrmhAU+P7wdai536d72Cvhzipg="; | ||
}) (prev.callHackageDirect { | ||
pkg = "string-interpolate"; | ||
ver = "0.3.4.0"; | ||
sha256 = "sha256-KA8P6cc6N7pZ9/ay3edcEGx4vpKtp+EY7tn8U1NrbG8="; | ||
} { }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ pkgs }: | ||
final: prev: | ||
let | ||
inherit (pkgs.haskell.lib) doJailbreak markUnbroken; | ||
in | ||
{ | ||
# Use an older version than the default in nixpkgs. Since rewrite-inspector | ||
# is basically abandonware it catches fire with brick 1.0+. | ||
brick = doJailbreak prev.brick_0_70_1; | ||
|
||
# brick 0.70.1 requires vty < 6.0. | ||
vty = doJailbreak (prev.callHackage "vty" "5.39" { }); | ||
|
||
# Marked as broken in nixpkgs, since it specifies much older dependencies | ||
# than the defaults in nixpkgs. | ||
rewrite-inspector = doJailbreak (markUnbroken prev.rewrite-inspector); | ||
|
||
# Requires some old versions of libraries, but still works. | ||
derive-storable-plugin = doJailbreak prev.derive-storable-plugin; | ||
|
||
# Marken as broken, but compiles anyway. | ||
hedgehog-fakedata = doJailbreak (markUnbroken prev.hedgehog-fakedata); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters