nixpkgs/pkgs/applications/misc/synergy/default.nix

44 lines
1.0 KiB
Nix
Raw Normal View History

2014-11-23 04:25:15 +00:00
{ stdenv, fetchFromGitHub, cmake, x11, libX11, libXi, libXtst, libXrandr
, xinput, curl, openssl, unzip }:
with stdenv.lib;
2012-10-15 13:26:44 +01:00
stdenv.mkDerivation rec {
2014-11-23 04:25:15 +00:00
name = "synergy-${version}";
version = "1.7.4";
2014-11-23 04:25:15 +00:00
src = fetchFromGitHub {
owner = "synergy";
repo = "synergy";
rev = "v${version}-stable";
sha256 = "0pxj0qpnsaffpaxik8vc5rjfinmx8ab3b2lssrxkfbs7isskvs33";
2012-10-15 13:26:44 +01:00
};
postPatch = ''
2014-02-24 14:19:23 +00: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
'';
buildInputs = [
cmake x11 libX11 libXi libXtst libXrandr xinput curl openssl
];
2012-10-15 13:26:44 +01:00
installPhase = ''
mkdir -p $out/bin
2012-10-15 13:26:44 +01:00
cp ../bin/synergyc $out/bin
2012-10-15 19:00:20 +01:00
cp ../bin/synergys $out/bin
cp ../bin/synergyd $out/bin
2012-10-15 13:26:44 +01:00
'';
doCheck = true;
checkPhase = "../bin/unittests";
meta = {
description = "Tool to share the mouse keyboard and the clipboard between computers";
2012-10-15 13:26:44 +01:00
homepage = http://synergy-foss.org;
license = licenses.gpl2;
maintainers = [ maintainers.aszlig ];
platforms = platforms.all;
};
}