2014-11-23 07:25:15 +03:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, x11, libX11, libXi, libXtst, libXrandr
|
2015-08-11 13:38:27 +03:00
|
|
|
, xinput, curl, openssl, unzip }:
|
2013-06-21 15:16:30 +04:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2010-07-28 19:35:01 +04:00
|
|
|
|
2012-10-15 16:26:44 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-23 07:25:15 +03:00
|
|
|
name = "synergy-${version}";
|
2015-08-11 13:38:27 +03:00
|
|
|
version = "1.7.4";
|
2007-11-11 11:16:23 +03:00
|
|
|
|
2014-11-23 07:25:15 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "synergy";
|
|
|
|
repo = "synergy";
|
2015-08-11 13:38:27 +03:00
|
|
|
rev = "v${version}-stable";
|
|
|
|
sha256 = "0pxj0qpnsaffpaxik8vc5rjfinmx8ab3b2lssrxkfbs7isskvs33";
|
2012-10-15 16:26:44 +04:00
|
|
|
};
|
2009-12-21 11:55:31 +03:00
|
|
|
|
2015-08-11 13:38:27 +03:00
|
|
|
postPatch = ''
|
2014-02-24 18:19:23 +04:00
|
|
|
${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
|
2013-06-21 08:25:00 +04:00
|
|
|
'';
|
|
|
|
|
2015-08-11 13:38:27 +03:00
|
|
|
buildInputs = [
|
|
|
|
cmake x11 libX11 libXi libXtst libXrandr xinput curl openssl
|
|
|
|
];
|
2007-11-11 11:16:23 +03:00
|
|
|
|
2012-10-15 16:26:44 +04:00
|
|
|
installPhase = ''
|
2014-06-30 16:56:10 +04:00
|
|
|
mkdir -p $out/bin
|
2012-10-15 16:26:44 +04:00
|
|
|
cp ../bin/synergyc $out/bin
|
2012-10-15 22:00:20 +04:00
|
|
|
cp ../bin/synergys $out/bin
|
|
|
|
cp ../bin/synergyd $out/bin
|
2012-10-15 16:26:44 +04:00
|
|
|
'';
|
2009-04-29 17:04:01 +04:00
|
|
|
|
2013-06-21 09:14:17 +04:00
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "../bin/unittests";
|
|
|
|
|
2013-06-21 08:20:45 +04:00
|
|
|
meta = {
|
2015-08-11 14:13:13 +03:00
|
|
|
description = "Share one mouse and keyboard between multiple computers";
|
|
|
|
homepage = "http://synergy-project.org/";
|
2013-06-21 15:16:30 +04:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.aszlig ];
|
|
|
|
platforms = platforms.all;
|
2007-11-11 11:16:23 +03:00
|
|
|
};
|
|
|
|
}
|