mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
e70d829bdb
- Split outputs to prevent closure contamination with propagated dependencies’ dev outputs. - Use mirror URL. - Add update script (also change source URL so it can be auto-updated). - Correct dependencies: - Even though glib is propagated by other dependencies, let’s add it here as well for completeness. - libsoup should not need to be propagated. - Add gobject-introspection (on by default with meson). - Use correct non-deprecated license. - Reduce scope of lib. Ideally, we would also switch to Meson but it currently specifies dependencies incorrectly: https://gitlab.gnome.org/GNOME/libgovirt/-/merge_requests/15
54 lines
978 B
Nix
54 lines
978 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, glib
|
|
, gnome
|
|
, librest
|
|
, libsoup
|
|
, pkg-config
|
|
, gobject-introspection
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libgovirt";
|
|
version = "0.3.8";
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/libgovirt/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "HckYYikXa9+p8l/Y+oLAoFi2pgwcyAfHUH7IqTwPHfg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
libsoup
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib
|
|
librest
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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 = [ maintainers.amarshall ];
|
|
platforms = platforms.linux;
|
|
license = licenses.lgpl21Plus;
|
|
};
|
|
}
|