mznotes/nix/mdbook-tera.nix

23 lines
570 B
Nix
Raw Normal View History

2023-03-28 02:34:46 +00:00
{ lib, makeRustPlatform, toolchain, fetchFromGitHub }:
let rustPlatform = makeRustPlatform { inherit (toolchain) cargo rustc; };
in rustPlatform.buildRustPackage rec {
name = "mdbook-tera";
version = "0.5.1";
src = fetchFromGitHub {
owner = "avitex";
repo = name;
rev = "v${version}";
sha256 = "sha256-JxZWx0He0+hIPw4IPFMRg2dcQpwq8rCV6ujvX+n7RLk=";
};
cargoPatches = [ ./mdbook-tera.patch ];
cargoSha256 = "sha256-Y4U3lDgrRq8G+OGzi3MaAmXIrGwzMJZutK64wJKqFWk=";
# unknown lint: `rustdoc::missing_doc_code_examples
doCheck = false;
}