@@ -0,0 +1,24 @@
1+{ stdenv, fetchFromGitHub, cmake, gettext, libdnf, pkg-config, glib, libpeas, libsmartcols, help2man }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "microdnf";
5+ version = "3.6.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "rpm-software-management";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "0a7lc3qsnblvznzsz3544l3n84184xi85zf7c3m3jhnmpmxsg39h";
12+ };
13+
14+ nativeBuildInputs = [ pkg-config cmake gettext help2man ];
15+ buildInputs = [ libdnf glib libpeas libsmartcols ];
16+
17+ meta = with stdenv.lib; {
18+ description = "Lightweight implementation of dnf in C";
19+ homepage = "https://github.com/rpm-software-management/microdnf";
20+ license = licenses.gpl2Plus;
21+ maintainers = with stdenv.lib.maintainers; [ rb2k ];
22+ platforms = platforms.linux ++ platforms.darwin;
23+ };
24+}