diff --git a/pkgs/applications/misc/mdzk/default.nix b/pkgs/applications/misc/mdzk/default.nix new file mode 100644 index 000000000000..fb1923d932ea --- /dev/null +++ b/pkgs/applications/misc/mdzk/default.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, rustPlatform, CoreServices }: + +rustPlatform.buildRustPackage rec { + pname = "mdzk"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "mdzk-rs"; + repo = "mdzk"; + rev = version; + sha256 = "sha256-yz8lLFAP2/16fixknqGziyrUJKs3Qo1+whV82kUPuAE="; + }; + + cargoSha256 = "sha256-TGNzi8fMU7RhX2SJyxpYfJLgGYxpO/XkmDXzMdlX/2o="; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f111f9dbd7d4..65749e230cb4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26376,6 +26376,10 @@ with pkgs; mda_lv2 = callPackage ../applications/audio/mda-lv2 { }; + mdzk = callPackage ../applications/misc/mdzk { + inherit (darwin.apple_sdk.frameworks) CoreServices; + }; + mediaelch = libsForQt5.callPackage ../applications/misc/mediaelch { }; mediainfo = callPackage ../applications/misc/mediainfo { };