synergy: Add support for XrandR.
Nowadays, multiple monitor setups are quite common, so I suppose we'd want support for that. Especially because users might get confused if synergy is unable to pick the right screen resolution and thus cause edges to be cut off from the available pointing area. The postPatch hook is to force cmake into thinking that we have XRRNotifyEvent, which we _do_ have with the xrandr version shipped in nixpkgs. Automatic detection from CMakeLists.txt fails here because it tries to search for the symbol within the libX11 store path. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
57dee2a27e
commit
ea4afb73d8
1 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, cmake, x11, libX11, libXi, libXtst, cryptopp }:
|
||||
{ stdenv, fetchurl, cmake, x11, libX11, libXi, libXtst, libXrandr, cryptopp }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "synergy-1.4.12";
|
||||
|
@ -10,7 +10,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [ ./cryptopp.patch ];
|
||||
|
||||
buildInputs = [ cmake x11 libX11 libXi libXtst cryptopp ];
|
||||
postPatch = ''
|
||||
sed -i -e '/HAVE_X11_EXTENSIONS_XRANDR_H/c \
|
||||
set(HAVE_X11_EXTENSIONS_XRANDR_H true)' CMakeLists.txt
|
||||
'';
|
||||
|
||||
buildInputs = [ cmake x11 libX11 libXi libXtst libXrandr cryptopp ];
|
||||
|
||||
# At this moment make install doesn't work for synergy
|
||||
# http://synergy-foss.org/spit/issues/details/3317/
|
||||
|
|
Loading…
Reference in a new issue