devShells/flora: update ghc to 9.10

This commit is contained in:
Primrose 2025-06-02 19:43:01 +02:00
parent 33e5113d90
commit a79628d7e2
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 27 additions and 16 deletions

View file

@ -4,7 +4,7 @@
let
sources = import ../sources.nix;
in
{pkgs ? import sources.nixpkgs-unstable {}}:
{pkgs ? import sources.pin-florashell {}}:
pkgs.mkShell (let
libs = with pkgs; [
zlib
@ -12,25 +12,24 @@ in
libsodium
];
fourmolu = let
pkgs = import sources.pin-fourmolu {};
in
with pkgs; let
hlib = haskell.lib;
fourmolu = haskell.packages.ghc910.callHackage "fourmolu" "0.17.0.0" {};
in
hlib.dontCheck (hlib.doJailbreak fourmolu);
hlib = pkgs.haskell.lib;
callHackage = {name, version}:
let pkg = pkgs.haskell.packages.ghc910.callHackage name version {};
in hlib.dontCheck (hlib.doJailbreak pkg);
in {
name = "flora";
packages = with pkgs;
[
haskellPackages.postgresql-migration
fourmolu
haskellPackages.hlint
haskellPackages.apply-refact
let
haskellPackages = haskell.packages.ghc910;
in
# These don't build directly and need to be pinned
map callHackage [
{name = "fourmolu"; version = "0.17.0.0";}
{name = "postgresql-migration"; version = "0.2.1.8";}
]
++ [
haskellPackages.ghcid
haskellPackages.ghc-tags
haskellPackages.cabal-fmt
haskellPackages.cabal-install
haskellPackages.ghc

View file

@ -103,6 +103,18 @@
"url": "https://github.com/NixOS/nixpkgs/archive/7282cb574e0607e65224d33be8241eae7cfe0979.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"pin-florashell": {
"branch": "nixos-25.05",
"description": "Nix Packages collection",
"homepage": null,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7282cb574e0607e65224d33be8241eae7cfe0979",
"sha256": "0klkpy7ah033y3cwj51a0l96lwmkqqvwgfv3kid4z9x5g2rqr0l5",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/7282cb574e0607e65224d33be8241eae7cfe0979.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs-unstable": {
"branch": "nixos-unstable",
"description": "Nix Packages collection & NixOS",