Remove 'pre-commit' check from flake

Since trying to run it results into a failure due to 'clippy' trying to
fetch the network inside the build sandbox, remove it from the 'checks'
for now, but do keep it around for its 'shellHook'.
This commit is contained in:
Bruno BELANYI 2022-07-25 16:40:56 +02:00
parent c8d7c17711
commit ae1c3322d5

View file

@ -80,9 +80,6 @@
rustc = my-rust; rustc = my-rust;
}; };
inherit (pkgs) lib; inherit (pkgs) lib;
in
rec {
checks = {
pre-commit = pre-commit =
let let
# See https://github.com/cachix/pre-commit-hooks.nix/issues/126 # See https://github.com/cachix/pre-commit-hooks.nix/issues/126
@ -117,7 +114,8 @@
}; };
}; };
}; };
}; in
rec {
devShells = { devShells = {
default = pkgs.mkShell { default = pkgs.mkShell {
@ -131,7 +129,7 @@
my-rust my-rust
]; ];
inherit (checks.pre-commit) shellHook; inherit (pre-commit) shellHook;
RUST_SRC_PATH = "${my-rust}/lib/rustlib/src/rust/library"; RUST_SRC_PATH = "${my-rust}/lib/rustlib/src/rust/library";
}; };