5557ff764c
GitOrigin-RevId: 988cc958c57ce4350ec248d2d53087777f9e1949
143 lines
2.4 KiB
Nix
143 lines
2.4 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, wrapGAppsHook
|
|
, pkg-config
|
|
, gettext
|
|
, itstool
|
|
, libvirt-glib
|
|
, glib
|
|
, gobject-introspection
|
|
, libxml2
|
|
, gtk3
|
|
, libvirt
|
|
, spice-gtk
|
|
, appstream-glib
|
|
, spice-protocol
|
|
, libhandy
|
|
, libsoup_3
|
|
, libosinfo
|
|
, systemd
|
|
, tracker
|
|
, tracker-miners
|
|
, vala
|
|
, libcap
|
|
, yajl
|
|
, gmp
|
|
, gdbm
|
|
, cyrus_sasl
|
|
, gnome
|
|
, librsvg
|
|
, desktop-file-utils
|
|
, mtools
|
|
, cdrkit
|
|
, libcdio
|
|
, libusb1
|
|
, libarchive
|
|
, acl
|
|
, libgudev
|
|
, libsecret
|
|
, libcap_ng
|
|
, numactl
|
|
, libapparmor
|
|
, json-glib
|
|
, webkitgtk_4_1
|
|
, vte
|
|
, glib-networking
|
|
, qemu-utils
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-boxes";
|
|
version = "43.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
sha256 = "7tu69YDZuC20vmV7k7zuXzioe3hScPxJVcC/OGIs7ZM=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix path to libgovf-0.1.so in the gir file. We patch gobject-introspection to hardcode absolute paths but
|
|
# our Meson patch will only pass the info when install_dir is absolute as well.
|
|
./fix-gir-lib-path.patch
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib # for appstream-util
|
|
gettext
|
|
gobject-introspection
|
|
itstool
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
wrapGAppsHook
|
|
# For post install script
|
|
glib
|
|
gtk3
|
|
desktop-file-utils
|
|
];
|
|
|
|
# Required for USB redirection PolicyKit rules file
|
|
propagatedUserEnvPkgs = [
|
|
spice-gtk
|
|
];
|
|
|
|
buildInputs = [
|
|
acl
|
|
cyrus_sasl
|
|
gdbm
|
|
glib
|
|
glib-networking
|
|
gmp
|
|
gnome.adwaita-icon-theme
|
|
gtk3
|
|
json-glib
|
|
libapparmor
|
|
libarchive
|
|
libcap
|
|
libcap_ng
|
|
libgudev
|
|
libhandy
|
|
libosinfo
|
|
librsvg
|
|
libsecret
|
|
libsoup_3
|
|
libusb1
|
|
libvirt
|
|
libvirt-glib
|
|
libxml2
|
|
numactl
|
|
spice-gtk
|
|
spice-protocol
|
|
systemd
|
|
tracker
|
|
tracker-miners
|
|
vte
|
|
webkitgtk_4_1
|
|
yajl
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(--prefix PATH : "${lib.makeBinPath [ mtools cdrkit libcdio qemu-utils ]}")
|
|
'';
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
attrPath = "gnome.${pname}";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Simple GNOME 3 application to access remote or virtual systems";
|
|
homepage = "https://wiki.gnome.org/Apps/Boxes";
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = teams.gnome.members;
|
|
};
|
|
}
|