2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, wrapGAppsHook
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext
|
|
|
|
, itstool
|
|
|
|
, libvirt-glib
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, libxml2
|
|
|
|
, gtk3
|
2020-11-12 09:05:59 +00:00
|
|
|
, gtksourceview4
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk-vnc
|
|
|
|
, freerdp
|
|
|
|
, libvirt
|
|
|
|
, spice-gtk
|
|
|
|
, python3
|
2020-11-12 09:05:59 +00:00
|
|
|
, appstream-glib
|
2020-04-24 23:36:52 +00:00
|
|
|
, spice-protocol
|
2021-05-20 23:08:51 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsoup
|
|
|
|
, libosinfo
|
|
|
|
, systemd
|
|
|
|
, tracker
|
|
|
|
, tracker-miners
|
|
|
|
, vala
|
|
|
|
, libcap
|
|
|
|
, yajl
|
|
|
|
, gmp
|
|
|
|
, gdbm
|
|
|
|
, cyrus_sasl
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, librsvg
|
|
|
|
, desktop-file-utils
|
|
|
|
, mtools
|
|
|
|
, cdrkit
|
|
|
|
, libcdio
|
|
|
|
, libusb1
|
|
|
|
, libarchive
|
|
|
|
, acl
|
|
|
|
, libgudev
|
|
|
|
, libsecret
|
|
|
|
, libcap_ng
|
|
|
|
, numactl
|
|
|
|
, libapparmor
|
|
|
|
, json-glib
|
|
|
|
, webkitgtk
|
|
|
|
, vte
|
|
|
|
, glib-networking
|
2021-06-06 07:54:09 +00:00
|
|
|
, qemu-utils
|
2021-09-18 10:52:07 +00:00
|
|
|
, qemu
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-boxes";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "42.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "GuIS/4mZFVQuxTtU2VtozfJx2VjPUSzcP+3Hgixu4SM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-11-12 09:05:59 +00:00
|
|
|
appstream-glib # for appstream-util
|
2020-04-24 23:36:52 +00:00
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# Required for USB redirection PolicyKit rules file
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
spice-gtk
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
acl
|
|
|
|
cyrus_sasl
|
|
|
|
freerdp
|
|
|
|
gdbm
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
gmp
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
gtk-vnc
|
|
|
|
gtk3
|
2020-11-12 09:05:59 +00:00
|
|
|
gtksourceview4
|
2020-04-24 23:36:52 +00:00
|
|
|
json-glib
|
|
|
|
libapparmor
|
|
|
|
libarchive
|
|
|
|
libcap
|
|
|
|
libcap_ng
|
|
|
|
libgudev
|
2021-05-20 23:08:51 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
libosinfo
|
|
|
|
librsvg
|
|
|
|
libsecret
|
|
|
|
libsoup
|
|
|
|
libusb1
|
|
|
|
libvirt
|
|
|
|
libvirt-glib
|
|
|
|
libxml2
|
|
|
|
numactl
|
|
|
|
spice-gtk
|
|
|
|
spice-protocol
|
|
|
|
systemd
|
|
|
|
tracker
|
|
|
|
tracker-miners
|
|
|
|
vte
|
|
|
|
webkitgtk
|
|
|
|
yajl
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
2021-09-18 10:52:07 +00:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ mtools cdrkit libcdio qemu-utils qemu ]}")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs build-aux/post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple GNOME 3 application to access remote or virtual systems";
|
|
|
|
homepage = "https://wiki.gnome.org/Apps/Boxes";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|