1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/package-management/librepo/default.nix

67 lines
1.2 KiB
Nix
Raw Normal View History

2020-02-08 01:33:05 +00:00
{ stdenv
, fetchFromGitHub
, cmake
, python
, pkgconfig
, libxml2
, glib
, openssl
, zchunk
2020-02-08 01:33:05 +00:00
, curl
, check
, gpgme
}:
2016-04-29 03:46:16 +01:00
stdenv.mkDerivation rec {
2020-03-10 08:18:55 +00:00
version = "1.11.3";
pname = "librepo";
2016-04-29 03:46:16 +01:00
outputs = [ "out" "dev" "py" ];
2016-04-29 03:46:16 +01:00
src = fetchFromGitHub {
2020-02-08 01:33:05 +00:00
owner = "rpm-software-management";
repo = "librepo";
rev = version;
2020-03-10 08:18:55 +00:00
sha256 = "1kdv0xyrbd942if82yvm9ykcskziq2xhw5cpb3xv4wx32a9kc8yz";
2016-04-29 03:46:16 +01:00
};
2020-02-08 01:33:05 +00:00
nativeBuildInputs = [
cmake
pkgconfig
];
2017-06-20 04:27:48 +01:00
2020-02-08 01:33:05 +00:00
buildInputs = [
python
libxml2
glib
openssl
zchunk
2020-02-08 01:33:05 +00:00
curl
check
gpgme
];
2016-04-29 03:46:16 +01:00
# librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
2020-02-08 01:33:05 +00:00
propagatedBuildInputs = [
curl
gpgme
libxml2
];
cmakeFlags = [
"-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}"
];
postFixup = ''
moveToOutput "lib/${python.libPrefix}" "$py"
'';
meta = with stdenv.lib; {
description = "Library providing C and Python (libcURL like) API for downloading linux repository metadata and packages";
2020-02-08 01:33:05 +00:00
homepage = "https://rpm-software-management.github.io/librepo/";
license = licenses.lgpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ copumpkin ];
};
2016-04-29 03:46:16 +01:00
}