Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
79 lines
1.4 KiB
Nix
79 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
python3,
|
|
pkg-config,
|
|
libxml2,
|
|
glib,
|
|
openssl,
|
|
zchunk,
|
|
curl,
|
|
check,
|
|
gpgme,
|
|
libselinux,
|
|
nix-update-script,
|
|
doxygen,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "1.20.0";
|
|
pname = "librepo";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"py"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rpm-software-management";
|
|
repo = "librepo";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-KYBHImdGQgf/IZ5FMhzrbBTeZF76AIP3RjVPT3w0oT8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
doxygen
|
|
];
|
|
|
|
buildInputs = [
|
|
python3
|
|
libxml2
|
|
glib
|
|
openssl
|
|
curl
|
|
check
|
|
gpgme
|
|
zchunk
|
|
libselinux
|
|
];
|
|
|
|
# librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
|
|
propagatedBuildInputs = [
|
|
curl
|
|
gpgme
|
|
libxml2
|
|
];
|
|
|
|
cmakeFlags = [ "-DPYTHON_DESIRED=${lib.substring 0 1 python3.pythonVersion}" ];
|
|
|
|
postFixup = ''
|
|
moveToOutput "lib/${python3.libPrefix}" "$py"
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Library providing C and Python (libcURL like) API for downloading linux repository metadata and packages";
|
|
homepage = "https://rpm-software-management.github.io/librepo/";
|
|
changelog = "https://github.com/rpm-software-management/dnf5/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.lgpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
})
|