From c99a2da0bfbd058676e97b77e188d6fdfb724393 Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Sat, 17 Mar 2018 10:38:05 +0700 Subject: [PATCH] mmark: init at 1.3.6 --- pkgs/tools/typesetting/mmark/default.nix | 26 ++++++++++++++++++++++++ pkgs/tools/typesetting/mmark/deps.nix | 12 +++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 40 insertions(+) create mode 100644 pkgs/tools/typesetting/mmark/default.nix create mode 100644 pkgs/tools/typesetting/mmark/deps.nix diff --git a/pkgs/tools/typesetting/mmark/default.nix b/pkgs/tools/typesetting/mmark/default.nix new file mode 100644 index 000000000000..2b7a6f3ffb44 --- /dev/null +++ b/pkgs/tools/typesetting/mmark/default.nix @@ -0,0 +1,26 @@ +{ stdenv, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "mmark-${version}"; + version = "1.3.6"; + rev = "v${version}"; + + goPackagePath = "github.com/miekg/mmark"; + + src = fetchFromGitHub { + inherit rev; + owner = "miekg"; + repo = "mmark"; + sha256 = "0q2zrwa2vwk7a0zhmi000zpqrc01zssrj9c5n3573rg68fksg77m"; + }; + + goDeps = ./deps.nix; + + meta = { + description = "A powerful markdown processor in Go geared towards the IETF"; + homepage = https://github.com/miekg/mmark; + license = with stdenv.lib.licenses; bsd2; + maintainers = with stdenv.lib.maintainers; [ yrashk ]; + platforms = stdenv.lib.platforms.unix; + }; +} diff --git a/pkgs/tools/typesetting/mmark/deps.nix b/pkgs/tools/typesetting/mmark/deps.nix new file mode 100644 index 000000000000..47f964c6a477 --- /dev/null +++ b/pkgs/tools/typesetting/mmark/deps.nix @@ -0,0 +1,12 @@ +# This file was generated by https://github.com/kamilchm/go2nix v1.2.1 +[ + { + goPackagePath = "github.com/BurntSushi/toml"; + fetch = { + type = "git"; + url = "https://github.com/BurntSushi/toml"; + rev = "a368813c5e648fee92e5f6c30e3944ff9d5e8895"; + sha256 = "1sjxs2lwc8jpln80s4rlzp7nprbcljhy5mz4rf9995gq93wqnym5"; + }; + } +] diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fc10a3903e58..68a30546799b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20993,4 +20993,6 @@ with pkgs; diceware = callPackage ../tools/security/diceware { }; xml2rfc = callPackage ../tools/typesetting/xml2rfc { }; + + mmark = callPackage ../tools/typesetting/mmark { }; }