ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / cargo-shear / package.nix
blobd8efe2547c43363b40dd0c7f7ebbc3d9e882d7db
2   fetchFromGitHub,
3   lib,
4   rustPlatform,
5   testers,
6   cargo-shear,
7 }:
8 let
9   version = "1.1.4";
11 rustPlatform.buildRustPackage {
12   pname = "cargo-shear";
13   inherit version;
15   src = fetchFromGitHub {
16     owner = "Boshen";
17     repo = "cargo-shear";
18     rev = "v${version}";
19     hash = "sha256-40LBTB/lDY1UxK2dCqZJu1CUIqJxMbDxpSTlSLClpVY=";
20   };
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;
28   };
30   meta = {
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 ];
37   };