From f96f1bc474e0d15c86b16c5923bc6e68e567ad07 Mon Sep 17 00:00:00 2001
From: lilly
Date: Sun, 22 Dec 2024 17:31:33 +0100
Subject: [PATCH] ietf-cli: init at v1.27
Command-line interface for accessing IETF documents and other information
via a local offline copy.
---
pkgs/by-name/ie/ietf-cli/package.nix | 39 ++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 pkgs/by-name/ie/ietf-cli/package.nix
diff --git a/pkgs/by-name/ie/ietf-cli/package.nix b/pkgs/by-name/ie/ietf-cli/package.nix
new file mode 100644
index 000000000000..672550b6baff
--- /dev/null
+++ b/pkgs/by-name/ie/ietf-cli/package.nix
@@ -0,0 +1,39 @@
+{
+ lib,
+ fetchFromGitHub,
+ python3,
+ rsync,
+ nix-update-script,
+}:
+python3.pkgs.buildPythonApplication rec {
+ name = "ietf-cli";
+ version = "1.27";
+ pyproject = false;
+
+ src = fetchFromGitHub {
+ owner = "paulehoffman";
+ repo = "ietf-cli";
+ tag = version;
+ hash = "sha256-D62E0aHVwB2e+3ZNNMOB2E93Q2WKhbWrYtnH76ZOepM=";
+ };
+ buildInputs = [ rsync ];
+
+ installPhase = ''
+ runHook preInstall
+
+ install -Dm755 ./ietf -t $out/bin
+
+ runHook postInstall
+ '';
+
+ passthru.updateScript = nix-update-script { };
+
+ meta = {
+ description = "Command-line interface for accessing IETF documents and other information";
+ mainProgram = "ietf";
+ homepage = "https://github.com/paulehoffman/ietf-cli";
+ license = lib.licenses.wtfpl;
+ maintainers = with lib.maintainers; [ lilioid ];
+ platforms = lib.lists.intersectLists python3.meta.platforms rsync.meta.platforms;
+ };
+}