{
  "patterns": ["\\bpostgresql\\b", "\\blibpq-dev\\b", "\\bpostgresql-devel\\b"],
  "dependencies": [
    {
      "packages": ["libpq-dev"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "ubuntu"
        },
        {
          "os": "linux",
          "distribution": "debian"
        }
      ]
    },
    {
      "packages": ["postgresql-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["6", "7"]
        },
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["6", "7"]
        }
      ]
    },
    {
      "packages": ["postgresql-server-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "centos",
          "versions": ["8"]
        },
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["8"]
        },
        {
          "os": "linux",
          "distribution": "fedora"
        }
      ]
    },
    {
      "packages": ["postgresql-server-devel"],
      "pre_install": [
        { "command": "dnf install -y dnf-plugins-core" },
        { "command": "dnf config-manager --set-enabled crb" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "rockylinux"
        }
      ]
    },
    {
      "packages": ["postgresql-server-devel"],
      "pre_install": [
        { "command": "subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms" }
      ],
      "constraints": [
        {
          "os": "linux",
          "distribution": "redhat",
          "versions": ["9"]
        }
      ]
    },
    {
      "packages": ["postgresql-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "opensuse"
        }
      ]
    },
    {
      "packages": ["postgresql10-devel"],
      "constraints": [
        {
          "os": "linux",
          "distribution": "sle"
        }
      ]
    },
    {
      "packages": [
        "mingw-w64-x86_64-libpq",
        "mingw-w64-i686-libpq"
      ],
      "constraints": [
        {
          "os": "windows"
        }
      ]
    }
  ]
}
