-
Notifications
You must be signed in to change notification settings - Fork 20
/
haskell-flake-ghc94.nix
30 lines (27 loc) · 1 KB
/
haskell-flake-ghc94.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
pkgs: {
# disable local project options (always do this for package sets)
defaults.packages = {};
devShell.enable = false;
autoWire = [];
basePackages = pkgs.haskell.packages.ghc94;
packages = {
# GHC 9.4 libraries
singletons-th.source = "3.1.1";
singletons-base.source = "3.1.1";
#singletons.source = "3.0.1";
th-desugar.source = "1.14";
th-abstraction.source = "0.4.5.0";
};
# (note this is actually unused/we have to duplicate because it doesn't get
# packed into basePackages or any key we can use... but nice to document here)
devShell = {
tools = hp: {
# by default, haskell-flake uses the Haskell packages versions of these
# tools (from hp). be warned, these can be a pain to build alternatively,
# you may use nixpkgs versions via pkgs
# as of 2024-09-13 nixpkgs-unstable can't build cabal-install on GHC 9.4.
# no problem, use nixpkgs version (shouldn't really matter how built)
cabal-install = pkgs.cabal-install;
};
};
}