about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/rust/cargo-readme/default.nix
blob: 15c5ad5145245734c3c13267b2f777411b1f3c4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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 ];
  };
}