microdnf: add missing zchunk and pcre2 dependencies, format

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2024-08-15 09:31:22 +02:00
parent da532d241d
commit c9188128c2

View File

@ -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";
};
}