diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-08-11 12:38:27 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-08-11 13:08:51 +0200 |
commit | f91dacdd07731e06cec80b727b28b749e64f60e8 (patch) | |
tree | 19b5b10b5c7e83b8a91c3ad860048b06099e7b3b /pkgs/applications | |
parent | 43c3664ec606cbc533ed1b7f8aea3204776b08f9 (diff) | |
download | nixlib-f91dacdd07731e06cec80b727b28b749e64f60e8.tar nixlib-f91dacdd07731e06cec80b727b28b749e64f60e8.tar.gz nixlib-f91dacdd07731e06cec80b727b28b749e64f60e8.tar.bz2 nixlib-f91dacdd07731e06cec80b727b28b749e64f60e8.tar.lz nixlib-f91dacdd07731e06cec80b727b28b749e64f60e8.tar.xz nixlib-f91dacdd07731e06cec80b727b28b749e64f60e8.tar.zst nixlib-f91dacdd07731e06cec80b727b28b749e64f60e8.zip |
synergy: Update from version 1.6.3 to 1.7.4.
Quite a lot of upstream changes happened in between, so here are the upstream changes: https://github.com/synergy/synergy/releases/tag/1.7.0 https://github.com/synergy/synergy/releases/tag/v1.7.1-stable https://github.com/synergy/synergy/releases/tag/v1.7.2-stable https://github.com/synergy/synergy/releases/tag/v1.7.3-stable https://github.com/synergy/synergy/releases/tag/v1.7.4-stable The upstream project has stopped using cryptopp (synergy/synergy@80343c4) and now uses OpenSSL instead (see issue synergy/synergy#4313) so we no longer need our patch. Also, the issue for the 'install' target has been closed as obsolete and although they had such a target in the meantime, it has been removed again in synergy/synergy@d1eb7a6, so let's not rely on it anymore and remove the comment on the closed/obsolete issue. Forcing support for XRandR in the CMakeLists.txt file isn't needed anymore, because the issues mentioned in ea4afb7 have been fixed upstream. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Reported-by: devhell <"^"@regexmail.net>
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/synergy/cryptopp.patch | 45 | ||||
-rw-r--r-- | pkgs/applications/misc/synergy/default.nix | 27 |
2 files changed, 8 insertions, 64 deletions
diff --git a/pkgs/applications/misc/synergy/cryptopp.patch b/pkgs/applications/misc/synergy/cryptopp.patch deleted file mode 100644 index 1c296423acd6..000000000000 --- 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 <cryptopp562/gcm.h> --#include <cryptopp562/modes.h> --#include <cryptopp562/aes.h> -+#include <cryptopp/gcm.h> -+#include <cryptopp/modes.h> -+#include <cryptopp/aes.h> -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 <cryptopp562/osrng.h> --#include <cryptopp562/sha.h> -+#include <cryptopp/osrng.h> -+#include <cryptopp/sha.h> diff --git a/pkgs/applications/misc/synergy/default.nix b/pkgs/applications/misc/synergy/default.nix index 0d3337b478f0..1c97223a955e 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 |