mirror of
https://github.com/srid/haskell-flake.git
synced 2024-09-11 05:55:25 +03:00
Make source-overrides
support Hackage inputs (#100)
This commit is contained in:
parent
4a0bb1b43c
commit
3c35953126
@ -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)
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user