Skip to content

Commit

Permalink
postgresqlPackages.timescaledb: nixfmt-rfc-style
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillrdy committed Oct 13, 2024
1 parent d6801f5 commit 2f0c29c
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions pkgs/servers/sql/postgresql/ext/timescaledb.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
{ lib, stdenv, fetchFromGitHub, cmake, postgresql, openssl, libkrb5, nixosTests, enableUnfree ? true }:
{
lib,
stdenv,
fetchFromGitHub,
cmake,
postgresql,
openssl,
libkrb5,
nixosTests,
enableUnfree ? true,
}:

stdenv.mkDerivation rec {
pname = "timescaledb${lib.optionalString (!enableUnfree) "-apache"}";
version = "2.17.0";

nativeBuildInputs = [ cmake ];
buildInputs = [ postgresql openssl libkrb5 ];
buildInputs = [
postgresql
openssl
libkrb5
];

src = fetchFromGitHub {
owner = "timescale";
Expand All @@ -14,7 +28,12 @@ stdenv.mkDerivation rec {
hash = "sha256-6e/PdHpCXn5Dxdip8ICG+vXxezDATQkwHqDqkt7SS48=";
};

cmakeFlags = [ "-DSEND_TELEMETRY_DEFAULT=OFF" "-DREGRESS_CHECKS=OFF" "-DTAP_CHECKS=OFF" ]
cmakeFlags =
[
"-DSEND_TELEMETRY_DEFAULT=OFF"
"-DREGRESS_CHECKS=OFF"
"-DTAP_CHECKS=OFF"
]
++ lib.optionals (!enableUnfree) [ "-DAPACHE_ONLY=ON" ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DLINTER=OFF" ];

Expand All @@ -32,7 +51,9 @@ stdenv.mkDerivation rec {
done
'';

passthru.tests = { inherit (nixosTests) timescaledb; };
passthru.tests = {
inherit (nixosTests) timescaledb;
};

meta = with lib; {
description = "Scales PostgreSQL for time-series data via automatic partitioning across time and space";
Expand Down

0 comments on commit 2f0c29c

Please sign in to comment.