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