Skip to content

Commit f96f1bc

Browse files
committed
ietf-cli: init at v1.27
Command-line interface for accessing IETF documents and other information via a local offline copy.
1 parent 578baae commit f96f1bc

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
python3,
5+
rsync,
6+
nix-update-script,
7+
}:
8+
python3.pkgs.buildPythonApplication rec {
9+
name = "ietf-cli";
10+
version = "1.27";
11+
pyproject = false;
12+
13+
src = fetchFromGitHub {
14+
owner = "paulehoffman";
15+
repo = "ietf-cli";
16+
tag = version;
17+
hash = "sha256-D62E0aHVwB2e+3ZNNMOB2E93Q2WKhbWrYtnH76ZOepM=";
18+
};
19+
buildInputs = [ rsync ];
20+
21+
installPhase = ''
22+
runHook preInstall
23+
24+
install -Dm755 ./ietf -t $out/bin
25+
26+
runHook postInstall
27+
'';
28+
29+
passthru.updateScript = nix-update-script { };
30+
31+
meta = {
32+
description = "Command-line interface for accessing IETF documents and other information";
33+
mainProgram = "ietf";
34+
homepage = "https://github.com/paulehoffman/ietf-cli";
35+
license = lib.licenses.wtfpl;
36+
maintainers = with lib.maintainers; [ lilioid ];
37+
platforms = lib.lists.intersectLists python3.meta.platforms rsync.meta.platforms;
38+
};
39+
}

0 commit comments

Comments
 (0)