Files
nixpkgs/pkgs/by-name/ca/cargo-readme/package.nix
2026-07-27 21:34:09 +00:00

40 lines
788 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-readme";
version = "3.4.0";
src = fetchFromGitHub {
owner = "webern";
repo = "cargo-readme";
rev = "v${finalAttrs.version}";
sha256 = "sha256-v158zqrbnrOVTHlOgLuq7fnTDUxrjeY0MskFbB3re90=";
};
cargoHash = "sha256-SJw/gKUhJ4lgMqj0eOx2LMhoSAcEAVjFMA2TzFoEnd0=";
# disable doc tests
cargoTestFlags = [
"--bins"
"--lib"
];
meta = {
description = "Generate README.md from docstrings";
mainProgram = "cargo-readme";
homepage = "https://github.com/livioribeiro/cargo-readme";
license = with lib.licenses; [
mit
asl20
];
maintainers = with lib.maintainers; [
matthiasbeyer
sshine
];
};
})