nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "mdzk";
5 version = "0.5.2";
6
7 src = fetchFromGitHub {
8 owner = "mdzk-rs";
9 repo = "mdzk";
10 rev = version;
11 hash = "sha256-V//tVcIzhCh03VjwMC+R2ynaOFm+dp6qxa0oqBfvGUs=";
12 };
13
14 cargoPatches = [
15 # Remove when new version of mdzk is released.
16 ./update-mdbook-for-rust-1.64.patch
17 ];
18
19 cargoHash = "sha256-5zGUBvmf68tCk5jGrNn+ukgYbiKzrlmZvWrYgoJf2zk=";
20
21 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
22
23 meta = with lib; {
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 ];
29 };
30}