anchor.diff:  
   in {
     options.nixsap.apps.pgbackup = {
  +
  +    package = mkOption {
  +      description = "PostgreSQL package providing pg_dump";
  +      type = package;
  +      default = pkgs.postgresql;
  +    };
  +
       user = mkOption {
         description = "User to run as";
         default = "pgbackup";
  
positive.code:     findFirst hasPrefix mapAttrsToList mkIf
      mkOption optionalString removeSuffix ;
    inherit (lib.types)
      bool enum int listOf nullOr path str submodule ;
  
    cfg = config.nixsap.apps.pgbackup;
    privateDir = "/run/pgbackup";
  
negative.code:       # XXX: Use the latest pg_dump:
        pg_dump = pkgs.writeBashScript name ''
          ${optionalString (cfg.pgpass != null) "export PGPASSFILE='${cfg.pgpass}'"}
          exec ${cfg.package}/bin/pg_dump \
            ${concatMapAttrsSep " " mkArg args} \
            "$@"
        '';
  