evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ca / cargo-shear / package.nix
blob8eaa8247089e0ed89e003d6016862e036ba770ad
2   fetchFromGitHub,
3   lib,
4   rustPlatform,
5   testers,
6   cargo-shear,
7 }:
8 let
9   version = "1.1.3";
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-xKO/57yvHSGzjWyDPu1DmI9eeDESyFgMschqK+OLUMs=";
20   };
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;
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   };