2018-03-14 01:39:46 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, wrapGAppsHook, pkgconfig, gettext, libvirt-glib
|
2018-02-25 03:23:58 +01:00
|
|
|
, glib, gobjectIntrospection, libxml2, gtk3, gtkvnc, libvirt, spice-gtk
|
|
|
|
, spice-protocol, libsoup, libosinfo, systemd, tracker, tracker-miners, vala
|
|
|
|
, libcap, yajl, gmp, gdbm, cyrus_sasl, gnome3, librsvg, desktop-file-utils
|
2017-03-28 19:13:39 +02:00
|
|
|
, mtools, cdrkit, libcdio, libusb, libarchive, acl, libgudev, qemu, libsecret
|
2018-03-14 01:39:46 +01:00
|
|
|
, libcap_ng, numactl, xen, libapparmor, json-glib, webkitgtk
|
2016-09-18 21:35:23 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
# TODO: ovirt (optional)
|
|
|
|
|
2018-03-14 01:39:46 +01:00
|
|
|
let
|
2018-03-13 02:03:18 +01:00
|
|
|
version = "3.27.92";
|
2018-03-14 01:39:46 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "gnome-boxes-${version}";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-boxes/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 02:03:18 +01:00
|
|
|
sha256 = "1v1br4zh2w3w70np5imi31md6lnqamabiin521f806rdrxsnyggq";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-03-28 19:13:39 +02:00
|
|
|
nativeBuildInputs = [
|
2018-03-14 01:39:46 +01:00
|
|
|
meson ninja vala pkgconfig gettext wrapGAppsHook gobjectIntrospection desktop-file-utils
|
2017-03-28 19:13:39 +02:00
|
|
|
];
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
buildInputs = [
|
2018-03-14 01:39:46 +01:00
|
|
|
libvirt-glib glib gtk3 gtkvnc libxml2
|
|
|
|
libvirt spice-gtk spice-protocol libsoup json-glib webkitgtk libosinfo systemd
|
|
|
|
tracker tracker-miners libcap yajl gmp gdbm cyrus_sasl libusb libarchive
|
|
|
|
gnome3.defaultIconTheme librsvg acl libgudev libsecret
|
2017-03-28 19:13:39 +02:00
|
|
|
libcap_ng numactl xen libapparmor
|
2016-09-18 21:35:23 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
2018-03-14 01:39:46 +01:00
|
|
|
gappsWrapperArgs+=(--prefix PATH : "${stdenv.lib.makeBinPath [ mtools cdrkit libcdio qemu ]}")
|
2016-09-18 21:35:23 +02:00
|
|
|
'';
|
|
|
|
|
2018-03-14 01:39:46 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-boxes";
|
|
|
|
attrPath = "gnome3.gnome-boxes";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple GNOME 3 application to access remote or virtual systems";
|
|
|
|
homepage = https://wiki.gnome.org/action/show/Apps/Boxes;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ bjornfor ];
|
|
|
|
};
|
|
|
|
}
|