panorama/nix/mdbook-tera.nix
2023-03-27 21:34:46 -05:00

22 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;
}