From 993b24e1a106f8d40bde29884df9323797641913 Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Wed, 20 Nov 2024 06:43:59 +1100 Subject: [PATCH] postgresqlPackages.timescaledb: nixfmt --- .../sql/postgresql/ext/timescaledb.nix | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/timescaledb.nix b/pkgs/servers/sql/postgresql/ext/timescaledb.nix index 0a16f08cbb66..c539ff19ba94 100644 --- a/pkgs/servers/sql/postgresql/ext/timescaledb.nix +++ b/pkgs/servers/sql/postgresql/ext/timescaledb.nix @@ -1,11 +1,25 @@ -{ lib, stdenv, fetchFromGitHub, cmake, postgresql, openssl, libkrb5, nixosTests, enableUnfree ? true, buildPostgresqlExtension }: +{ + buildPostgresqlExtension, + cmake, + enableUnfree ? true, + fetchFromGitHub, + lib, + libkrb5, + nixosTests, + openssl, + postgresql, + stdenv, +}: buildPostgresqlExtension rec { pname = "timescaledb${lib.optionalString (!enableUnfree) "-apache"}"; version = "2.17.2"; nativeBuildInputs = [ cmake ]; - buildInputs = [ openssl libkrb5 ]; + buildInputs = [ + openssl + libkrb5 + ]; src = fetchFromGitHub { owner = "timescale"; @@ -14,7 +28,12 @@ buildPostgresqlExtension rec { hash = "sha256-gPsAebMUBuAwP6Hoi9/vrc2IFsmTbL0wQH1g6/2k2d4="; }; - 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" ];