synergy: Only pass cryptopp on Linux platforms.

The second failure, and the last one I'm going to try today:

http://hydra.nixos.org/build/5404634

On the bright side there is at least the fact that version 1.4.10 has failed on
Darwin already, so I guess we don't have a lot of Mac users using Synergy.

Latest (failed) build of 1.4.10:

http://hydra.nixos.org/build/5359408

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-06-21 13:46:22 +02:00
parent cfd284443e
commit 467608f614
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, cmake, x11, libX11, libXi, libXtst, libXrandr, xinput
, cryptopp, unzip ? null }:
, cryptopp ? null, unzip ? null }:
assert stdenv.isLinux -> cryptopp != null;
assert !stdenv.isLinux -> unzip != null;
with stdenv.lib;
@ -22,7 +23,8 @@ stdenv.mkDerivation rec {
${unzip}/bin/unzip -d tools/cryptopp562 tools/cryptopp562.zip
'';
buildInputs = [ cmake x11 libX11 libXi libXtst libXrandr xinput cryptopp ];
buildInputs = [ cmake x11 libX11 libXi libXtst libXrandr xinput ]
++ optional stdenv.isLinux cryptopp;
# At this moment make install doesn't work for synergy
# http://synergy-foss.org/spit/issues/details/3317/