nixpkgs/pkgs/applications/misc/mdzk/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
857 B
Nix
Raw Normal View History

2021-10-26 17:32:39 +00:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
rustPlatform.buildRustPackage rec {
pname = "mdzk";
2022-02-23 10:50:23 +00:00
version = "0.5.2";
2021-10-26 17:32:39 +00:00
src = fetchFromGitHub {
owner = "mdzk-rs";
repo = "mdzk";
rev = version;
2022-10-05 22:18:41 +00:00
hash = "sha256-V//tVcIzhCh03VjwMC+R2ynaOFm+dp6qxa0oqBfvGUs=";
2021-10-26 17:32:39 +00:00
};
2022-10-05 22:18:41 +00:00
cargoPatches = [
# Remove when new version of mdzk is released.
./update-mdbook-for-rust-1.64.patch
];
cargoHash = "sha256-5zGUBvmf68tCk5jGrNn+ukgYbiKzrlmZvWrYgoJf2zk=";
2021-10-26 17:32:39 +00:00
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 ];
};
}