2021-02-05 17:12:51 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, fetchpatch }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-readme";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.3.1";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-11-16 04:20:00 +00:00
|
|
|
owner = "webern";
|
2021-02-05 17:12:51 +00:00
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-FFWHADATEfvZvxGwdkj+eTVoq7pnPuoUAhMGTokUkMs=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoSha256 = "sha256-OEArMqOiT+PZ+zMRt9h0EzeP7ikFuOYR8mFGtm+xCkQ=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
# disable doc tests
|
|
|
|
cargoTestFlags = [
|
|
|
|
"--bins" "--lib"
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Generate README.md from docstrings";
|
|
|
|
homepage = "https://github.com/livioribeiro/cargo-readme";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ baloo matthiasbeyer ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|