anchor.diff:            fi
             ln -sfn ${configFile} ${cfg.dataDir}/postgresql.conf
   
  -          exec ${cfg.package}/bin/postgres -D ${cfg.dataDir} ${optionalString cfg.enableTCPIP "-i"}
  +          exec ${postgresql}/bin/postgres -D ${cfg.dataDir} ${optionalString cfg.enableTCPIP "-i"}
           '';
   
           serviceConfig.KeepAlive = true;
  
positive.code: 
  let
    cfg = config.services.postgresql;
  
    configFile = pkgs.writeText "postgresql.conf"
      ''
  
negative.code:         '';
        };
  
        extraPlugins = mkOption {
          type = types.listOf types.path;
          default = [];
          example = literalExample "[ (pkgs.postgis.override { postgresql = pkgs.postgresql94; }) ]";
          description = ''
            When this list contains elements a new store path is created.
            PostgreSQL and the elements are symlinked into it. Then pg_config,
            postgres and pg_ctl are copied to make them use the new
            $out/lib directory as pkglibdir. This makes it possible to use postgis
            without patching the .sql files which reference $libdir/postgis-1.5.
          '';
        };
  
        extraConfig = mkOption {
          type = types.lines;
          default = "";
  