From c9188128c21cab87660196dc46c6801c9187245b Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Thu, 15 Aug 2024 09:31:22 +0200 Subject: [PATCH] microdnf: add missing zchunk and pcre2 dependencies, format Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .../package-management/microdnf/default.nix | 39 ++++++++++++++++--- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/package-management/microdnf/default.nix b/pkgs/tools/package-management/microdnf/default.nix index 79fcdf0300c2..ec9a1daf5945 100644 --- a/pkgs/tools/package-management/microdnf/default.nix +++ b/pkgs/tools/package-management/microdnf/default.nix @@ -1,4 +1,18 @@ -{ lib, stdenv, fetchFromGitHub, cmake, gettext, libdnf, pkg-config, glib, libpeas, libsmartcols, help2man }: +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + gettext, + libdnf, + pkg-config, + glib, + libpeas, + libsmartcols, + help2man, + zchunk, + pcre2, +}: stdenv.mkDerivation rec { pname = "microdnf"; @@ -11,15 +25,28 @@ stdenv.mkDerivation rec { sha256 = "sha256-R7jOeH6pw/THLXxLezp2AmE8lUBagKMRJ0XfXgdLi2E="; }; - nativeBuildInputs = [ pkg-config cmake gettext help2man ]; - buildInputs = [ libdnf glib libpeas libsmartcols ]; + nativeBuildInputs = [ + pkg-config + cmake + gettext + help2man + ]; - meta = with lib; { + buildInputs = [ + libdnf + glib + libpeas + libsmartcols + zchunk + pcre2.dev + ]; + + meta = { description = "Lightweight implementation of dnf in C"; homepage = "https://github.com/rpm-software-management/microdnf"; - license = licenses.gpl2Plus; + license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ rb2k ]; - platforms = platforms.linux ++ platforms.darwin; + platforms = lib.platforms.linux ++ lib.platforms.darwin; mainProgram = "microdnf"; }; }