1 { lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 hash = "sha256-V//tVcIzhCh03VjwMC+R2ynaOFm+dp6qxa0oqBfvGUs=";
15 # Remove when new version of mdzk is released.
16 ./update-mdbook-for-rust-1.64.patch
19 cargoHash = "sha256-5zGUBvmf68tCk5jGrNn+ukgYbiKzrlmZvWrYgoJf2zk=";
21 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
24 description = "Plain text Zettelkasten based on mdBook";
25 homepage = "https://github.com/mdzk-rs/mdzk/";
26 changelog = "https://github.com/mdzk-rs/mdzk/blob/main/CHANGELOG.md";
27 license = licenses.mpl20;
28 maintainers = with maintainers; [ bryanasdev000 ratsclub ];