depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-readme/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

28 lines
718 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-readme";
version = "3.3.1";
src = fetchFromGitHub {
owner = "webern";
repo = pname;
rev = "v${version}";
sha256 = "sha256-FFWHADATEfvZvxGwdkj+eTVoq7pnPuoUAhMGTokUkMs=";
};
cargoSha256 = "sha256-OEArMqOiT+PZ+zMRt9h0EzeP7ikFuOYR8mFGtm+xCkQ=";
# 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 ];
};
}