nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 lib,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "cargo-sort";
9 version = "2.0.2";
10
11 src = fetchFromGitHub {
12 owner = "devinr528";
13 repo = "cargo-sort";
14 rev = "v${version}";
15 sha256 = "sha256-mdvaRTcs2zVXKX8LrqHFrWTdnFZpAfQuWjYmeWgdGVI=";
16 };
17
18 cargoHash = "sha256-FoFzBf24mNDTRBfFyTEr9Q7sJjUhs0X/XWRGEoierQ4=";
19
20 meta = {
21 description = "Tool to check that your Cargo.toml dependencies are sorted alphabetically";
22 mainProgram = "cargo-sort";
23 homepage = "https://github.com/devinr528/cargo-sort";
24 changelog = "https://github.com/devinr528/cargo-sort/blob/v${version}/changelog.md";
25 license = with lib.licenses; [
26 mit # or
27 asl20
28 ];
29 maintainers = with lib.maintainers; [
30 matthiasbeyer
31 ];
32 };
33}