mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
3b685ee517
Port to Python 3 and GTK+ 3.
92 lines
2.4 KiB
Nix
92 lines
2.4 KiB
Nix
{ stdenv, lib, fetchurl, callPackage, substituteAll, python3, pkgconfig
|
|
, xorg, gtk3, glib, pango, cairo, gdk_pixbuf, atk
|
|
, wrapGAppsHook, xorgserver, getopt, xauth, utillinux, which
|
|
, ffmpeg, x264, libvpx, libwebp
|
|
, libfakeXinerama
|
|
, gst_all_1, pulseaudio, gobjectIntrospection
|
|
, pam }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
inherit (python3.pkgs) cython buildPythonApplication;
|
|
|
|
xf86videodummy = callPackage ./xf86videodummy { };
|
|
in buildPythonApplication rec {
|
|
pname = "xpra";
|
|
version = "2.3.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://xpra.org/src/${pname}-${version}.tar.xz";
|
|
sha256 = "1azvvddjfq7lb5kmbn0ilgq2nf7pmymsc3b9lhbjld6w156qdv01";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./fix-paths.patch;
|
|
inherit (xorg) xkeyboardconfig;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig gobjectIntrospection wrapGAppsHook ];
|
|
buildInputs = [
|
|
cython
|
|
|
|
xorg.libX11 xorg.renderproto xorg.libXrender xorg.libXi xorg.inputproto xorg.kbproto
|
|
xorg.randrproto xorg.damageproto xorg.compositeproto xorg.xextproto xorg.recordproto
|
|
xorg.xproto xorg.fixesproto xorg.libXtst xorg.libXfixes xorg.libXcomposite xorg.libXdamage
|
|
xorg.libXrandr xorg.libxkbfile
|
|
|
|
pango cairo gdk_pixbuf atk gtk3 glib
|
|
|
|
ffmpeg libvpx x264 libwebp
|
|
|
|
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
|
|
|
|
pam
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pillow rencode pycrypto cryptography pycups lz4 dbus-python
|
|
netifaces numpy websockify pygobject3 pycairo gst-python pam
|
|
];
|
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
# error: 'import_cairo' defined but not used
|
|
"-Wno-error=unused-function"
|
|
];
|
|
|
|
setupPyBuildFlags = [
|
|
"--with-Xdummy"
|
|
"--without-strict"
|
|
"--with-gtk3"
|
|
"--without-gtk2"
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
--set XPRA_INSTALL_PREFIX "$out"
|
|
--prefix LD_LIBRARY_PATH : ${libfakeXinerama}/lib
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [ getopt xorgserver xauth which utillinux pulseaudio ]}
|
|
)
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
passthru = { inherit xf86videodummy; };
|
|
|
|
meta = {
|
|
homepage = http://xpra.org/;
|
|
downloadPage = "https://xpra.org/src/";
|
|
downloadURLRegexp = "xpra-.*[.]tar[.]xz$";
|
|
description = "Persistent remote applications for X";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ tstrobel offline numinit ];
|
|
};
|
|
}
|