depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-readme/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

27 lines
696 B
Nix

{ lib, rustPlatform, fetchFromGitHub, fetchpatch }:
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";
homepage = "https://github.com/livioribeiro/cargo-readme";
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ baloo matthiasbeyer ];
};
}