Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
gnome,
|
|
meson,
|
|
pkg-config,
|
|
gobject-introspection,
|
|
ninja,
|
|
glib,
|
|
librest_1_0,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libgovirt";
|
|
version = "0.3.9";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
src = fetchzip {
|
|
url = "mirror://gnome/sources/libgovirt/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-6RDuJTyaVYlO4Kq+niQyepom6xj1lqdBbyWL/VnZUdk=";
|
|
};
|
|
|
|
patches = [
|
|
# https://gitlab.gnome.org/GNOME/libgovirt/-/issues/9
|
|
./auto-disable-incompatible-compiler-warnings.patch
|
|
];
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang (
|
|
lib.concatStringsSep " " [
|
|
"-Wno-typedef-redefinition"
|
|
"-Wno-missing-field-initializers"
|
|
"-Wno-cast-align"
|
|
]
|
|
);
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
pkg-config
|
|
gobject-introspection
|
|
ninja
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib
|
|
librest_1_0
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "none";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.gnome.org/GNOME/libgovirt";
|
|
description = "GObject wrapper for the oVirt REST API";
|
|
maintainers = with maintainers; [
|
|
amarshall
|
|
atemu
|
|
];
|
|
platforms = with platforms; linux ++ darwin;
|
|
license = licenses.lgpl21Plus;
|
|
};
|
|
}
|