lol

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>

aszlig 467608f6 cfd28444

+4 -2
+4 -2
pkgs/applications/misc/synergy/default.nix
··· 1 1 { stdenv, fetchurl, cmake, x11, libX11, libXi, libXtst, libXrandr, xinput 2 - , cryptopp, unzip ? null }: 2 + , cryptopp ? null, unzip ? null }: 3 3 4 + assert stdenv.isLinux -> cryptopp != null; 4 5 assert !stdenv.isLinux -> unzip != null; 5 6 6 7 with stdenv.lib; ··· 22 23 ${unzip}/bin/unzip -d tools/cryptopp562 tools/cryptopp562.zip 23 24 ''; 24 25 25 - buildInputs = [ cmake x11 libX11 libXi libXtst libXrandr xinput cryptopp ]; 26 + buildInputs = [ cmake x11 libX11 libXi libXtst libXrandr xinput ] 27 + ++ optional stdenv.isLinux cryptopp; 26 28 27 29 # At this moment make install doesn't work for synergy 28 30 # http://synergy-foss.org/spit/issues/details/3317/