postgresqlPackages.timescaledb: modernize

This commit is contained in:
Wolfgang Walther
2025-03-18 18:17:18 +01:00
parent a117e894b3
commit 07fff4ea84
+13 -12
View File
@@ -1,7 +1,6 @@
{
buildPostgresqlExtension,
cmake,
enableUnfree ? true,
fetchFromGitHub,
lib,
libkrb5,
@@ -9,25 +8,27 @@
openssl,
postgresql,
stdenv,
enableUnfree ? true,
}:
buildPostgresqlExtension rec {
pname = "timescaledb${lib.optionalString (!enableUnfree) "-apache"}";
version = "2.18.2";
src = fetchFromGitHub {
owner = "timescale";
repo = "timescaledb";
tag = version;
hash = "sha256-/PKk8/cS6jqL+mhSqFU6gybqDx3ld77RLF/uB+1XJCQ=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
openssl
libkrb5
];
src = fetchFromGitHub {
owner = "timescale";
repo = "timescaledb";
rev = version;
hash = "sha256-/PKk8/cS6jqL+mhSqFU6gybqDx3ld77RLF/uB+1XJCQ=";
};
cmakeFlags =
[
"-DSEND_TELEMETRY_DEFAULT=OFF"
@@ -53,13 +54,13 @@ buildPostgresqlExtension rec {
passthru.tests = nixosTests.postgresql.timescaledb.passthru.override postgresql;
meta = with lib; {
meta = {
description = "Scales PostgreSQL for time-series data via automatic partitioning across time and space";
homepage = "https://www.timescale.com/";
changelog = "https://github.com/timescale/timescaledb/blob/${version}/CHANGELOG.md";
maintainers = [ maintainers.kirillrdy ];
maintainers = with lib.maintainers; [ kirillrdy ];
platforms = postgresql.meta.platforms;
license = with licenses; if enableUnfree then tsl else asl20;
broken = versionOlder postgresql.version "14";
license = with lib.licenses; if enableUnfree then tsl else asl20;
broken = lib.versionOlder postgresql.version "14";
};
}