2018-03-15 11:21:51 -07:00
|
|
|
{ stdenv, fetchurl, meson, ninja, wrapGAppsHook, pkgconfig, gettext, itstool, libvirt-glib
|
2018-12-02 03:41:15 -08:00
|
|
|
, glib, gobject-introspection, libxml2, gtk3, gtk-vnc, freerdp, libvirt, spice-gtk, python3
|
2018-02-24 18:23:58 -08:00
|
|
|
, spice-protocol, libsoup, libosinfo, systemd, tracker, tracker-miners, vala
|
|
|
|
, libcap, yajl, gmp, gdbm, cyrus_sasl, gnome3, librsvg, desktop-file-utils
|
2019-07-14 05:32:02 -07:00
|
|
|
, mtools, cdrkit, libcdio, libusb, libarchive, acl, libgudev, libsecret
|
2019-03-03 10:37:26 -08:00
|
|
|
, libcap_ng, numactl, xen, libapparmor, json-glib, webkitgtk, vte
|
2016-09-18 12:35:23 -07:00
|
|
|
}:
|
|
|
|
|
2018-03-13 17:39:46 -07:00
|
|
|
let
|
2019-09-04 04:27:03 -07:00
|
|
|
version = "3.34.0";
|
2018-03-13 17:39:46 -07:00
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "gnome-boxes";
|
|
|
|
inherit version;
|
2018-02-25 12:07:20 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-13 14:52:01 -07:00
|
|
|
url = "mirror://gnome/sources/gnome-boxes/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-04 04:27:03 -07:00
|
|
|
sha256 = "07qjrb1qgfznvm0l2jm99d212dvw3iaw76czq5q1msnghpdw67qd";
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
|
|
|
|
2016-09-18 12:35:23 -07:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-03-28 10:13:39 -07:00
|
|
|
nativeBuildInputs = [
|
2018-12-02 03:41:15 -08:00
|
|
|
meson ninja vala pkgconfig gettext itstool wrapGAppsHook gobject-introspection desktop-file-utils python3
|
2017-03-28 10:13:39 -07:00
|
|
|
];
|
|
|
|
|
2018-04-19 11:40:10 -07:00
|
|
|
# Required for USB redirection PolicyKit rules file
|
|
|
|
propagatedUserEnvPkgs = [ spice-gtk ];
|
|
|
|
|
2016-09-18 12:35:23 -07:00
|
|
|
buildInputs = [
|
2018-09-04 17:45:21 -07:00
|
|
|
libvirt-glib glib gtk3 gtk-vnc freerdp libxml2
|
2018-03-13 17:39:46 -07:00
|
|
|
libvirt spice-gtk spice-protocol libsoup json-glib webkitgtk libosinfo systemd
|
|
|
|
tracker tracker-miners libcap yajl gmp gdbm cyrus_sasl libusb libarchive
|
2019-02-13 13:47:50 -08:00
|
|
|
gnome3.adwaita-icon-theme librsvg acl libgudev libsecret
|
2019-03-03 10:37:26 -08:00
|
|
|
libcap_ng numactl xen libapparmor vte
|
2016-09-18 12:35:23 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
2019-07-14 05:32:02 -07:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : "${stdenv.lib.makeBinPath [ mtools cdrkit libcdio ]}")
|
2016-09-18 12:35:23 -07:00
|
|
|
'';
|
|
|
|
|
2018-03-15 11:21:51 -07:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs build-aux/post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-03-13 17:39:46 -07:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-boxes";
|
|
|
|
attrPath = "gnome3.gnome-boxes";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 12:35:23 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple GNOME 3 application to access remote or virtual systems";
|
2018-09-04 17:45:21 -07:00
|
|
|
homepage = https://wiki.gnome.org/Apps/Boxes;
|
2016-09-18 12:35:23 -07:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2019-09-17 14:38:15 -07:00
|
|
|
maintainers = gnome3.maintainers;
|
2016-09-18 12:35:23 -07:00
|
|
|
};
|
|
|
|
}
|