anchor.diff:  let
   
     cfg = config.services.openldap;
  -  openldap = pkgs.openldap;
  +  openldap = cfg.package;
   
     dataFile = pkgs.writeText "ldap-contents.ldif" cfg.declarativeContents;
     configFile = pkgs.writeText "slapd.conf" ((optionalString cfg.defaultSchemas ''
  -    include ${pkgs.openldap.out}/etc/schema/core.schema
  -    include ${pkgs.openldap.out}/etc/schema/cosine.schema
  -    include ${pkgs.openldap.out}/etc/schema/inetorgperson.schema
  -    include ${pkgs.openldap.out}/etc/schema/nis.schema
  +    include ${openldap.out}/etc/schema/core.schema
  +    include ${openldap.out}/etc/schema/cosine.schema
  +    include ${openldap.out}/etc/schema/inetorgperson.schema
  +    include ${openldap.out}/etc/schema/nis.schema
     '') + ''
       ${cfg.extraConfig}
       database ${cfg.database}
  
positive.code:         ";
        };
  
        user = mkOption {
          type = types.str;
          default = "openldap";
  
negative.code:         ";
          example = literalExample ''
              '''
              include ${openldap.out}/etc/schema/core.schema
              include ${openldap.out}/etc/schema/cosine.schema
              include ${openldap.out}/etc/schema/inetorgperson.schema
              include ${openldap.out}/etc/schema/nis.schema
  
              database bdb
              suffix dc=example,dc=org
  