1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 gettext,
7 libdnf,
8 pkg-config,
9 glib,
10 libpeas,
11 libsmartcols,
12 help2man,
13 zchunk,
14 pcre2,
15}:
16
17stdenv.mkDerivation rec {
18 pname = "microdnf";
19 version = "3.10.1";
20
21 src = fetchFromGitHub {
22 owner = "rpm-software-management";
23 repo = "microdnf";
24 rev = version;
25 hash = "sha256-xWHE05CeX8I8YO0gqf5FDiqLexirwKdyCe4grclOVYc=";
26 };
27
28 nativeBuildInputs = [
29 pkg-config
30 cmake
31 gettext
32 help2man
33 ];
34
35 buildInputs = [
36 libdnf
37 glib
38 libpeas
39 libsmartcols
40 zchunk
41 pcre2.dev
42 ];
43
44 meta = {
45 description = "Lightweight implementation of dnf in C";
46 homepage = "https://github.com/rpm-software-management/microdnf";
47 license = lib.licenses.gpl2Plus;
48 maintainers = with lib.maintainers; [ rb2k ];
49 platforms = lib.platforms.linux ++ lib.platforms.darwin;
50 mainProgram = "microdnf";
51 };
52}