2021-10-26 19:32:39 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdzk";
|
2021-11-03 15:41:50 +01:00
|
|
|
version = "0.4.3";
|
2021-10-26 19:32:39 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdzk-rs";
|
|
|
|
repo = "mdzk";
|
|
|
|
rev = version;
|
2021-11-03 15:41:50 +01:00
|
|
|
sha256 = "sha256-VUvV1XA9Bd3ugYHcKOcAQLUt0etxS/Cw2EgnFGxX0z0=";
|
2021-10-26 19:32:39 +02:00
|
|
|
};
|
|
|
|
|
2021-11-03 15:41:50 +01:00
|
|
|
cargoSha256 = "sha256-lZ4fc/94ESlhpfa5ylg45oZNeaF1mZPxQUSLZrl2V3o=";
|
2021-10-26 19:32:39 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|