about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2017-07-05 23:15:36 +0200
committerGitHub <noreply@github.com>2017-07-05 23:15:36 +0200
commitc089080fc06657befd130359a5f27741c9b3810a (patch)
tree44ba09deec44849a7e13f7d4ced940df34d64b48
parentd38d3d1096c8deb2bd1bfc45c8f675b71d74fb21 (diff)
parent32b2aa48916775828e2bd560a59b9e5ead1c2535 (diff)
downloadnixlib-c089080fc06657befd130359a5f27741c9b3810a.tar
nixlib-c089080fc06657befd130359a5f27741c9b3810a.tar.gz
nixlib-c089080fc06657befd130359a5f27741c9b3810a.tar.bz2
nixlib-c089080fc06657befd130359a5f27741c9b3810a.tar.lz
nixlib-c089080fc06657befd130359a5f27741c9b3810a.tar.xz
nixlib-c089080fc06657befd130359a5f27741c9b3810a.tar.zst
nixlib-c089080fc06657befd130359a5f27741c9b3810a.zip
Merge pull request #26121 from womfoo/init/zabbix-cli-1.6.1
zabbix-cli: init at 1.6.1
-rw-r--r--pkgs/tools/misc/zabbix-cli/default.nix24
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/misc/zabbix-cli/default.nix b/pkgs/tools/misc/zabbix-cli/default.nix
new file mode 100644
index 000000000000..77c06ea1911d
--- /dev/null
+++ b/pkgs/tools/misc/zabbix-cli/default.nix
@@ -0,0 +1,24 @@
+{ fetchFromGitHub, lib, python2Packages }:
+let
+  pythonPackages = python2Packages;
+
+in pythonPackages.buildPythonApplication rec {
+  name = "zabbix-cli-${version}";
+  version = "1.6.1";
+
+  propagatedBuildInputs = with pythonPackages; [ argparse requests ];
+
+  src = fetchFromGitHub {
+    owner = "usit-gd";
+    repo = "zabbix-cli";
+    rev = version;
+    sha256 = "17ip3s8ifgj264zwxrr857wk02xmzmlsjrr613mdhkgdwizqbcs3";
+  };
+
+  meta = with lib; {
+    description = "Command-line interface for Zabbix";
+    homepage = src.meta.homepage;
+    license = [ licenses.gpl3 ];
+    maintainers = [ maintainers.womfoo ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 8ee08d94061c..134574cb455b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1711,6 +1711,8 @@ with pkgs;
 
   mcrcon = callPackage ../tools/networking/mcrcon {};
 
+  zabbix-cli = callPackage ../tools/misc/zabbix-cli { };
+
   ### DEVELOPMENT / EMSCRIPTEN
 
   buildEmscriptenPackage = callPackage ../development/em-modules/generic { };