nixpkgs/pkgs/by-name/li/libgovirt/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.3 KiB
Nix
Raw Normal View History

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