nixpkgs/pkgs/by-name/ca/cargo-sort/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
814 B
Nix
Raw Normal View History

2021-09-10 14:38:00 +00:00
{
fetchFromGitHub,
lib,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-sort";
2024-12-06 10:12:01 +00:00
version = "1.1.0";
2021-09-10 14:38:00 +00:00
src = fetchFromGitHub {
owner = "devinr528";
repo = pname;
rev = "v${version}";
2024-12-06 10:12:01 +00:00
sha256 = "sha256-AUtue1xkhrhlF7PtqsCQ9rdhV0/0i85DWrp7YL9SAYk=";
2021-09-10 14:38:00 +00:00
};
2024-12-06 10:12:01 +00:00
cargoHash = "sha256-y6lLwk40hmFQKDU7sYz3+QQzdn5eGoEX7izmloK22dg=";
2021-09-10 14:38:00 +00:00
meta = with lib; {
description = "Tool to check that your Cargo.toml dependencies are sorted alphabetically";
mainProgram = "cargo-sort";
2021-09-10 14:38:00 +00:00
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 14:38:00 +00:00
license = with licenses; [
mit # or
asl20
];
maintainers = with maintainers; [
figsoda
matthiasbeyer
];
2021-09-10 14:38:00 +00:00
};
}