2022-10-21 18:38:19 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
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
|
|
|
|
, libvirt
|
|
|
|
, spice-gtk
|
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
|
2022-10-21 18:38:19 +00:00
|
|
|
, libsoup_3
|
2020-04-24 23:36:52 +00:00
|
|
|
, libosinfo
|
|
|
|
, systemd
|
|
|
|
, 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
|
|
|
|
, libcap_ng
|
|
|
|
, numactl
|
|
|
|
, libapparmor
|
|
|
|
, json-glib
|
2022-10-21 18:38:19 +00:00
|
|
|
, webkitgtk_4_1
|
2020-04-24 23:36:52 +00:00
|
|
|
, vte
|
|
|
|
, glib-networking
|
2021-06-06 07:54:09 +00:00
|
|
|
, qemu-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-boxes";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "45.0";
|
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";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "zGMIDu+hR6hHKrGl/wh7l6J6tyOk7gBe1B6Mndd5jkE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
patches = [
|
2022-07-14 12:49:19 +00:00
|
|
|
# Fix path to libgovf-0.1.so in the gir file. We patch gobject-introspection to hardcode absolute paths but
|
2022-04-15 01:41:22 +00:00
|
|
|
# our Meson patch will only pass the info when install_dir is absolute as well.
|
|
|
|
./fix-gir-lib-path.patch
|
|
|
|
];
|
|
|
|
|
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
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
itstool
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
2022-10-21 18:38:19 +00:00
|
|
|
# For post install script
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
desktop-file-utils
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Required for USB redirection PolicyKit rules file
|
|
|
|
propagatedUserEnvPkgs = [
|
|
|
|
spice-gtk
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
acl
|
|
|
|
cyrus_sasl
|
|
|
|
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
|
|
|
gtk3
|
|
|
|
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
|
2022-10-21 18:38:19 +00:00
|
|
|
libsoup_3
|
2020-04-24 23:36:52 +00:00
|
|
|
libusb1
|
|
|
|
libvirt
|
|
|
|
libvirt-glib
|
|
|
|
libxml2
|
|
|
|
numactl
|
|
|
|
spice-gtk
|
|
|
|
spice-protocol
|
|
|
|
systemd
|
|
|
|
vte
|
2022-10-21 18:38:19 +00:00
|
|
|
webkitgtk_4_1
|
2020-04-24 23:36:52 +00:00
|
|
|
yajl
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
2022-09-30 11:47:45 +00:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ mtools cdrkit libcdio qemu-utils ]}")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gnome-boxes";
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|