69aa1b069f
- add required vte dependency - require new libosinfo et.al. https://gitlab.gnome.org/GNOME/gnome-boxes/blob/v3.32.0.2/NEWS
66 lines
2.1 KiB
Nix
66 lines
2.1 KiB
Nix
{ stdenv, fetchurl, meson, ninja, wrapGAppsHook, pkgconfig, gettext, itstool, libvirt-glib
|
|
, glib, gobject-introspection, libxml2, gtk3, gtk-vnc, freerdp, libvirt, spice-gtk, python3
|
|
, spice-protocol, libsoup, libosinfo, systemd, tracker, tracker-miners, vala
|
|
, libcap, yajl, gmp, gdbm, cyrus_sasl, gnome3, librsvg, desktop-file-utils
|
|
, mtools, cdrkit, libcdio, libusb, libarchive, acl, libgudev, qemu, libsecret
|
|
, libcap_ng, numactl, xen, libapparmor, json-glib, webkitgtk, vte
|
|
}:
|
|
|
|
# TODO: ovirt (optional)
|
|
|
|
let
|
|
version = "3.32.0.2";
|
|
in stdenv.mkDerivation rec {
|
|
name = "gnome-boxes-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-boxes/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
|
sha256 = "1239x1bbkn0gxxq82zpvjjr7srla2d5ghi5rqwxnhsab0c2ypswk";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
nativeBuildInputs = [
|
|
meson ninja vala pkgconfig gettext itstool wrapGAppsHook gobject-introspection desktop-file-utils python3
|
|
];
|
|
|
|
# Required for USB redirection PolicyKit rules file
|
|
propagatedUserEnvPkgs = [ spice-gtk ];
|
|
|
|
buildInputs = [
|
|
libvirt-glib glib gtk3 gtk-vnc freerdp libxml2
|
|
libvirt spice-gtk spice-protocol libsoup json-glib webkitgtk libosinfo systemd
|
|
tracker tracker-miners libcap yajl gmp gdbm cyrus_sasl libusb libarchive
|
|
gnome3.adwaita-icon-theme librsvg acl libgudev libsecret
|
|
libcap_ng numactl xen libapparmor vte
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(--prefix PATH : "${stdenv.lib.makeBinPath [ mtools cdrkit libcdio qemu ]}")
|
|
'';
|
|
|
|
mesonFlags = [
|
|
"-Dovirt=false"
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x build-aux/post_install.py # patchShebangs requires executable file
|
|
patchShebangs build-aux/post_install.py
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = "gnome-boxes";
|
|
attrPath = "gnome3.gnome-boxes";
|
|
};
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Simple GNOME 3 application to access remote or virtual systems";
|
|
homepage = https://wiki.gnome.org/Apps/Boxes;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
};
|
|
}
|