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

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

26 lines
745 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-02-23 10:50:23 +00:00
sha256 = "sha256-V//tVcIzhCh03VjwMC+R2ynaOFm+dp6qxa0oqBfvGUs=";
2021-10-26 17:32:39 +00:00
};
2022-02-23 10:50:23 +00:00
cargoSha256 = "sha256-2lPckUhnyfHaVWXzZXKliolDZiPtNl9UBZIKs6tUaNQ=";
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 ];
};
}