File tree 3 files changed +10
-11
lines changed
3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
- HOST_XDG_DATA_DIRS=" ${XDG_DATA_DIRS:- } "
2
- eval " $( lorri direnv) "
3
- export XDG_DATA_DIRS=" ${XDG_DATA_DIRS} :${HOST_XDG_DATA_DIRS} "
4
-
5
- # Use system PKI
6
- unset SSL_CERT_FILE
7
- unset NIX_SSL_CERT_FILE
8
-
9
- # Install pre-commit hooks
10
- eval " $shellHook "
1
+ use flake
Original file line number Diff line number Diff line change 2
2
3
3
# Generated by nix-pre-commit-hooks
4
4
/.pre-commit-config.yaml
5
+
6
+ # direnv
7
+ .direnv
Original file line number Diff line number Diff line change 349
349
description = lib . mdDoc "Fail when warnings are present" ;
350
350
default = false ;
351
351
} ;
352
+ offline = mkOption {
353
+ type = types . bool ;
354
+ description = lib . mdDoc "Run clippy offline" ;
355
+ default = true ;
356
+ } ;
352
357
} ;
353
358
354
359
} ;
715
720
{
716
721
name = "clippy" ;
717
722
description = "Lint Rust code." ;
718
- entry = "${ wrapper } /bin/cargo-clippy clippy ${ cargoManifestPathArg } -- ${ lib . optionalString settings . clippy . denyWarnings "-D warnings" } " ;
723
+ entry = "${ wrapper } /bin/cargo-clippy clippy ${ cargoManifestPathArg } ${ lib . optionalString settings . clippy . offline "--offline" } -- ${ lib . optionalString settings . clippy . denyWarnings "-D warnings" } " ;
719
724
files = "\\ .rs$" ;
720
725
pass_filenames = false ;
721
726
} ;
You can’t perform that action at this time.
0 commit comments