ea4afb73d8
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>
37 lines
1 KiB
Nix
37 lines
1 KiB
Nix
{ stdenv, fetchurl, cmake, x11, libX11, libXi, libXtst, libXrandr, cryptopp }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "synergy-1.4.12";
|
|
|
|
src = fetchurl {
|
|
url = "http://synergy.googlecode.com/files/${name}-Source.tar.gz";
|
|
sha256 = "0j884skwqy8r8ckj9a4rlwsbjwb1yrj9wqma1nwhr2inff6hrdim";
|
|
};
|
|
|
|
patches = [ ./cryptopp.patch ];
|
|
|
|
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/
|
|
|
|
installPhase = ''
|
|
ensureDir $out/bin
|
|
cp ../bin/synergyc $out/bin
|
|
cp ../bin/synergys $out/bin
|
|
cp ../bin/synergyd $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tool to share the mouse keyboard and the clipboard between computers";
|
|
homepage = http://synergy-foss.org;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|