gmnitohtml: init at 0.1.1

+48
+46
pkgs/applications/misc/gmnitohtml/default.nix
··· 1 + { lib, buildGoModule, fetchFromSourcehut, scdoc, installShellFiles }: 2 + 3 + buildGoModule rec { 4 + pname = "gmnitohtml"; 5 + version = "0.1.1"; 6 + 7 + src = fetchFromSourcehut { 8 + owner = "~adnano"; 9 + repo = pname; 10 + rev = version; 11 + hash = "sha256-XcHJbqmfSkW6lt2xRlrf9AJfwLOZqdgsL1v0aK2bQwo="; 12 + }; 13 + vendorSha256 = "sha256-Cx8x8AISRVTA4Ufd73vOVky97LX23NkizHDingr/zVk="; 14 + 15 + ldflags = [ "-s" "-w" ]; 16 + 17 + # Build and install the man pages 18 + nativeBuildInputs = [ scdoc installShellFiles ]; 19 + 20 + postBuild = '' 21 + make gmnitohtml.1 22 + ''; 23 + 24 + postInstall = '' 25 + installManPage gmnitohtml.1 26 + ''; 27 + 28 + doInstallCheck = true; 29 + installCheckPhase = '' 30 + runHook preInstallCheck 31 + $out/bin/gmnitohtml --help 32 + runHook postInstallCheck 33 + ''; 34 + 35 + meta = with lib; { 36 + homepage = "https://git.sr.ht/~adnano/gmnitohtml"; 37 + changelog = "https://git.sr.ht/~adnano/gmnitohtml/log"; 38 + description = "Gemini text to HTML converter"; 39 + longDescription = '' 40 + he gmnitohtml utility reads Gemini text from the standard input and writes 41 + HTML to the standard output. 42 + ''; 43 + license = licenses.mit; 44 + maintainers = with maintainers; [ jk sikmir ]; 45 + }; 46 + }
+2
pkgs/top-level/all-packages.nix
··· 1566 1566 1567 1567 gmnisrv = callPackage ../servers/gemini/gmnisrv { }; 1568 1568 1569 + gmnitohtml = callPackage ../applications/misc/gmnitohtml { }; 1570 + 1569 1571 goimapnotify = callPackage ../tools/networking/goimapnotify { }; 1570 1572 1571 1573 gojsontoyaml = callPackage ../development/tools/gojsontoyaml { };