Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
963 B
Nix
39 lines
963 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
rustPlatform,
|
|
testers,
|
|
cargo-shear,
|
|
}:
|
|
let
|
|
version = "1.5.1";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "cargo-shear";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Boshen";
|
|
repo = "cargo-shear";
|
|
rev = "v${version}";
|
|
hash = "sha256-4qj+hSoByE5sfT9LTm7hsYsYpOJc5Yxak1V980L/F3c=";
|
|
};
|
|
|
|
cargoHash = "sha256-btXeytQRZ74S55cbANRGHmLPSXssNPpE/yjA1cJTy7g=";
|
|
|
|
# https://github.com/Boshen/cargo-shear/blob/a0535415a3ea94c86642f39f343f91af5cdc3829/src/lib.rs#L20-L23
|
|
SHEAR_VERSION = version;
|
|
passthru.tests.version = testers.testVersion {
|
|
package = cargo-shear;
|
|
};
|
|
|
|
meta = {
|
|
description = "Detect and remove unused dependencies from Cargo.toml";
|
|
mainProgram = "cargo-shear";
|
|
homepage = "https://github.com/Boshen/cargo-shear";
|
|
changelog = "https://github.com/Boshen/cargo-shear/blob/v${version}/CHANGELOG.md";
|
|
license = [ lib.licenses.mit ];
|
|
maintainers = [ ];
|
|
};
|
|
}
|