anchor.diff:      ''}
     '';
   
  -  vim = stdenv.mkDerivation {
  -    pname = "vim-icinga2";
  -    inherit version src;
  -
  -    dontConfigure = true;
  -    dontBuild = true;
  -
  -    installPhase = ''
  -      mkdir -p $out/share/vim-plugins
  -      cp -r tools/syntax/vim $out/share/vim-plugins/icinga2
  -    '';
  -  };
  +  vim = runCommand "vim-icinga2-${version}" {} ''
  +    mkdir -p $out/share/vim-plugins
  +    cp -r "${src}/tools/syntax/vim" $out/share/vim-plugins/icinga2
  +  '';
   
     meta = {
       description = "Open source monitoring system";
  
positive.code:     "-DMYSQL_INCLUDE_DIR=${mariadb-connector-c.dev}/include/mariadb"
      "-DMYSQL_LIB=${mariadb-connector-c.out}/lib/mariadb/libmysqlclient.a"
      "-DICINGA2_PLUGINDIR=bin"
      "-DICINGA2_UNITY_BUILD=no"
      # Features
      (mkFeatureFlag "MYSQL" withMysql)
      (mkFeatureFlag "PGSQL" withPostgresql)
  
negative.code: { stdenv, runCommand, lib, fetchFromGitHub, fetchpatch, cmake, flex, bison, systemd
  , boost, openssl, patchelf, mariadb-connector-c, postgresql, zlib, tzdata
  # Databases
  , withMysql ? true, withPostgresql ? false
  # Features
  