nixpkgs/pkgs/servers/sql/postgresql/ext/timescaledb_toolkit.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

2022-10-30 19:37:20 +00:00
{ lib
, fetchFromGitHub
, buildPgxExtension
, postgresql
, nixosTests
, cargo-pgx_0_7_1
, nix-update-script
2022-10-30 19:37:20 +00:00
}:
(buildPgxExtension.override {cargo-pgx = cargo-pgx_0_7_1;})rec {
2022-10-30 19:37:20 +00:00
inherit postgresql;
pname = "timescaledb_toolkit";
version = "1.16.0";
2022-10-30 19:37:20 +00:00
src = fetchFromGitHub {
owner = "timescale";
repo = "timescaledb-toolkit";
rev = version;
sha256 = "sha256-aivGURTsm0dGaFq75qR3wIkXwsbvBiDEg+qLMcqKMj8=";
2022-10-30 19:37:20 +00:00
};
cargoSha256 = "sha256-AO5nSgQYvTmohXbzjWvDylnBgS2WpKP6wFOnkUx7ksI=";
2022-10-30 19:37:20 +00:00
buildAndTestSubdir = "extension";
passthru = {
updateScript = nix-update-script { };
tests = {
timescaledb_toolkit = nixosTests.timescaledb;
};
};
2022-10-30 19:37:20 +00:00
# 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.asl20;
# as it needs to be used with timescaledb, simply use the condition from there
broken = versionOlder postgresql.version "12";
};
}