20 stdenv.mkDerivation rec {
30 src = fetchFromGitHub {
31 owner = "rpm-software-management";
34 sha256 = "sha256-b5f6zfQu5GQ9bZPnWgmLZLH0YFFLQu7bHwMQUt4Q4Q8=";
55 # librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
56 propagatedBuildInputs = [
62 cmakeFlags = [ "-DPYTHON_DESIRED=${lib.substring 0 1 python.pythonVersion}" ];
65 moveToOutput "lib/${python.libPrefix}" "$py"
68 passthru.updateScript = nix-update-script { };
71 description = "Library providing C and Python (libcURL like) API for downloading linux repository metadata and packages";
72 homepage = "https://rpm-software-management.github.io/librepo/";
73 license = licenses.lgpl2Plus;
74 platforms = platforms.linux;
75 maintainers = with maintainers; [ copumpkin ];