Files
2026-06-08 14:32:28 +02:00

59 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
gettext,
libdnf,
pkg-config,
glib,
libpeas,
util-linux,
help2man,
zchunk,
pcre2,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "microdnf";
version = "3.10.1";
src = fetchFromGitHub {
owner = "rpm-software-management";
repo = "microdnf";
rev = finalAttrs.version;
hash = "sha256-xWHE05CeX8I8YO0gqf5FDiqLexirwKdyCe4grclOVYc=";
};
# inlined of https://github.com/rpm-software-management/microdnf/pull/151
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required (VERSION 2.8.5)" "cmake_minimum_required (VERSION 3.10)"
'';
nativeBuildInputs = [
pkg-config
cmake
gettext
help2man
];
buildInputs = [
libdnf
glib
libpeas
util-linux
zchunk
pcre2.dev
];
meta = {
description = "Lightweight implementation of dnf in C";
homepage = "https://github.com/rpm-software-management/microdnf";
license = lib.licenses.gpl2Plus;
maintainers = [ ];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
mainProgram = "microdnf";
};
})