2022-02-21 08:47:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-02-16 17:41:37 +00:00
|
|
|
, fetchzip
|
2022-03-05 16:20:37 +00:00
|
|
|
, gnome
|
2023-02-16 17:41:37 +00:00
|
|
|
, meson
|
2022-02-21 08:47:16 +00:00
|
|
|
, pkg-config
|
2022-03-05 16:20:37 +00:00
|
|
|
, gobject-introspection
|
2023-02-16 17:41:37 +00:00
|
|
|
, ninja
|
|
|
|
, glib
|
|
|
|
, librest_1_0
|
2022-02-21 08:47:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libgovirt";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.3.9";
|
2022-02-21 08:47:16 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
src = fetchzip {
|
2022-03-05 16:20:37 +00:00
|
|
|
url = "mirror://gnome/sources/libgovirt/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "sha256-6RDuJTyaVYlO4Kq+niQyepom6xj1lqdBbyWL/VnZUdk=";
|
2022-02-21 08:47:16 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
patches = [
|
|
|
|
# https://gitlab.gnome.org/GNOME/libgovirt/-/issues/9
|
|
|
|
./auto-disable-incompatible-compiler-warnings.patch
|
2022-11-04 12:27:35 +00:00
|
|
|
];
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang (lib.concatStringsSep " " [
|
2023-02-16 17:41:37 +00:00
|
|
|
"-Wno-typedef-redefinition"
|
|
|
|
"-Wno-missing-field-initializers"
|
|
|
|
"-Wno-cast-align"
|
|
|
|
]);
|
2022-11-04 12:27:35 +00:00
|
|
|
|
2022-02-21 08:47:16 +00:00
|
|
|
nativeBuildInputs = [
|
2023-02-16 17:41:37 +00:00
|
|
|
meson
|
2022-02-21 08:47:16 +00:00
|
|
|
pkg-config
|
2022-03-05 16:20:37 +00:00
|
|
|
gobject-introspection
|
2023-02-16 17:41:37 +00:00
|
|
|
ninja
|
2022-02-21 08:47:16 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-03-05 16:20:37 +00:00
|
|
|
glib
|
2023-02-16 17:41:37 +00:00
|
|
|
librest_1_0
|
2022-02-21 08:47:16 +00:00
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-21 08:47:16 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libgovirt";
|
|
|
|
description = "GObject wrapper for the oVirt REST API";
|
2022-11-04 12:27:35 +00:00
|
|
|
maintainers = with maintainers; [ amarshall atemu ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2022-03-05 16:20:37 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2022-02-21 08:47:16 +00:00
|
|
|
};
|
|
|
|
}
|