nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, rustPlatform, fetchFromGitHub }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "cargo-diet";
5 version = "1.2.5";
6
7 src = fetchFromGitHub {
8 owner = "the-lean-crate";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-JzhSTbEf2Yl5cEIb+88y+s8lUN6c1Mir4NYvzAWMZwY=";
12 };
13
14 cargoSha256 = "sha256-zW6ec8DHzP6AuNI6fcOQLH03ca+/yjdh56nltSM9pAA=";
15
16 meta = with lib; {
17 description = "Help computing optimal include directives for your Cargo.toml manifest";
18 homepage = "https://github.com/the-lean-crate/cargo-diet";
19 changelog = "https://github.com/the-lean-crate/cargo-diet/blob/v${version}/CHANGELOG.md";
20 license = licenses.mit;
21 maintainers = with maintainers; [ figsoda ];
22 };
23}