nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 99f1570f4b8cf617504067d6b8508f76a44d973e
parent 7d079b3bd3437c9a49775c318120f7378952182e
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Fri,  4 Feb 2022 15:58:28 +0300

Add md2html

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/md2html/default.nix | 23+++++++++++++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -286,6 +286,7 @@ lib.makeScope newScope ( huami-token = callPackage ./misc/huami-token { }; ish = callPackage ./misc/ish { }; lazyscraper = callPackage ./misc/lazyscraper { }; + md2html = callPackage ./misc/md2html { }; miband4 = callPackage ./misc/miband4 { }; morse-talk = callPackage ./misc/morse-talk { }; musig = callPackage ./misc/musig { }; diff --git a/pkgs/misc/md2html/default.nix b/pkgs/misc/md2html/default.nix @@ -0,0 +1,23 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "md2html"; + version = "2.0.0"; + + src = fetchFromGitHub { + owner = "nocd5"; + repo = pname; + rev = "v${version}"; + hash = "sha256-RVTKLueo9yY/rgSoHW4ILmDeGfw3O6TcAZh3ydHnAto="; + }; + + vendorSha256 = "sha256-XO8WD/SC2Xii0bUiuOGL9V7XgTJDZjsPrpmyONFm+7U="; + + meta = with lib; { + description = "Markdown to single HTML"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}