Unverified Commit 13499c42 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

postgresql18Packages: mark as broken without available source (#423189)

parents d2fa3628 a160bd4b
Loading
Loading
Loading
Loading
+29 −24
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@
}:

let
  source =
    {
  sources = {
    # For v18, see https://github.com/ossc-db/pg_hint_plan/issues/224
    "17" = {
      version = "1.7.0";
      hash = "sha256-MNQMePDmGxC8OFIJuVJrhfgU566vkng00+tjeGpGKvs=";
@@ -28,9 +28,13 @@ let
      version = "1.3.9";
      hash = "sha256-KGcHDwk8CgNHPZARfLBfS8r7TRCP9LPjT+m4fNSnnW0=";
    };
    }
    .${lib.versions.major postgresql.version}
    or (throw "Source for pg_hint_plan is not available for ${postgresql.version}");
  };

  source =
    sources.${lib.versions.major postgresql.version} or {
      version = "";
      hash = throw "Source for pg_hint_plan is not available for ${postgresql.version}";
    };
in
postgresqlBuildExtension {
  pname = "pg_hint_plan";
@@ -53,6 +57,7 @@ postgresqlBuildExtension {
  enableUpdateScript = false;

  meta = {
    broken = !builtins.elem (lib.versions.major postgresql.version) (builtins.attrNames sources);
    description = "Extension to tweak PostgreSQL execution plans using so-called 'hints' in SQL comments";
    homepage = "https://github.com/ossc-db/pg_hint_plan";
    maintainers = with lib.maintainers; [ _1000101 ];
+39 −28
Original line number Diff line number Diff line
@@ -5,7 +5,8 @@
  postgresqlBuildExtension,
}:

with {
let
  sources = {
    "13" = {
      version = "1.4";
      hash = "sha256-1cyvVEC9MQGMr7Tg6EUbsVBrMc8ahdFS3+CmDkmAq4Y=";
@@ -26,25 +27,35 @@ with {
      version = "1.5";
      hash = "sha256-RRSpkWLFuif+6RCncnsb1NnjKnIIRY9KgebKkjCN5cs=";
    };
}
."${lib.versions.major postgresql.version}"
  or (throw "pg_safeupdate: version specification for pg ${postgresql.version} missing.");
    "18" = {
      version = "1.5";
      hash = "sha256-RRSpkWLFuif+6RCncnsb1NnjKnIIRY9KgebKkjCN5cs=";
    };
  };

  source =
    sources."${lib.versions.major postgresql.version}" or {
      version = "";
      hash = throw "pg_safeupdate: version specification for pg ${postgresql.version} missing.";
    };
in

postgresqlBuildExtension rec {
postgresqlBuildExtension {
  pname = "pg-safeupdate";
  inherit version;
  inherit (source) version;

  src = fetchFromGitHub {
    owner = "eradman";
    repo = "pg-safeupdate";
    tag = version;
    inherit hash;
    tag = source.version;
    inherit (source) hash;
  };

  meta = {
    broken = !builtins.elem (lib.versions.major postgresql.version) (builtins.attrNames sources);
    description = "Simple extension to PostgreSQL that requires criteria for UPDATE and DELETE";
    homepage = "https://github.com/eradman/pg-safeupdate";
    changelog = "https://github.com/eradman/pg-safeupdate/raw/${src.rev}/NEWS";
    changelog = "https://github.com/eradman/pg-safeupdate/raw/${source.version}/NEWS";
    platforms = postgresql.meta.platforms;
    maintainers = with lib.maintainers; [ wolfgangwalther ];
    license = lib.licenses.postgresql;
+30 −25
Original line number Diff line number Diff line
@@ -8,31 +8,35 @@
}:

let
  source =
    {
  sources = {
    # v18: No upstream ticket, yet (2025-07-07)
    "17" = {
        version = "17.0";
        hash = "sha256-3ksq09wiudQPuBQI3dhEQi8IkXKLVIsPFgBnwLiicro=";
      version = "17.1";
      hash = "sha256-9St/ESPiFq2NiPKqbwHLwkIyATKUkOGxFcUrWgT+Iqo=";
    };
    "16" = {
        version = "16.0";
        hash = "sha256-8+tGOl1U5y9Zgu+9O5UDDE4bec4B0JC/BQ6GLhHzQzc=";
      version = "16.1";
      hash = "sha256-fzoAcXEKmA+xD4HtcHZgcduh1XmSgL8ZS4R72og7RGQ=";
    };
    "15" = {
        version = "1.7.0";
        hash = "sha256-8pShPr4HJaJQPjW1iPJIpj3CutTx8Tgr+rOqoXtgCcw=";
      version = "1.7.1";
      hash = "sha256-emwoTowT7WKFX0RQDqJXjIblrzqaUIUkzqSqBCHVKQ8=";
    };
    "14" = {
        version = "1.6.2";
        hash = "sha256-Bl7Jk2B0deZUDiI391vk4nilwuVGHd1wuaQRSCoA3Mk=";
      version = "1.6.3";
      hash = "sha256-KgLidJHjUK9BTp6ffmGUj1chcwIe6IzlcadRpGCfNdM=";
    };
    "13" = {
        version = "1.5.2";
        hash = "sha256-fyf2Ym0fAAXjc28iFCGDEftPAyDLXmEgi/0DaTJJiIg=";
      version = "1.5.3";
      hash = "sha256-IU4Clec3DkKWT7+kw0VtQNybt94i7M2rSSgJG/XdcRs=";
    };
  };

  source =
    sources.${lib.versions.major postgresql.version} or {
      version = "";
      hash = throw "Source for pgaudit is not available for ${postgresql.version}";
    };
    }
    .${lib.versions.major postgresql.version}
    or (throw "Source for pgaudit is not available for ${postgresql.version}");
in
postgresqlBuildExtension {
  pname = "pgaudit";
@@ -42,7 +46,7 @@ postgresqlBuildExtension {
    owner = "pgaudit";
    repo = "pgaudit";
    tag = source.version;
    hash = source.hash;
    inherit (source) hash;
  };

  buildInputs = [
@@ -55,6 +59,7 @@ postgresqlBuildExtension {
  enableUpdateScript = false;

  meta = {
    broken = !builtins.elem (lib.versions.major postgresql.version) (builtins.attrNames sources);
    description = "Open Source PostgreSQL Audit Logging";
    homepage = "https://github.com/pgaudit/pgaudit";
    changelog = "https://github.com/pgaudit/pgaudit/releases/tag/${source.version}";