nixpkgs/pkgs/desktops/gnome-3/apps/gnome-boxes/default.nix

142 lines
2.2 KiB
Nix
Raw Normal View History

2019-11-05 10:48:06 -08:00
{ stdenv
, fetchurl
, meson
, ninja
, wrapGAppsHook
, pkgconfig
, gettext
, itstool
, libvirt-glib
, glib
, gobject-introspection
, libxml2
, gtk3
, gtk-vnc
, freerdp
, libvirt
, spice-gtk
, python3
, spice-protocol
, libsoup
, libosinfo
, systemd
, tracker
, tracker-miners
, vala
, libcap
, yajl
, gmp
, gdbm
, cyrus_sasl
, gnome3
, librsvg
, desktop-file-utils
, mtools
, cdrkit
, libcdio
, libusb
, libarchive
, acl
, libgudev
, libsecret
, libcap_ng
, numactl
, xen
, libapparmor
, json-glib
, webkitgtk
, vte
, glib-networking
}:
2019-11-05 10:48:06 -08:00
stdenv.mkDerivation rec {
2019-08-13 14:52:01 -07:00
pname = "gnome-boxes";
2019-11-27 13:01:29 -08:00
version = "3.34.2";
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-11-27 13:01:29 -08:00
sha256 = "1rqdjf61cbi3zcpzr6cfkj3lcfrdlhs20bl65lxw2xrwk4jn0ph5";
};
doCheck = true;
nativeBuildInputs = [
2019-11-05 10:48:06 -08:00
desktop-file-utils
gettext
gobject-introspection
itstool
meson
ninja
pkgconfig
python3
vala
wrapGAppsHook
];
# Required for USB redirection PolicyKit rules file
2019-11-05 10:48:06 -08:00
propagatedUserEnvPkgs = [
spice-gtk
];
buildInputs = [
2019-11-05 10:48:06 -08:00
acl
cyrus_sasl
freerdp
gdbm
glib
glib-networking
gmp
gnome3.adwaita-icon-theme
gtk-vnc
gtk3
json-glib
libapparmor
libarchive
libcap
libcap_ng
libgudev
libosinfo
librsvg
libsecret
libsoup
libusb
libvirt
libvirt-glib
libxml2
numactl
spice-gtk
spice-protocol
systemd
tracker
tracker-miners
vte
webkitgtk
xen
yajl
];
preFixup = ''
gappsWrapperArgs+=(--prefix PATH : "${stdenv.lib.makeBinPath [ mtools cdrkit libcdio ]}")
'';
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 {
2019-11-05 10:48:06 -08:00
packageName = pname;
attrPath = "gnome3.${pname}";
2018-03-13 17:39:46 -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;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = gnome3.maintainers;
};
}