nixpkgs/pkgs/by-name/md/mdzk/package.nix
2025-07-26 11:39:35 +02:00

38 lines
829 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "mdzk";
version = "0.5.2";
src = fetchFromGitHub {
owner = "mdzk-rs";
repo = "mdzk";
rev = version;
hash = "sha256-V//tVcIzhCh03VjwMC+R2ynaOFm+dp6qxa0oqBfvGUs=";
};
cargoPatches = [
# Remove when new version of mdzk is released.
./update-mdbook-for-rust-1.64.patch
];
cargoHash = "sha256-+x4pOtszvdzI/zR55ezcxlS52GrWQTuBn7vbnqDTVac=";
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
];
mainProgram = "mdzk";
};
}