libgovirt: darwin support
This commit is contained in:
parent
0524da67eb
commit
88880a8fb3
2 changed files with 21 additions and 2 deletions
|
@ -20,6 +20,11 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "HckYYikXa9+p8l/Y+oLAoFi2pgwcyAfHUH7IqTwPHfg=";
|
||||
};
|
||||
|
||||
patches = lib.optionals stdenv.isDarwin [
|
||||
# The flag breaks the build on darwin and doesn't seem necessary
|
||||
./no-version-script-ld-flag.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
gobject-introspection
|
||||
|
@ -46,8 +51,8 @@ stdenv.mkDerivation rec {
|
|||
meta = with lib; {
|
||||
homepage = "https://gitlab.gnome.org/GNOME/libgovirt";
|
||||
description = "GObject wrapper for the oVirt REST API";
|
||||
maintainers = [ maintainers.amarshall ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ amarshall atemu ];
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
license = licenses.lgpl21Plus;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
--- a/govirt/Makefile.in
|
||||
+++ b/govirt/Makefile.in
|
||||
@@ -511,8 +511,7 @@
|
||||
libgovirt_la_LDFLAGS = \
|
||||
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
|
||||
-export-dynamic \
|
||||
- -no-undefined \
|
||||
- -Wl,--version-script=$(srcdir)/govirt.sym
|
||||
+ -no-undefined
|
||||
|
||||
libgovirt_la_CFLAGS = \
|
||||
$(WARNINGFLAGS_C)
|
||||
|
||||
Diff finished. Fri Oct 28 10:36:38 2022
|
Loading…
Reference in a new issue