Merge pull request #107104 from rb2k/librepo_darwin
librepo: add darwin support
This commit is contained in:
commit
6dc6c33a06
@ -35,11 +35,12 @@ stdenv.mkDerivation rec {
|
|||||||
libxml2
|
libxml2
|
||||||
glib
|
glib
|
||||||
openssl
|
openssl
|
||||||
zchunk
|
|
||||||
curl
|
curl
|
||||||
check
|
check
|
||||||
gpgme
|
gpgme
|
||||||
];
|
]
|
||||||
|
# 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 = [
|
||||||
@ -50,7 +51,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
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"
|
||||||
@ -60,7 +61,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Library providing C and Python (libcURL like) API for downloading linux repository metadata and packages";
|
description = "Library providing C and Python (libcURL like) API for downloading linux repository metadata and packages";
|
||||||
homepage = "https://rpm-software-management.github.io/librepo/";
|
homepage = "https://rpm-software-management.github.io/librepo/";
|
||||||
license = licenses.lgpl2Plus;
|
license = licenses.lgpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
maintainers = with maintainers; [ copumpkin ];
|
maintainers = with maintainers; [ copumpkin ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user