![Wolfgang Walther](/assets/img/avatar_default.png)
Those extensions don't support building with PostgreSQL 17, yet. To make sure they will show up as build failures after the next package upgrade, they all have version checks for their own package version included.
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPgrxExtension
|
|
, postgresql
|
|
, nixosTests
|
|
, cargo-pgrx_0_10_2
|
|
, nix-update-script
|
|
}:
|
|
|
|
(buildPgrxExtension.override { cargo-pgrx = cargo-pgrx_0_10_2; }) rec {
|
|
inherit postgresql;
|
|
|
|
pname = "timescaledb_toolkit";
|
|
version = "1.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "timescale";
|
|
repo = "timescaledb-toolkit";
|
|
rev = version;
|
|
hash = "sha256-Lm/LFBkG91GeWlJL9RBqP8W0tlhBEeGQ6kXUzzv4xRE=";
|
|
};
|
|
|
|
cargoHash = "sha256-LME8oftHmmiN8GU3eTBTSB6m0CE+KtDFRssL1g2Cjm8=";
|
|
buildAndTestSubdir = "extension";
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests = {
|
|
timescaledb_toolkit = nixosTests.timescaledb;
|
|
};
|
|
};
|
|
|
|
# tests take really long
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Provide additional tools to ease all things analytic when using TimescaleDB";
|
|
homepage = "https://github.com/timescale/timescaledb-toolkit";
|
|
maintainers = with maintainers; [ typetetris ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = licenses.tsl;
|
|
# PostgreSQL 17 support issue upstream: https://github.com/timescale/timescaledb-toolkit/issues/813
|
|
# Check after next package update.
|
|
broken = versionAtLeast postgresql.version "17" && version == "1.18.0";
|
|
};
|
|
}
|