diff --git a/pkgs/servers/sql/postgresql/ext/timescaledb.nix b/pkgs/servers/sql/postgresql/ext/timescaledb.nix index 8f93c32aed78..db4cf085b1cf 100644 --- a/pkgs/servers/sql/postgresql/ext/timescaledb.nix +++ b/pkgs/servers/sql/postgresql/ext/timescaledb.nix @@ -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"; }; }