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

View file

@ -25,14 +25,40 @@
# has only one. # has only one.
# See https://github.com/srid/haskell-flake/blob/master/example/flake.nix # See https://github.com/srid/haskell-flake/blob/master/example/flake.nix
haskellProjects.default = { haskellProjects.default = {
# packages.haskell-template.root = ./.; # Auto-discovered by haskell-flake # The base package set (this value is the default)
overrides = self: super: { }; # 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 = { devShell = {
tools = hp: { tools = hp: {
treefmt = config.treefmt.build.wrapper; treefmt = config.treefmt.build.wrapper;
} // config.treefmt.build.programs; } // config.treefmt.build.programs;
hlsCheck.enable = false; hlsCheck.enable = false;
}; };
# What should haskell-flake add to flake outputs?
autoWire = [ "packages" "apps" "checks" ]; # Wire all but the devShell autoWire = [ "packages" "apps" "checks" ]; # Wire all but the devShell
}; };