2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, gettext, libdnf, pkg-config, glib, libpeas, libsmartcols, help2man }:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "microdnf";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "3.9.0";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rpm-software-management";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-PDvA25QSju16d83f0UVpUiDU8XDuC2dKRi3LaItFRmk=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config cmake gettext help2man ];
|
|
|
|
buildInputs = [ libdnf glib libpeas libsmartcols ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-25 13:55:36 +00:00
|
|
|
description = "Lightweight implementation of dnf in C";
|
|
|
|
homepage = "https://github.com/rpm-software-management/microdnf";
|
|
|
|
license = licenses.gpl2Plus;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ rb2k ];
|
2020-12-25 13:55:36 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|