Skip to content

Commit

Permalink
librepo: add bindings to python-packages.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Dec 5, 2017
1 parent 601c895 commit 0b84178
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/tools/package-management/librepo/default.nix
@@ -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 {
version = "1.8.1";
Expand All @@ -13,7 +13,9 @@ stdenv.mkDerivation rec {

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
propagatedBuildInputs = [ curl gpgme expat ];
Expand Down
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -10404,6 +10404,10 @@ in {
cudaSupport = pkgs.config.cudaSupport or false;
};

librepo = toPythonModule (pkgs.librepo.override {
inherit python;
});

libnacl = callPackage ../development/python-modules/libnacl {
inherit (pkgs) libsodium;
};
Expand Down

0 comments on commit 0b84178

Please sign in to comment.