2018-09-13 17:43:31 +02:00
|
|
|
{ stdenv, lib, fetchurl, callPackage, substituteAll, python3, pkgconfig
|
|
|
|
, xorg, gtk3, glib, pango, cairo, gdk_pixbuf, atk
|
|
|
|
, wrapGAppsHook, xorgserver, getopt, xauth, utillinux, which
|
2017-04-24 23:47:46 +02:00
|
|
|
, ffmpeg, x264, libvpx, libwebp
|
2016-09-03 15:52:39 +02:00
|
|
|
, libfakeXinerama
|
2018-12-02 12:41:15 +01:00
|
|
|
, gst_all_1, pulseaudio, gobject-introspection
|
2016-12-04 22:26:43 +01:00
|
|
|
, pam }:
|
2016-09-03 15:52:39 +02:00
|
|
|
|
|
|
|
with lib;
|
2008-03-17 14:45:50 +01:00
|
|
|
|
2016-08-14 12:01:09 +02:00
|
|
|
let
|
2018-09-13 17:43:31 +02:00
|
|
|
inherit (python3.pkgs) cython buildPythonApplication;
|
2018-07-15 10:32:53 +02:00
|
|
|
|
|
|
|
xf86videodummy = callPackage ./xf86videodummy { };
|
2016-08-14 12:01:09 +02:00
|
|
|
in buildPythonApplication rec {
|
2018-07-15 10:32:53 +02:00
|
|
|
pname = "xpra";
|
2018-10-12 22:43:15 +02:00
|
|
|
version = "2.3.4";
|
2017-11-11 13:00:17 +01:00
|
|
|
|
2008-03-17 14:45:50 +01:00
|
|
|
src = fetchurl {
|
2018-07-15 10:32:53 +02:00
|
|
|
url = "https://xpra.org/src/${pname}-${version}.tar.xz";
|
2018-10-12 22:43:15 +02:00
|
|
|
sha256 = "0wa3kx54himy3i1b2801hlzfilh3cf4kjk40k1cjl0ds28m5hija";
|
2008-03-17 14:45:50 +01:00
|
|
|
};
|
|
|
|
|
2018-09-13 17:43:31 +02:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
inherit (xorg) xkeyboardconfig;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-12-02 12:41:15 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig gobject-introspection wrapGAppsHook ];
|
2018-12-31 04:40:47 +01:00
|
|
|
buildInputs = with xorg; [
|
|
|
|
libX11 xorgproto libXrender libXi
|
|
|
|
libXtst libXfixes libXcomposite libXdamage
|
|
|
|
libXrandr libxkbfile
|
|
|
|
] ++ [
|
2017-09-14 21:24:37 +02:00
|
|
|
cython
|
2012-07-06 03:33:52 +02:00
|
|
|
|
2018-09-13 17:43:31 +02:00
|
|
|
pango cairo gdk_pixbuf atk gtk3 glib
|
2008-03-17 14:45:50 +01:00
|
|
|
|
2017-05-01 01:58:33 +02:00
|
|
|
ffmpeg libvpx x264 libwebp
|
2015-02-25 00:34:58 +01:00
|
|
|
|
2016-09-03 15:52:39 +02:00
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gst-plugins-bad
|
|
|
|
gst_all_1.gst-libav
|
|
|
|
|
2016-12-04 22:26:43 +01:00
|
|
|
pam
|
2018-09-13 17:43:31 +02:00
|
|
|
];
|
2016-12-04 22:26:43 +01:00
|
|
|
|
2018-09-13 17:43:31 +02:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pillow rencode pycrypto cryptography pycups lz4 dbus-python
|
|
|
|
netifaces numpy websockify pygobject3 pycairo gst-python pam
|
2012-07-06 03:33:52 +02:00
|
|
|
];
|
|
|
|
|
2018-09-13 17:43:31 +02:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
# error: 'import_cairo' defined but not used
|
|
|
|
"-Wno-error=unused-function"
|
2013-03-29 02:30:18 +01:00
|
|
|
];
|
|
|
|
|
2018-09-13 17:43:31 +02:00
|
|
|
setupPyBuildFlags = [
|
|
|
|
"--with-Xdummy"
|
|
|
|
"--without-strict"
|
|
|
|
"--with-gtk3"
|
|
|
|
"--without-gtk2"
|
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--set XPRA_INSTALL_PREFIX "$out"
|
|
|
|
--prefix LD_LIBRARY_PATH : ${libfakeXinerama}/lib
|
2018-07-17 22:11:16 +02:00
|
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux pulseaudio ]}
|
2018-09-13 17:43:31 +02:00
|
|
|
)
|
2015-02-25 00:34:58 +01:00
|
|
|
'';
|
|
|
|
|
2018-09-13 17:43:31 +02:00
|
|
|
doCheck = false;
|
2015-02-25 00:34:58 +01:00
|
|
|
|
2018-07-15 10:32:53 +02:00
|
|
|
passthru = { inherit xf86videodummy; };
|
2015-02-25 00:34:58 +01:00
|
|
|
|
2008-03-17 14:45:50 +01:00
|
|
|
meta = {
|
2012-06-05 15:19:49 +02:00
|
|
|
homepage = http://xpra.org/;
|
2017-11-11 13:00:17 +01:00
|
|
|
downloadPage = "https://xpra.org/src/";
|
|
|
|
downloadURLRegexp = "xpra-.*[.]tar[.]xz$";
|
2008-03-17 14:45:50 +01:00
|
|
|
description = "Persistent remote applications for X";
|
2016-09-03 15:52:39 +02:00
|
|
|
platforms = platforms.linux;
|
2018-09-12 21:42:39 +02:00
|
|
|
license = licenses.gpl2;
|
2018-11-14 21:19:38 +01:00
|
|
|
# https://github.com/NixOS/nixpkgs/pull/48872#issuecomment-433559636
|
|
|
|
broken = true;
|
2018-07-15 10:32:53 +02:00
|
|
|
maintainers = with maintainers; [ tstrobel offline numinit ];
|
2008-03-17 14:45:50 +01:00
|
|
|
};
|
|
|
|
}
|