3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/rust/cargo-sort/default.nix

24 lines
737 B
Nix
Raw Normal View History

2021-09-10 15:38:00 +01:00
{ fetchFromGitHub, lib, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "cargo-sort";
2021-11-28 19:38:33 +00:00
version = "1.0.6";
2021-09-10 15:38:00 +01:00
src = fetchFromGitHub {
owner = "devinr528";
repo = pname;
rev = "v${version}";
2021-11-28 19:38:33 +00:00
sha256 = "sha256-4BQdZsnK3Wv7A3I/yCrnPALac2/sSopRPVh/57vvmGw=";
2021-09-10 15:38:00 +01:00
};
2021-11-28 19:38:33 +00:00
cargoSha256 = "sha256-JM9HdPEZA9c8NGeu9qRwj0jGUsMltsOUG6itNbXZ3Ts=";
2021-09-10 15:38:00 +01:00
meta = with lib; {
description = "A tool to check that your Cargo.toml dependencies are sorted alphabetically";
homepage = "https://github.com/devinr528/cargo-sort";
2021-11-28 19:38:33 +00:00
changelog = "https://github.com/devinr528/cargo-sort/blob/v${version}/changelog.md";
2021-09-10 15:38:00 +01:00
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ figsoda ];
};
}