1{ fetchFromGitHub, lib, rustPlatform }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-sort";
5 version = "1.0.9";
6
7 src = fetchFromGitHub {
8 owner = "devinr528";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-fqmyL4ZSz+nKfUIrcrfLRT9paEas5d00Y/kvEqyz2vw=";
12 };
13
14 cargoSha256 = "sha256-JON6cE1ZHeI+0vU9AJp0e1TIbiH3AWjHyn0jd9PNqQU=";
15
16 meta = with lib; {
17 description = "A tool to check that your Cargo.toml dependencies are sorted alphabetically";
18 homepage = "https://github.com/devinr528/cargo-sort";
19 changelog = "https://github.com/devinr528/cargo-sort/blob/v${version}/changelog.md";
20 license = with licenses; [ mit /* or */ asl20 ];
21 maintainers = with maintainers; [ figsoda matthiasbeyer ];
22 };
23}