commit 3f9b3116346e3d4b73ab4afa5cc63aa52ca03d63
parent 2e82567dd779bc129bd45961d6622e8192841b4b
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Tue, 27 Apr 2021 00:31:35 +0300
Add gmnitohtml
Diffstat:
2 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -180,6 +180,7 @@ lib.makeScope newScope (
gmni = callPackage ./gemini/gmni { };
gmnigit = callPackage ./gemini/gmnigit { };
gmnisrv = callPackage ./gemini/gmnisrv { };
+ gmnitohtml = callPackage ./gemini/gmnitohtml { };
gssg = callPackage ./gemini/gssg { };
gurl = callPackage ./gemini/gurl { };
kiln = callPackage ./gemini/kiln { };
diff --git a/pkgs/gemini/gmnitohtml/default.nix b/pkgs/gemini/gmnitohtml/default.nix
@@ -0,0 +1,37 @@
+{ lib, buildGoModule, fetchFromSourcehut, scdoc }:
+
+buildGoModule rec {
+ pname = "gmnitohtml";
+ version = "2021-04-24";
+
+ src = fetchFromSourcehut {
+ owner = "~adnano";
+ repo = pname;
+ rev = "b3379f9536a27b689e0a5bfe87c25aacf26e8b30";
+ hash = "sha256-RNrAjGTdvyP+jCXnSYtnrXSPl+l1PGVk9vjHBawzRII=";
+ };
+
+ nativeBuildInputs = [ scdoc ];
+
+ vendorSha256 = "sha256-Cx8x8AISRVTA4Ufd73vOVky97LX23NkizHDingr/zVk=";
+
+ buildPhase = ''
+ runHook preBuild
+ # we use make instead of go build
+ runHook postBuild
+ '';
+
+ installPhase = ''
+ runHook preInstall
+ make PREFIX=$out install
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ description = "Gemini text to HTML converter";
+ inherit (src.meta) homepage;
+ license = licenses.mit;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}