From adabb646bdc87733c2ddb2ca4950fa67bbaf91ae Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Sun, 4 Dec 2016 22:26:43 +0100 Subject: [PATCH] xpra: add pam support --- pkgs/tools/X11/xpra/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/X11/xpra/default.nix b/pkgs/tools/X11/xpra/default.nix index 4ae367abf612..8206a0113311 100644 --- a/pkgs/tools/X11/xpra/default.nix +++ b/pkgs/tools/X11/xpra/default.nix @@ -3,7 +3,8 @@ , makeWrapper, xkbcomp, xorgserver, getopt, xauth, utillinux, which, fontsConf, xkeyboard_config , ffmpeg, x264, libvpx, libwebp , libfakeXinerama -, gst_all_1, pulseaudioLight, gobjectIntrospection }: +, gst_all_1, pulseaudioLight, gobjectIntrospection +, pam }: with lib; @@ -36,16 +37,19 @@ in buildPythonApplication rec { gst_all_1.gst-plugins-bad gst_all_1.gst-libav + pam + makeWrapper ]; propagatedBuildInputs = with python2Packages; [ pillow pygtk pygobject2 rencode pycrypto cryptography pycups lz4 dbus-python - netifaces numpy websockify pygobject3 gst-python + netifaces numpy websockify pygobject3 gst-python pam ]; preBuild = '' export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags gtk+-2.0) $(pkg-config --cflags pygtk-2.0) $(pkg-config --cflags xtst)" + substituteInPlace xpra/server/auth/pam.py --replace "/lib/libpam.so.1" "${pam}/lib/libpam.so" ''; setupPyBuildFlags = ["--with-Xdummy" "--without-strict"];