From 42efb2d484a2845282c3de24a3c9f96eda7a0601 Mon Sep 17 00:00:00 2001 From: Victor Freire Date: Tue, 26 Oct 2021 14:32:39 -0300 Subject: [PATCH] mdzk: init at 0.4.2 --- pkgs/applications/misc/mdzk/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/applications/misc/mdzk/default.nix 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 29b44acfc8a0..2c2d78a6eb15 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 { };