File tree 1 file changed +27
-10
lines changed
1 file changed +27
-10
lines changed Original file line number Diff line number Diff line change 1
- { inputs } :
2
- inputs . shellHooks . lib . run {
3
- src = ../.. ;
4
- hooks = {
5
- alejandra . enable = true ;
6
- rustfmt . enable = true ;
7
- clippy . enable = true ;
8
- } ;
9
- settings . clippy . denyWarnings = true ;
10
- }
1
+ {
2
+ inputs ,
3
+ nixpkgs ,
4
+ lib ,
5
+ } : let
6
+ # temporary, until https://github.com/commitizen-tools/commitizen/pull/644 is merged
7
+ commitizen = nixpkgs . commitizen . overridePythonAttrs ( _ : {
8
+ doCheck = false ;
9
+ src = builtins . fetchGit {
10
+ url = "https://github.com/skoef/commitizen/" ;
11
+ ref = "add-hooks-for-bump-command" ;
12
+ rev = "d7c86c8244af0cb5be1ab2b3882d0af74a191352" ;
13
+ } ;
14
+ } ) ;
15
+ in
16
+ ( inputs . shellHooks . lib . run {
17
+ src = ../.. ;
18
+ hooks = {
19
+ alejandra . enable = true ;
20
+ rustfmt . enable = true ;
21
+ clippy . enable = true ;
22
+ commitizen . enable = true ;
23
+ } ;
24
+ settings . clippy . denyWarnings = true ;
25
+ tools = { inherit commitizen ; } ;
26
+ } )
27
+ // { passthru . commitizen = commitizen ; }
You can’t perform that action at this time.
0 commit comments