File tree Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Expand file tree Collapse file tree 2 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 55 nixpkgs . url = "github:NixOS/nixpkgs/nixpkgs-unstable" ;
66 flake-parts . url = "github:hercules-ci/flake-parts" ;
77 pre-commit-hooks = {
8- url = "github:cachix/pre-commit-hooks.nix" ;
8+ # TODO: https://github.com/cachix/pre-commit-hooks.nix/pull/396
9+ # url = "github:cachix/pre-commit-hooks.nix";
10+ url = "github:mrcjkb/pre-commit-hooks.nix/clippy" ;
911 inputs . nixpkgs . follows = "nixpkgs" ;
1012 } ;
1113 } ;
4446 hooks = {
4547 alejandra . enable = true ;
4648 rustfmt . enable = true ;
47- # clippy.enable = true;
48- # cargo-check.enable = true;
49+ clippy . enable = true ;
50+ cargo-check . enable = true ;
51+ } ;
52+ settings = {
53+ runtimeDeps = pkgs . rocks . buildInputs ++ pkgs . rocks . nativeBuildInputs ;
54+ rust . cargoDeps = pkgs . rustPlatform . importCargoLock {
55+ lockFile = ./Cargo.lock ;
56+ } ;
57+ clippy = {
58+ denyWarnings = true ;
59+ allFeatures = true ;
60+ } ;
4961 } ;
5062 } ;
5163 in {
You can’t perform that action at this time.
0 commit comments