anchor.diff:      xorg.libXi
       xorg.libXinerama
       xorg.libXrandr
  +    xorg.libXrender
       xorg.libXtst
  +    xorg.randrproto
  +    xorg.renderproto
       xorg.xproto
       xorg.xextproto
     ];
  +
  +  GIT_COMMIT = rev;
   
     postPatch = ''
       # Don't run or build tests
  
positive.code: 
    buildInputs = [
      curl
      googletest
      openssl_1-0-2
      xorg.fixesproto
      xorg.inputproto
      xorg.kbproto
  
negative.code: , ninja
  
  , curl
  , openssl
  , xorg
  }:
  
  let
    version = "2.0.0";
    rev = "0bd448d5ca320dd5fdb9467a7a4a17ff11cce539";
  in
  stdenv.mkDerivation {
    name = "synergy-${version}";
  
    src = fetchFromGitHub {
      version = 3;
      owner = "symless";
      repo = "synergy-core";
      rev = "v${version}-stable";
      sha256 = "eaa7f6e101dca6d6bc9e0fa8771c7e199a401feeed11779d1fada64c398d7fac";
    };
  
    nativeBuildInputs = [
  