Update haskell-flake (modular overrides)

This commit is contained in:
Sridhar Ratnakumar 2023-05-30 14:01:33 -04:00
parent b17b088e3f
commit c2f12ded06
2 changed files with 31 additions and 5 deletions

6
flake.lock generated
View file

@ -35,11 +35,11 @@
},
"haskell-flake": {
"locked": {
"lastModified": 1683641774,
"narHash": "sha256-6clCN5n/qd5/hk/f+M+4sr1VVs/sEgwH+sgE7PkKQOc=",
"lastModified": 1685469326,
"narHash": "sha256-esxJLsGexI/J6Fc32tJd2p3K5IOBZSCHgFvegjIpc+0=",
"owner": "srid",
"repo": "haskell-flake",
"rev": "ebfe70269fce376a7c95d6e9f011e16cbfd29b8d",
"rev": "996f5c2cdc67285c4990df378976f9dbf26f8401",
"type": "github"
},
"original": {

View file

@ -25,14 +25,40 @@
# has only one.
# See https://github.com/srid/haskell-flake/blob/master/example/flake.nix
haskellProjects.default = {
# packages.haskell-template.root = ./.; # Auto-discovered by haskell-flake
overrides = self: super: { };
# The base package set (this value is the default)
# basePackages = pkgs.haskellPackages;
# Packages to add on top of `basePackages`
packages = {
# Add source or Hackage overrides here
# (Local packages are added automatically)
/*
aeson.source = "1.5.0.0" # Hackage version
shower.source = inputs.shower; # Flake input
*/
};
# Add your package overrides here
settings = {
/*
haskell-template = {
haddock = false;
};
aeson = {
check = false;
};
*/
};
# Development shell configuration
devShell = {
tools = hp: {
treefmt = config.treefmt.build.wrapper;
} // config.treefmt.build.programs;
hlsCheck.enable = false;
};
# What should haskell-flake add to flake outputs?
autoWire = [ "packages" "apps" "checks" ]; # Wire all but the devShell
};