nix/devshell: pin fourmolu 0.17.0.0

This commit is contained in:
Primrose 2025-04-13 11:13:49 +02:00
parent 66885d447e
commit 30bf52a283
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 24 additions and 3 deletions

View file

@ -2,21 +2,30 @@
# This is the non flake shell that just gets the basics of flora so I can have hls support outside of docker
#
let
source = import ../sources.nix;
sources = import ../sources.nix;
in
{pkgs ? import source.nixpkgs-unstable {}}:
{pkgs ? import sources.nixpkgs-unstable {}}:
pkgs.mkShell (let
libs = with pkgs; [
zlib
libpq
libsodium
];
fourmolu = let
pkgs = import sources.fourmolu-pin {};
in
with pkgs; let
hlib = haskell.lib;
fourmolu = haskell.packages.ghc910.callHackage "fourmolu" "0.17.0.0" {};
in
hlib.dontCheck (hlib.doJailbreak fourmolu);
in {
name = "flora";
packages = with pkgs;
[
haskellPackages.postgresql-migration
haskellPackages.fourmolu
fourmolu
haskellPackages.hlint
haskellPackages.apply-refact
haskellPackages.ghcid