nixpkgs/pkgs/development/tools/rust/cargo-diet/default.nix

24 lines
722 B
Nix
Raw Normal View History

2021-09-19 15:02:56 +00:00
{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-diet";
2021-10-26 12:00:30 +00:00
version = "1.2.3";
2021-09-19 15:02:56 +00:00
src = fetchFromGitHub {
owner = "the-lean-crate";
repo = pname;
rev = "v${version}";
2021-10-26 12:00:30 +00:00
sha256 = "sha256-R40cggAdNbd8/+fG87PYHIbmgIsrhEwQ9ocB4p22bL4=";
2021-09-19 15:02:56 +00:00
};
2021-10-26 12:00:30 +00:00
cargoSha256 = "sha256-lgCP5P7X9B4sTND+p8repZB63c64o1QuozJoz6KQXiE=";
2021-09-19 15:02:56 +00:00
meta = with lib; {
description = "Help computing optimal include directives for your Cargo.toml manifest";
homepage = "https://github.com/the-lean-crate/cargo-diet";
changelog = "https://github.com/the-lean-crate/cargo-diet/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}