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

44 lines
1.0 KiB
Nix
Raw Normal View History

2014-11-23 07:25:15 +03:00
{ stdenv, fetchFromGitHub, cmake, x11, libX11, libXi, libXtst, libXrandr
, xinput, curl, openssl, unzip }:
with stdenv.lib;
2012-10-15 16:26:44 +04:00
stdenv.mkDerivation rec {
2014-11-23 07:25:15 +03:00
name = "synergy-${version}";
version = "1.7.4";
2014-11-23 07:25:15 +03:00
src = fetchFromGitHub {
owner = "synergy";
repo = "synergy";
rev = "v${version}-stable";
sha256 = "0pxj0qpnsaffpaxik8vc5rjfinmx8ab3b2lssrxkfbs7isskvs33";
2012-10-15 16:26:44 +04: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
'';
buildInputs = [
cmake x11 libX11 libXi libXtst libXrandr xinput curl openssl
];
2012-10-15 16:26:44 +04:00
installPhase = ''
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
'';
doCheck = true;
checkPhase = "../bin/unittests";
meta = {
description = "Share one mouse and keyboard between multiple computers";
homepage = "http://synergy-project.org/";
license = licenses.gpl2;
maintainers = [ maintainers.aszlig ];
platforms = platforms.all;
};
}