Skip to content

Commit 524539c

Browse files
authored
Merge pull request #437 from cachix/remove-package-overrides-from-base
Remove `packageOverrides` from the base hook module
2 parents 40e6053 + f3a2dee commit 524539c

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

modules/hook.nix

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -50,31 +50,6 @@ in
5050
description = lib.mdDoc
5151
''
5252
An optional package that provides the hook.
53-
54-
For most hooks, the package name matches the name of the hook and can be overridden directly.
55-
56-
```
57-
hooks.nixfmt.package = pkgs.nixfmt;
58-
```
59-
60-
Some hooks may require multiple packages or a wrapper script to function correctly.
61-
Such hooks can expose additional named packages as `packageOverrides`.
62-
63-
```
64-
hooks.rustfmt.packageOverrides.cargo = pkgs.cargo;
65-
hooks.rustfmt.packageOverrides.rustfmt = pkgs.rustfmt;
66-
```
67-
'';
68-
};
69-
70-
packageOverrides = mkOption {
71-
type = types.submodule {
72-
freeformType = types.attrsOf types.package;
73-
};
74-
default = { };
75-
description = lib.mdDoc
76-
''
77-
Additional packages required to construct the hook package.
7853
'';
7954
};
8055

0 commit comments

Comments
 (0)