librepo: enable zchunk support on darwin

This commit is contained in:
Marc Seeger
2020-12-30 07:08:49 -08:00
parent e92cc61453
commit efef8e9963
@@ -38,9 +38,8 @@ stdenv.mkDerivation rec {
curl curl
check check
gpgme gpgme
] zchunk
# zchunk currently has issues compiling in darwin, fine in linux ];
++ stdenv.lib.optional stdenv.isLinux zchunk;
# 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 = [ propagatedBuildInputs = [
@@ -49,9 +48,7 @@ stdenv.mkDerivation rec {
libxml2 libxml2
]; ];
cmakeFlags = [ cmakeFlags = [ "-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}" ];
"-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}"
] ++ stdenv.lib.optional stdenv.isDarwin "-DWITH_ZCHUNK=OFF";
postFixup = '' postFixup = ''
moveToOutput "lib/${python.libPrefix}" "$py" moveToOutput "lib/${python.libPrefix}" "$py"