Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "comrak"; 9 version = "0.40.0"; 10 11 src = fetchFromGitHub { 12 owner = "kivikakk"; 13 repo = "comrak"; 14 rev = "v${version}"; 15 sha256 = "sha256-lPO0i6oQtJqcmXDsqhTQV+7a6V04cMcvm2Jn3eWEceg="; 16 }; 17 18 cargoHash = "sha256-TA8tC/8LfXzoxYJZlVELZirg9Xzr677VugzFwm5NHM4="; 19 20 meta = { 21 description = "CommonMark-compatible GitHub Flavored Markdown parser and formatter"; 22 mainProgram = "comrak"; 23 homepage = "https://github.com/kivikakk/comrak"; 24 changelog = "https://github.com/kivikakk/comrak/blob/v${version}/changelog.txt"; 25 license = lib.licenses.bsd2; 26 maintainers = with lib.maintainers; [ 27 figsoda 28 kivikakk 29 ]; 30 }; 31}