panorama/nix/mdbook-tera.nix

27 lines
587 B
Nix
Raw Normal View History

2023-03-28 02:34:46 +00:00
{ lib, makeRustPlatform, toolchain, fetchFromGitHub }:
2023-04-09 05:49:15 +00:00
let
rustPlatform = makeRustPlatform {
cargo = toolchain;
rustc = toolchain;
};
2023-03-28 02:34:46 +00:00
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;
}