11 rustPlatform.buildRustPackage {
12 pname = "cargo-shear";
15 src = fetchFromGitHub {
19 hash = "sha256-40LBTB/lDY1UxK2dCqZJu1CUIqJxMbDxpSTlSLClpVY=";
22 cargoHash = "sha256-GmNKUv0jfQ59pG8AspZT1NTX0AJQ9xl93LbCgUzPllo=";
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 ];