mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
librepo: enable zchunk support on darwin
This commit is contained in:
parent
e92cc61453
commit
efef8e9963
@ -38,9 +38,8 @@ stdenv.mkDerivation rec {
|
||||
curl
|
||||
check
|
||||
gpgme
|
||||
]
|
||||
# zchunk currently has issues compiling in darwin, fine in linux
|
||||
++ stdenv.lib.optional stdenv.isLinux zchunk;
|
||||
zchunk
|
||||
];
|
||||
|
||||
# librepo/fastestmirror.h includes curl/curl.h, and pkg-config specfile refers to others in here
|
||||
propagatedBuildInputs = [
|
||||
@ -49,9 +48,7 @@ stdenv.mkDerivation rec {
|
||||
libxml2
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}"
|
||||
] ++ stdenv.lib.optional stdenv.isDarwin "-DWITH_ZCHUNK=OFF";
|
||||
cmakeFlags = [ "-DPYTHON_DESIRED=${stdenv.lib.substring 0 1 python.pythonVersion}" ];
|
||||
|
||||
postFixup = ''
|
||||
moveToOutput "lib/${python.libPrefix}" "$py"
|
||||
|
Loading…
Reference in New Issue
Block a user