gnome3.gnome-boxes: fix build

This commit is contained in:
Jan Tojnar 2018-03-14 01:39:46 +01:00
parent 2df1eee63a
commit cc8403ffdc
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,51 +1,48 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig, gettext, itstool, libvirt-glib { stdenv, fetchurl, meson, ninja, wrapGAppsHook, pkgconfig, gettext, libvirt-glib
, glib, gobjectIntrospection, libxml2, gtk3, gtkvnc, libvirt, spice-gtk , glib, gobjectIntrospection, libxml2, gtk3, gtkvnc, libvirt, spice-gtk
, spice-protocol, libsoup, libosinfo, systemd, tracker, tracker-miners, vala , spice-protocol, libsoup, libosinfo, systemd, tracker, tracker-miners, vala
, libcap, yajl, gmp, gdbm, cyrus_sasl, gnome3, librsvg, desktop-file-utils , libcap, yajl, gmp, gdbm, cyrus_sasl, gnome3, librsvg, desktop-file-utils
, mtools, cdrkit, libcdio, libusb, libarchive, acl, libgudev, qemu, libsecret , mtools, cdrkit, libcdio, libusb, libarchive, acl, libgudev, qemu, libsecret
, libcap_ng, numactl, xen, libapparmor , libcap_ng, numactl, xen, libapparmor, json-glib, webkitgtk
}: }:
# TODO: ovirt (optional) # TODO: ovirt (optional)
stdenv.mkDerivation rec { let
name = "gnome-boxes-${version}";
version = "3.27.92"; version = "3.27.92";
in stdenv.mkDerivation rec {
name = "gnome-boxes-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/gnome-boxes/${gnome3.versionBranch version}/${name}.tar.xz"; url = "mirror://gnome/sources/gnome-boxes/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "1v1br4zh2w3w70np5imi31md6lnqamabiin521f806rdrxsnyggq"; sha256 = "1v1br4zh2w3w70np5imi31md6lnqamabiin521f806rdrxsnyggq";
}; };
passthru = {
updateScript = gnome3.updateScript { packageName = "gnome-boxes"; attrPath = "gnome3.gnome-boxes"; };
};
enableParallelBuilding = true;
doCheck = true; doCheck = true;
nativeBuildInputs = [ nativeBuildInputs = [
makeWrapper pkgconfig gettext meson ninja vala pkgconfig gettext wrapGAppsHook gobjectIntrospection desktop-file-utils
]; ];
buildInputs = [ buildInputs = [
itstool libvirt-glib glib gobjectIntrospection libxml2 gtk3 gtkvnc libvirt-glib glib gtk3 gtkvnc libxml2
libvirt spice-gtk spice-protocol libsoup libosinfo systemd libvirt spice-gtk spice-protocol libsoup json-glib webkitgtk libosinfo systemd
tracker tracker-miners vala libcap yajl gmp gdbm cyrus_sasl libusb libarchive tracker tracker-miners libcap yajl gmp gdbm cyrus_sasl libusb libarchive
gnome3.defaultIconTheme librsvg desktop-file-utils acl libgudev libsecret gnome3.defaultIconTheme librsvg acl libgudev libsecret
libcap_ng numactl xen libapparmor libcap_ng numactl xen libapparmor
]; ];
preFixup = '' preFixup = ''
for prog in "$out/bin/"*; do gappsWrapperArgs+=(--prefix PATH : "${stdenv.lib.makeBinPath [ mtools cdrkit libcdio qemu ]}")
wrapProgram "$prog" \
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
--prefix XDG_DATA_DIRS : "${gnome3.gnome-themes-standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
--prefix PATH : "${stdenv.lib.makeBinPath [ mtools cdrkit libcdio qemu ]}"
done
''; '';
passthru = {
updateScript = gnome3.updateScript {
packageName = "gnome-boxes";
attrPath = "gnome3.gnome-boxes";
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Simple GNOME 3 application to access remote or virtual systems"; description = "Simple GNOME 3 application to access remote or virtual systems";
homepage = https://wiki.gnome.org/action/show/Apps/Boxes; homepage = https://wiki.gnome.org/action/show/Apps/Boxes;