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