x11vnc: Properly hard-code the path to xdpyinfo

This never worked before, I don't think

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-05-01 20:49:56 -04:00
parent 52edd648d3
commit faddfc97b0

@ -23,9 +23,7 @@ stdenv.mkDerivation rec {
--replace '"/bin/su"' '"/var/setuid-wrappers/su"' \
--replace '"/bin/true"' '"${coreutils}/bin/true"'
substituteInPlace x11vnc/ssltools.h \
--replace /bin/su /var/setuid-wrappers/su \
--replace xdpyinfo ${xorg.xdpyinfo}/bin/xdpyinfo
sed -i -e '/#!\/bin\/sh/a"PATH=${xorg.xdpyinfo}\/bin:$PATH\\n"' -e 's|/bin/su|/var/setuid-wrappers/su|g' x11vnc/ssltools.h
'';
meta = {