librepo: add bindings to python-packages.nix
This commit is contained in:
parent
601c895bc1
commit
0b8417823d
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchFromGitHub, cmake, python2, pkgconfig, expat, glib, pcre, openssl, curl, check, attr, gpgme }:
|
{ stdenv, fetchFromGitHub, cmake, python, pkgconfig, expat, glib, pcre, openssl, curl, check, attr, gpgme }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.8.1";
|
version = "1.8.1";
|
||||||
|
@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ python2 expat glib pcre openssl curl check attr gpgme ];
|
cmakeFlags="-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}";
|
||||||
|
|
||||||
|
buildInputs = [ python expat glib pcre openssl curl check attr gpgme ];
|
||||||
|
|
||||||
# librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
|
# librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
|
||||||
propagatedBuildInputs = [ curl gpgme expat ];
|
propagatedBuildInputs = [ curl gpgme expat ];
|
||||||
|
|
|
@ -10404,6 +10404,10 @@ in {
|
||||||
cudaSupport = pkgs.config.cudaSupport or false;
|
cudaSupport = pkgs.config.cudaSupport or false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
librepo = toPythonModule (pkgs.librepo.override {
|
||||||
|
inherit python;
|
||||||
|
});
|
||||||
|
|
||||||
libnacl = callPackage ../development/python-modules/libnacl {
|
libnacl = callPackage ../development/python-modules/libnacl {
|
||||||
inherit (pkgs) libsodium;
|
inherit (pkgs) libsodium;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue