Files
nixpkgs/pkgs/servers/sql/postgresql/ext/timescaledb_toolkit.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.4 KiB
Nix

{
buildPgrxExtension,
cargo-pgrx_0_12_6,
fetchFromGitHub,
lib,
nix-update-script,
postgresql,
}:
buildPgrxExtension (finalAttrs: {
inherit postgresql;
cargo-pgrx = cargo-pgrx_0_12_6;
pname = "timescaledb_toolkit";
version = "1.21.0";
src = fetchFromGitHub {
owner = "timescale";
repo = "timescaledb-toolkit";
tag = finalAttrs.version;
hash = "sha256-gGGSNvvJprqLkVwPr7cfmGY1qEUTXMdqdvwPYIzXaTA=";
};
cargoHash = "sha256-kyUpfNEXJ732VO6JDxU+dIoL57uWzG4Ff03/GnvsxLE=";
buildAndTestSubdir = "extension";
postInstall = ''
cargo run --manifest-path ./tools/post-install/Cargo.toml -- --dir "$out"
'';
passthru = {
updateScript = nix-update-script { };
tests = postgresql.pkgs.timescaledb.tests;
};
# tests take really long
doCheck = false;
meta = {
description = "Provide additional tools to ease all things analytic when using TimescaleDB";
homepage = "https://github.com/timescale/timescaledb-toolkit";
maintainers = with lib.maintainers; [ typetetris ];
platforms = postgresql.meta.platforms;
license = lib.licenses.tsl;
broken =
lib.versionOlder postgresql.version "15"
||
# Check after next package update.
lib.warnIf (finalAttrs.version != "1.21.0")
"Is postgresql18Packages.timescaledb_toolkit still broken?"
(lib.versionAtLeast postgresql.version "18");
};
})