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