11 rustPlatform.buildRustPackage {
12 pname = "cargo-shear";
15 src = fetchFromGitHub {
19 hash = "sha256-xKO/57yvHSGzjWyDPu1DmI9eeDESyFgMschqK+OLUMs=";
22 cargoHash = "sha256-lwPD46irkBg+Xg9/d07Q6BPk2rzKYkj3114EiMbbd+U=";
24 # https://github.com/Boshen/cargo-shear/blob/a0535415a3ea94c86642f39f343f91af5cdc3829/src/lib.rs#L20-L23
25 SHEAR_VERSION = version;
26 passthru.tests.version = testers.testVersion {
27 package = cargo-shear;
31 description = "Detect and remove unused dependencies from Cargo.toml";
32 mainProgram = "cargo-shear";
33 homepage = "https://github.com/Boshen/cargo-shear";
34 changelog = "https://github.com/Boshen/cargo-shear/blob/v${version}/CHANGELOG.md";
35 license = [ lib.licenses.mit ];
36 maintainers = with lib.maintainers; [ uncenter ];