2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchurl,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
wrapGAppsHook3,
|
|
|
|
pkg-config,
|
|
|
|
gettext,
|
|
|
|
itstool,
|
|
|
|
libvirt-glib,
|
|
|
|
glib,
|
|
|
|
gobject-introspection,
|
|
|
|
libxml2,
|
|
|
|
gtk3,
|
|
|
|
libvirt,
|
|
|
|
spice-gtk,
|
|
|
|
spice-protocol,
|
|
|
|
libhandy,
|
|
|
|
libsoup_3,
|
|
|
|
libosinfo,
|
|
|
|
systemd,
|
|
|
|
vala,
|
|
|
|
libcap,
|
|
|
|
yajl,
|
|
|
|
gmp,
|
|
|
|
gdbm,
|
|
|
|
cyrus_sasl,
|
|
|
|
gnome,
|
|
|
|
adwaita-icon-theme,
|
|
|
|
librsvg,
|
|
|
|
desktop-file-utils,
|
|
|
|
mtools,
|
|
|
|
cdrkit,
|
|
|
|
libcdio,
|
|
|
|
libusb1,
|
|
|
|
libarchive,
|
|
|
|
acl,
|
|
|
|
libgudev,
|
|
|
|
libcap_ng,
|
|
|
|
numactl,
|
|
|
|
libapparmor,
|
|
|
|
json-glib,
|
|
|
|
webkitgtk_4_1,
|
|
|
|
vte,
|
|
|
|
glib-networking,
|
|
|
|
qemu-utils,
|
|
|
|
libportal-gtk3,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-boxes";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "46.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-09-19 14:19:46 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-boxes/${lib.versions.major version}/gnome-boxes-${version}.tar.xz";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-kAwXf2diZANwpmNM+efTzYIH5Jg2eopmemtzGwQRYDY=";
|
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 = [
|
|
|
|
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
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
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
|
2024-09-19 14:19:46 +00:00
|
|
|
propagatedUserEnvPkgs = [ spice-gtk ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
acl
|
|
|
|
cyrus_sasl
|
|
|
|
gdbm
|
|
|
|
glib
|
|
|
|
glib-networking
|
|
|
|
gmp
|
2024-07-27 06:49:29 +00:00
|
|
|
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
|
2024-05-15 15:35:15 +00:00
|
|
|
libportal-gtk3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
2024-09-19 14:19:46 +00:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : "${
|
|
|
|
lib.makeBinPath [
|
|
|
|
mtools
|
|
|
|
cdrkit
|
|
|
|
libcdio
|
|
|
|
qemu-utils
|
|
|
|
]
|
|
|
|
}")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2024-09-19 14:19:46 +00:00
|
|
|
updateScript = gnome.updateScript { packageName = "gnome-boxes"; };
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://apps.gnome.org/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;
|
|
|
|
};
|
|
|
|
}
|