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

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

29 lines
718 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-readme";
2023-11-06 18:52:18 +00:00
version = "3.3.1";
src = fetchFromGitHub {
2023-11-06 18:52:18 +00:00
owner = "webern";
repo = pname;
2023-11-06 18:52:18 +00:00
rev = "v${version}";
sha256 = "sha256-FFWHADATEfvZvxGwdkj+eTVoq7pnPuoUAhMGTokUkMs=";
};
2023-11-06 18:52:18 +00:00
cargoSha256 = "sha256-OEArMqOiT+PZ+zMRt9h0EzeP7ikFuOYR8mFGtm+xCkQ=";
2023-11-06 18:52:18 +00:00
# disable doc tests
cargoTestFlags = [
"--bins" "--lib"
];
meta = with lib; {
description = "Generate README.md from docstrings";
mainProgram = "cargo-readme";
homepage = "https://github.com/livioribeiro/cargo-readme";
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ baloo matthiasbeyer ];
};
}