![aszlig](/assets/img/avatar_default.png)
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>
44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, cmake, x11, libX11, libXi, libXtst, libXrandr
|
|
, xinput, curl, openssl, unzip }:
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "synergy-${version}";
|
|
version = "1.7.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "synergy";
|
|
repo = "synergy";
|
|
rev = "v${version}-stable";
|
|
sha256 = "0pxj0qpnsaffpaxik8vc5rjfinmx8ab3b2lssrxkfbs7isskvs33";
|
|
};
|
|
|
|
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 openssl
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ../bin/synergyc $out/bin
|
|
cp ../bin/synergys $out/bin
|
|
cp ../bin/synergyd $out/bin
|
|
'';
|
|
|
|
doCheck = true;
|
|
checkPhase = "../bin/unittests";
|
|
|
|
meta = {
|
|
description = "Tool to share the mouse keyboard and the clipboard between computers";
|
|
homepage = http://synergy-foss.org;
|
|
license = licenses.gpl2;
|
|
maintainers = [ maintainers.aszlig ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|