nixpkgs-suyu/pkgs/tools/package-management/librepo/default.nix

29 lines
1,000 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, python2, pkgconfig, expat, glib, pcre, openssl, curl, check, attr, gpgme }:
2016-04-29 04:46:16 +02:00
stdenv.mkDerivation rec {
2017-10-21 19:17:28 +02:00
version = "1.8.1";
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;
sha256 = "11rypnxjgsc2klyg294ndxy1cyp0nyk00zpjhcvqkhp58vvkkv12";
2016-04-29 04:46:16 +02:00
};
2017-06-20 05:27:48 +02:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ python2 expat glib pcre openssl curl check attr 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
propagatedBuildInputs = [ curl gpgme expat ];
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/;
license = licenses.lgpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ copumpkin ];
};
2016-04-29 04:46:16 +02:00
}