2021-10-26 19:32:39 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "mdzk";
|
2022-01-04 12:55:56 +01:00
|
|
|
version = "0.5.0";
|
2021-10-26 19:32:39 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdzk-rs";
|
|
|
|
repo = "mdzk";
|
|
|
|
rev = version;
|
2022-01-04 12:55:56 +01:00
|
|
|
sha256 = "sha256-NkoKQKcww5ktEbxbOY6WP8OemCB+rvXbuN9oSPjLE3Y=";
|
2021-10-26 19:32:39 +02:00
|
|
|
};
|
|
|
|
|
2022-01-04 12:55:56 +01:00
|
|
|
cargoSha256 = "sha256-uJ00tGiKtcYghFUh0fcYg4nZc/o8yhvlVs+6/aRNY5s=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|