mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
34 lines
837 B
Nix
34 lines
837 B
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "cargo-sort";
|
|
version = "2.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "devinr528";
|
|
repo = "cargo-sort";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-xT+fWwd92Ll9zcz7FKpQbHKjUGXNOSuCGpFuJ3DQTJY=";
|
|
};
|
|
|
|
cargoHash = "sha256-ygMtfhwoUEIZx+q6KB5yOr8/Fj5FRMIs7dXlYDUKb2U=";
|
|
|
|
meta = {
|
|
description = "Tool to check that your Cargo.toml dependencies are sorted alphabetically";
|
|
mainProgram = "cargo-sort";
|
|
homepage = "https://github.com/devinr528/cargo-sort";
|
|
changelog = "https://github.com/devinr528/cargo-sort/blob/v${finalAttrs.version}/changelog.md";
|
|
license = with lib.licenses; [
|
|
mit # or
|
|
asl20
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
matthiasbeyer
|
|
];
|
|
};
|
|
})
|