2022-02-15 00:37:24 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, glib
|
2022-02-20 12:05:21 +01:00
|
|
|
, gnome
|
2022-02-15 00:37:24 +01:00
|
|
|
, librest
|
|
|
|
, libsoup
|
|
|
|
, pkg-config
|
2022-02-20 12:05:21 +01:00
|
|
|
, gobject-introspection
|
2022-02-15 00:37:24 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libgovirt";
|
|
|
|
version = "0.3.8";
|
|
|
|
|
2022-02-20 12:05:21 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2022-02-15 00:37:24 +01:00
|
|
|
src = fetchurl {
|
2022-02-20 12:05:21 +01:00
|
|
|
url = "mirror://gnome/sources/libgovirt/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "HckYYikXa9+p8l/Y+oLAoFi2pgwcyAfHUH7IqTwPHfg=";
|
2022-02-15 00:37:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2022-02-20 12:05:21 +01:00
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libsoup
|
2022-02-15 00:37:24 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-02-20 12:05:21 +01:00
|
|
|
glib
|
2022-02-15 00:37:24 +01:00
|
|
|
librest
|
|
|
|
];
|
|
|
|
|
2022-02-20 12:05:21 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
versionPolicy = "none";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-15 00:37:24 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libgovirt";
|
|
|
|
description = "GObject wrapper for the oVirt REST API";
|
|
|
|
maintainers = [ maintainers.amarshall ];
|
|
|
|
platforms = platforms.linux;
|
2022-02-20 12:05:21 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
2022-02-15 00:37:24 +01:00
|
|
|
};
|
|
|
|
}
|