Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions nix/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,18 @@
mkdir -p $out
'';

cargo-shear = toolchains.nightly.mkCargoDerivation (
commonArgs
// {
cargoArtifacts = cargoArtifactsDev;
CARGO_PROFILE = "dev";
pnameSuffix = "-cargo-shear";
nativeBuildInputs = [ pkgs.cargo-shear ];
buildPhaseCargoCommand = "cargo shear";
installPhase = "mkdir -p $out";
}
);

unused-lints = toolchains.nightly.mkCargoDerivation (
commonArgs
// {
Expand Down Expand Up @@ -190,6 +202,7 @@
lint = pkgs.symlinkJoin {
name = "lint-checks-${rev}";
paths = with checks; [
cargo-shear
cargo-sort
clippy
doc
Expand Down
1 change: 1 addition & 0 deletions nix/devshell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
packages = with pkgs; [
cargo-llvm-cov
cargo-nextest
cargo-shear
cargo-sort
config.packages.validate-commits
config.treefmt.build.wrapper
Expand Down
Loading