2022-09-30 11:47:45 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "comrak";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.18.0";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kivikakk";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-04-12 12:48:02 +00:00
|
|
|
sha256 = "sha256-igJphBA49878xuSlAxbI3l6252aTkXaN7XbxVaSBVOw=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
cargoSha256 = "sha256-ucXb0SU7dpjeLzDN2OTxji3Mh+7bw+npSNsQjbOeY+s=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A CommonMark-compatible GitHub Flavored Markdown parser and formatter";
|
|
|
|
homepage = "https://github.com/kivikakk/comrak";
|
|
|
|
changelog = "https://github.com/kivikakk/comrak/blob/${version}/changelog.txt";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|