23 lines
570 B
Nix
23 lines
570 B
Nix
|
{ 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;
|
||
|
}
|