{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }: rustPlatform.buildRustPackage rec { pname = "mdzk"; version = "0.5.2"; src = fetchFromGitHub { owner = "mdzk-rs"; repo = "mdzk"; rev = version; sha256 = "sha256-V//tVcIzhCh03VjwMC+R2ynaOFm+dp6qxa0oqBfvGUs="; }; cargoSha256 = "sha256-2lPckUhnyfHaVWXzZXKliolDZiPtNl9UBZIKs6tUaNQ="; buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; meta = with lib; { description = "Plain text Zettelkasten based on mdBook"; homepage = "https://github.com/mdzk-rs/mdzk/"; changelog = "https://github.com/mdzk-rs/mdzk/blob/main/CHANGELOG.md"; license = licenses.mpl20; maintainers = with maintainers; [ bryanasdev000 ratsclub ]; }; }