panorama/nix/mdbook-tera.nix
2023-04-09 00:49:22 -05:00

26 lines
587 B
Nix

{ lib, makeRustPlatform, toolchain, fetchFromGitHub }:
let
rustPlatform = makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
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;
}