diff --git a/pkgs/applications/misc/synergy/cryptopp.patch b/pkgs/applications/misc/synergy/cryptopp.patch deleted file mode 100644 index 1c296423acd..00000000000 --- a/pkgs/applications/misc/synergy/cryptopp.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff -urN synergy-1.4.17-Source/CMakeLists.txt synergy-1.4.17-Source-fix/CMakeLists.txt ---- synergy-1.4.17-Source/CMakeLists.txt 2014-03-14 21:34:19.000000000 +0100 -+++ synergy-1.4.17-Source-fix/CMakeLists.txt 2014-04-11 13:37:18.839338710 +0200 -@@ -145,6 +145,9 @@ - check_type_size(long SIZEOF_LONG) - check_type_size(short SIZEOF_SHORT) - -+ # let's just assume cryptopp exists (provided by the Nix expression) -+ list(APPEND libs cryptopp) -+ - # pthread is used on both Linux and Mac - check_library_exists("pthread" pthread_create "" HAVE_PTHREAD) - if (HAVE_PTHREAD) -@@ -317,7 +320,6 @@ - endif() - - add_subdirectory(src) --add_subdirectory(ext) - - if (WIN32) - # TODO: consider using /analyze to uncover potential bugs in the source code. -diff -urN synergy-1.4.17-Source/src/lib/io/CryptoMode_cryptopp.h synergy-1.4.17-Source-fix/src/lib/io/CryptoMode_cryptopp.h ---- synergy-1.4.17-Source/src/lib/io/CryptoMode_cryptopp.h 2014-02-28 13:36:45.000000000 +0100 -+++ synergy-1.4.17-Source-fix/src/lib/io/CryptoMode_cryptopp.h 2014-04-11 13:36:01.111985556 +0200 -@@ -25,6 +25,6 @@ - # pragma GCC system_header - #endif - --#include --#include --#include -+#include -+#include -+#include -diff -urN synergy-1.4.17-Source/src/lib/io/CryptoStream_cryptopp.h synergy-1.4.17-Source-fix/src/lib/io/CryptoStream_cryptopp.h ---- synergy-1.4.17-Source/src/lib/io/CryptoStream_cryptopp.h 2014-02-28 13:36:45.000000000 +0100 -+++ synergy-1.4.17-Source-fix/src/lib/io/CryptoStream_cryptopp.h 2014-04-11 13:36:07.173013005 +0200 -@@ -25,5 +25,5 @@ - # pragma GCC system_header - #endif - --#include --#include -+#include -+#include diff --git a/pkgs/applications/misc/synergy/default.nix b/pkgs/applications/misc/synergy/default.nix index 0d3337b478f..1c97223a955 100644 --- a/pkgs/applications/misc/synergy/default.nix +++ b/pkgs/applications/misc/synergy/default.nix @@ -1,38 +1,27 @@ { stdenv, fetchFromGitHub, cmake, x11, libX11, libXi, libXtst, libXrandr -, xinput, curl, cryptopp ? null, unzip }: - -assert stdenv.isLinux -> cryptopp != null; +, xinput, curl, openssl, unzip }: with stdenv.lib; stdenv.mkDerivation rec { name = "synergy-${version}"; - version = "1.6.3"; + version = "1.7.4"; src = fetchFromGitHub { owner = "synergy"; repo = "synergy"; - rev = version; - sha256 = "0n4zvz669vi2wyn6i6xhxp0j3nvjl4yzm441cqv6hb0d5k26wbcn"; + rev = "v${version}-stable"; + sha256 = "0pxj0qpnsaffpaxik8vc5rjfinmx8ab3b2lssrxkfbs7isskvs33"; }; - patches = optional stdenv.isLinux ./cryptopp.patch; - - postPatch = (if stdenv.isLinux then '' - sed -i -e '/HAVE_X11_EXTENSIONS_XRANDR_H/c \ - set(HAVE_X11_EXTENSIONS_XRANDR_H true)' CMakeLists.txt - '' else '' - ${unzip}/bin/unzip -d ext/cryptopp562 ext/cryptopp562.zip - '') + '' + postPatch = '' ${unzip}/bin/unzip -d ext/gmock-1.6.0 ext/gmock-1.6.0.zip ${unzip}/bin/unzip -d ext/gtest-1.6.0 ext/gtest-1.6.0.zip ''; - buildInputs = [ cmake x11 libX11 libXi libXtst libXrandr xinput curl ] - ++ optional stdenv.isLinux cryptopp; - - # At this moment make install doesn't work for synergy - # http://synergy-foss.org/spit/issues/details/3317/ + buildInputs = [ + cmake x11 libX11 libXi libXtst libXrandr xinput curl openssl + ]; installPhase = '' mkdir -p $out/bin