2012-07-06 02:33:52 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, python, cython
|
2012-07-06 02:36:15 +01:00
|
|
|
, pygtk, pygobject, pycairo, notify, xlibs, gtk
|
2012-07-06 02:33:52 +01:00
|
|
|
, ffmpeg, x264, libvpx, makeWrapper}:
|
2008-03-17 13:45:50 +00:00
|
|
|
|
2012-07-06 02:33:52 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-06-05 14:19:49 +01:00
|
|
|
name = "xpra-0.3.2";
|
2008-03-17 13:45:50 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-06-05 14:19:49 +01:00
|
|
|
url = http://xpra.org/src/xpra-0.3.2.tar.bz2;
|
|
|
|
sha256 = "1s1z6r0r78qvf59ci3vxammjz7lj5m64jyk0bfn7yxd5jl3sy41y";
|
2008-03-17 13:45:50 +00:00
|
|
|
};
|
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ cython ];
|
2012-07-06 02:33:52 +01:00
|
|
|
|
2008-03-17 13:45:50 +00:00
|
|
|
buildInputs = [
|
2012-07-06 02:33:52 +01:00
|
|
|
pkgconfig python pygtk gtk ffmpeg x264 libvpx makeWrapper
|
2008-03-17 13:45:50 +00:00
|
|
|
xlibs.inputproto xlibs.libXcomposite xlibs.libXdamage xlibs.libXtst
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0) $(pkg-config --cflags pygtk-2.0)"
|
|
|
|
NIX_LDFLAGS="$NIX_LDFLAGS -lXcomposite -lXdamage"
|
|
|
|
./do-build
|
|
|
|
'';
|
|
|
|
|
2012-07-06 02:33:52 +01:00
|
|
|
pythonPaths = [
|
|
|
|
"$out/lib/python"
|
|
|
|
"$(toPythonPath ${pygtk})/gtk-2.0"
|
|
|
|
] ++ map (i: "$(toPythonPath ${i})") [
|
|
|
|
pygobject pycairo notify
|
|
|
|
];
|
|
|
|
|
2008-03-17 13:45:50 +00:00
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2008-03-17 13:45:50 +00:00
|
|
|
cp -r install/* $out
|
|
|
|
|
|
|
|
for i in $(cd $out/bin && ls); do
|
|
|
|
wrapProgram $out/bin/$i \
|
2012-07-06 02:33:52 +01:00
|
|
|
--set PYTHONPATH "${stdenv.lib.concatStringsSep ":" pythonPaths}" \
|
2008-03-17 13:45:50 +00:00
|
|
|
--prefix PATH : "${xlibs.xauth}/bin:${xlibs.xorgserver}/bin:${xlibs.xmodmap}/bin"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2012-06-05 14:19:49 +01:00
|
|
|
homepage = http://xpra.org/;
|
2008-03-17 13:45:50 +00:00
|
|
|
description = "Persistent remote applications for X";
|
|
|
|
};
|
|
|
|
}
|