anchor.diff:      "-DICINGA2_USER=icinga2"
       "-DICINGA2_GROUP=icinga2"
       "-DICINGA2_GIT_VERSION_INFO=OFF"
  -    "-DICINGA2_WITH_TESTS=OFF"
       "-DUSE_SYSTEMD=ON"
     ];
  +
  +  outputs = [ "out" "doc" ];
   
     buildInputs = [ boost openssl systemd ]
       ++ lib.optional withPostgresql postgresql;
   
     nativeBuildInputs = [ cmake flex bison patchelf ];
  +
  +  doCheck = true;
  +  checkInputs = [ tzdata ]; # legacytimeperiod/dst needs this
   
     postFixup = ''
       rm -r $out/etc/logrotate.d $out/etc/sysconfig $out/lib/icinga2/prepare-dirs
  
positive.code:     # Fix hardcoded paths
      sed -i 's:/usr/bin/::g' $out/etc/icinga2/scripts/*
  
      # Cleanup sbin
      sed -i 's/sbin/bin/g' $out/lib/icinga2/safe-reload
      rm $out/sbin
  
      ${lib.optionalString withMysql ''
  
negative.code:     ./etc-icinga2.patch # Makes /etc/icinga2 relative to / instead of the store path
      ./no-systemd-service.patch # Prevent systemd service from being written to /usr
      ./no-var-directories.patch # Prevent /var directories from being created
    ];
  
    cmakeFlags = let
  