Skip to content

Commit 0b84178

Browse files
committedDec 5, 2017
librepo: add bindings to python-packages.nix
1 parent 601c895 commit 0b84178

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
 

‎pkgs/tools/package-management/librepo/default.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ stdenv, fetchFromGitHub, cmake, python2, pkgconfig, expat, glib, pcre, openssl, curl, check, attr, gpgme }:
1+
{ stdenv, fetchFromGitHub, cmake, python, pkgconfig, expat, glib, pcre, openssl, curl, check, attr, gpgme }:
22

33
stdenv.mkDerivation rec {
44
version = "1.8.1";
@@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
1313

1414
nativeBuildInputs = [ cmake pkgconfig ];
1515

16-
buildInputs = [ python2 expat glib pcre openssl curl check attr gpgme ];
16+
cmakeFlags="-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}";
17+
18+
buildInputs = [ python expat glib pcre openssl curl check attr gpgme ];
1719

1820
# librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
1921
propagatedBuildInputs = [ curl gpgme expat ];

‎pkgs/top-level/python-packages.nix

+4
Original file line numberDiff line numberDiff line change
@@ -10404,6 +10404,10 @@ in {
1040410404
cudaSupport = pkgs.config.cudaSupport or false;
1040510405
};
1040610406

10407+
librepo = toPythonModule (pkgs.librepo.override {
10408+
inherit python;
10409+
});
10410+
1040710411
libnacl = callPackage ../development/python-modules/libnacl {
1040810412
inherit (pkgs) libsodium;
1040910413
};

0 commit comments

Comments
 (0)