From 29d380aa2f270724f68d6ca163589e1adcd1471a Mon Sep 17 00:00:00 2001 From: Fabian Affolter <mail@fabian-affolter.ch> Date: Mon, 27 Mar 2023 20:33:20 +0200 Subject: [PATCH] zkg: init at 2.13.0 --- pkgs/tools/package-management/zkg/default.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/tools/package-management/zkg/default.nix diff --git a/pkgs/tools/package-management/zkg/default.nix b/pkgs/tools/package-management/zkg/default.nix new file mode 100644 index 000000000000..8abd58f7da4f --- /dev/null +++ b/pkgs/tools/package-management/zkg/default.nix @@ -0,0 +1,42 @@ +{ lib +, python3 +, fetchFromGitHub +, pkgs +}: + +python3.pkgs.buildPythonApplication rec { + pname = "zkg"; + version = "2.13.0"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "zeek"; + repo = "package-manager"; + rev = "refs/tags/v${version}"; + hash = "sha256-kQFm8VlbvJ791Ll8b0iu6xqaxhYTf41jTmvGxLgIzuE="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + btest + gitpython + semantic-version + sphinx + sphinx-rtd-theme + pkgs.bash + ]; + + # No tests available + doCheck = false; + + pythonImportsCheck = [ + "zeekpkg" + ]; + + meta = with lib; { + description = "Package manager for Zeek"; + homepage = "https://github.com/zeek/package-manager"; + changelog = "https://github.com/zeek/package-manager/blob/${version}/CHANGES"; + license = licenses.ncsa; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7afeef86bd2c..8772d7c4e6f5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -39114,6 +39114,8 @@ with pkgs; xbps = callPackage ../tools/package-management/xbps { }; + zkg = callPackage ../tools/package-management/zkg { }; + xcftools = callPackage ../tools/graphics/xcftools { }; xhyve = callPackage ../applications/virtualization/xhyve {