2018-11-17 21:35:33 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python, pkgconfig, libxml2, glib, openssl, curl, check, gpgme }:
|
2016-04-29 04:46:16 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-11-17 21:35:33 +01:00
|
|
|
version = "1.9.2";
|
2016-04-29 04:46:16 +02:00
|
|
|
name = "librepo-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rpm-software-management";
|
|
|
|
repo = "librepo";
|
2017-10-21 19:17:28 +02:00
|
|
|
rev = version;
|
2018-11-17 21:35:33 +01:00
|
|
|
sha256 = "0xa9ng9mhpianhjy2a0jnj8ha1zckk2sz91y910daggm1qcv5asx";
|
2016-04-29 04:46:16 +02:00
|
|
|
};
|
|
|
|
|
2017-06-20 05:27:48 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
2017-12-05 16:04:03 +01:00
|
|
|
cmakeFlags="-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}";
|
|
|
|
|
2018-11-17 21:35:33 +01:00
|
|
|
buildInputs = [ python libxml2 glib openssl curl check gpgme ];
|
2016-04-29 04:46:16 +02:00
|
|
|
|
|
|
|
# librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
|
2018-11-17 21:35:33 +01:00
|
|
|
propagatedBuildInputs = [ curl gpgme libxml2 ];
|
2016-04-30 18:01:26 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Library providing C and Python (libcURL like) API for downloading linux repository metadata and packages";
|
2017-10-21 19:17:28 +02:00
|
|
|
homepage = https://rpm-software-management.github.io/librepo/;
|
2016-04-30 18:01:26 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
|
|
};
|
2016-04-29 04:46:16 +02:00
|
|
|
}
|