anchor.diff:      "-UCMAKE_INSTALL_LIBDIR"
       "-DCMAKE_BUILD_TYPE=Release"
       "-DOEM_THEME_DIR=${src}/nextcloudtheme"
  +  ] ++ stdenv.lib.optionals stdenv.isLinux [
  +    "-DINOTIFY_LIBRARY=${inotify-tools}/lib/libinotifytools.so"
  +    "-DINOTIFY_INCLUDE_DIR=${inotify-tools}/include"
     ];
   
     meta = with stdenv.lib; {
  
positive.code: { stdenv, fetchgit, cmake, pkgconfig, qtbase, qtwebkit, qtkeychain, sqlite }:
  
  stdenv.mkDerivation rec {
    name = "nextcloud-client-${version}";
  
negative.code:   };
  
    nativeBuildInputs = [ pkgconfig cmake ];
    buildInputs = [ qtbase qtwebkit qtkeychain sqlite ]
      ++ stdenv.lib.optional stdenv.isLinux inotify-tools;
  
    dontUseCmakeBuildDir = true;
  
  