From ddf002c0ac03024d317bf1149290aacfe967a4e6 Mon Sep 17 00:00:00 2001 From: Ryan Mulligan Date: Tue, 26 Jan 2021 07:22:00 -0800 Subject: [PATCH] mmdoc: init at 0.9.1 --- pkgs/tools/text/mmdoc/default.nix | 37 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/tools/text/mmdoc/default.nix diff --git a/pkgs/tools/text/mmdoc/default.nix b/pkgs/tools/text/mmdoc/default.nix new file mode 100644 index 000000000000..e30020d15d9b --- /dev/null +++ b/pkgs/tools/text/mmdoc/default.nix @@ -0,0 +1,37 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmark-gfm +, xxd +, fastJson +, libzip +, ninja +, meson +, pkg-config +}: + +stdenv.mkDerivation rec { + pname = "mmdoc"; + version = "0.9.1"; + + src = fetchFromGitHub { + owner = "ryantm"; + repo = "mmdoc"; + rev = version; + hash = "sha256-Lz2+vsXjz9BVOCI1vIrNTvZgh19OuvXEhnMw2QBZr1w="; + }; + + nativeBuildInputs = [ ninja meson pkg-config xxd ]; + + buildInputs = [ cmark-gfm fastJson libzip ]; + + doCheck = stdenv.isx86_64; + + meta = with lib; { + description = "Minimal Markdown Documentation"; + homepage = "https://github.com/ryantm/mmdoc"; + license = licenses.cc0; + maintainers = with maintainers; [ ryantm ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bafc7477c62e..6b6b5b424faa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23681,6 +23681,8 @@ with pkgs; documentation-highlighter = callPackage ../misc/documentation-highlighter { }; + mmdoc = callPackage ../tools/text/mmdoc { }; + documize-community = callPackage ../servers/documize-community { }; doge = callPackage ../misc/doge { };