nur-packages

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

commit a7c3d50e23878fe7c6b2070657b13f2d162bd336
parent 8c359baa96ecd7d4ec0837f82b297f670978e0ff
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 12 May 2024 20:35:20 +0400

Up

Diffstat:
Mpkgs/default.nix | 1+
Mpkgs/gemini/astronaut/default.nix | 6+++---
Apkgs/gemini/mdtohtml/default.nix | 33+++++++++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 3 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -183,6 +183,7 @@ lib.makeScope newScope ( gssg = callPackage ./gemini/gssg { }; gurl = callPackage ./gemini/gurl { }; kineto = callPackage ./gemini/kineto { }; + mdtohtml = callPackage ./gemini/mdtohtml { }; py-gmi2html = callPackage ./gemini/py-gmi2html { }; qute-gemini = callPackage ./gemini/qute-gemini { }; satellite = callPackage ./gemini/satellite { }; diff --git a/pkgs/gemini/astronaut/default.nix b/pkgs/gemini/astronaut/default.nix @@ -2,18 +2,18 @@ buildGoModule rec { pname = "astronaut"; - version = "0.1.1"; + version = "0.1.3"; src = fetchFromSourcehut { owner = "~adnano"; repo = "astronaut"; rev = version; - hash = "sha256-eiUStCM9rJB4O+LVWxih6untjTPynj9cHX2b8Gz9/nQ="; + hash = "sha256-YkaeJMabEHGcyYeEyiYXR2K8YKX7Qqo5mb1XzvKT2+U="; }; nativeBuildInputs = [ scdoc installShellFiles ]; - vendorHash = "sha256-7SyawlfJ9toNVuFehGr5GQF6mNmS9E4kkNcqWllp8No="; + vendorHash = "sha256-4obhPl3Yvlrsf+C0vFpS/EOPEK7Kwm3GgbZ/ociihD8="; ldflags = [ "-X main.ShareDir=${placeholder "out"}/share/astronaut" ]; diff --git a/pkgs/gemini/mdtohtml/default.nix b/pkgs/gemini/mdtohtml/default.nix @@ -0,0 +1,33 @@ +{ lib, buildGoModule, fetchFromSourcehut, scdoc, installShellFiles }: + +buildGoModule rec { + pname = "mdtohtml"; + version = "0.1.3"; + + src = fetchFromSourcehut { + owner = "~adnano"; + repo = "mdtohtml"; + rev = version; + hash = "sha256-qvd4Iz+1uNT1Y/DkHGRYBVCLeIpleQ58Ua4eSYv+ilQ="; + }; + + nativeBuildInputs = [ scdoc installShellFiles ]; + + vendorHash = "sha256-b+xQpGSN6F79qTDqVpyEsEQGNgcR1/l7pzwIxqgTcic="; + + postBuild = '' + scdoc < docs/mdtohtml.1.scd > docs/mdtohtml.1 + ''; + + postInstall = '' + installManPage docs/mdtohtml.1 + ''; + + meta = with lib; { + description = "Markdown to HTML converter"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + mainProgram = "mdtohtml"; + }; +}