Make source-overrides support Hackage inputs (#100)

This commit is contained in:
Sridhar Ratnakumar 2023-03-01 09:48:48 -05:00 committed by GitHub
parent 4a0bb1b43c
commit 3c35953126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,7 @@
- #49 & #91: The `packages` option now autodiscovers the top-level `.cabal` file (in addition to looking inside sub-directories) as its default value.
- #69: The default flake template creates `flake.nix` only, while the `#example` one creates the full Haskell project template.
- #92: Add `devShell.mkShellArgs` to pass custom arguments to `mkShell`
- #100: `source-overrides` option now supports specifying Hackage versions.
- API changes
- #37: Group `buildTools` (renamed to `tools`), `hlsCheck` and `hlintCheck` under the `devShell` submodule option; and allow disabling them all using `devShell.enable = false;` (useful if you want haskell-flake to produce just the package outputs).
- #64: Remove hlintCheck (use [treefmt-nix](https://github.com/numtide/treefmt-nix#flake-parts) instead)

View File

@ -110,8 +110,13 @@ in
defaultText = lib.literalExpression "pkgs.haskellPackages";
};
source-overrides = mkOption {
type = types.attrsOf types.path;
description = ''Package overrides given new source path'';
type = types.attrsOf (types.oneOf [ types.path types.str ]);
description = ''
Source overrides for Haskell packages
You can either assign a path to the source, or Hackage
version string.
'';
default = { };
};
overrides = mkOption {