anchor.diff:  
           services.redmine.enable = true;
           services.redmine.package = package;
  +        services.redmine.database.type = "mysql2";
           services.redmine.database.socket = "/run/mysqld/mysqld.sock";
           services.redmine.plugins = {
             redmine_env_auth = pkgs.fetchurl {
  
positive.code: 
      testScript = ''
        startAll;
  
        $machine->waitForUnit('redmine.service');
        $machine->waitForOpenPort('3000');
        $machine->succeed("curl --fail http://localhost:3000/");
  
negative.code:   };
  in
  {
    v3-mysql = mysqlTest pkgs.redmine // {
      name = "v3-mysql";
      meta.maintainers = [ maintainers.aanderse ];
    };
  
    v4-mysql = mysqlTest pkgs.redmine_4 // {
      name = "v4-mysql";
      meta.maintainers = [ maintainers.aanderse ];
    };
  
    v4-pgsql = pgsqlTest pkgs.redmine_4 // {
      name = "v4-pgsql";
      meta.maintainers = [ maintainers.aanderse ];
    };
  }
  