From 8f21a16861fdd1593f16269b88362eefa3d86592 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sat, 14 Jul 2018 12:48:15 -0500 Subject: [PATCH] timescaledb: create $out/bin in order to work around a stupid bug See #22653 or #38469. 'manveru' reported this on IRC again, but unfortunately a real fix requires a bit more work. In the mean time, this plugs the leak with a bit of duct tape. 'timescale' is an often desired extension and, in the mean time, this workaround means you also do not have to install something like postgis (with a large dependency set) into your closure to get things to work. Ideally in the mean time, *all* postgresql extensions should have $out/bin created for them... Doing this will require more ongoing work, or a proper fix to the buildEnv nonsense going on. Signed-off-by: Austin Seipp --- pkgs/servers/sql/postgresql/timescaledb/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/servers/sql/postgresql/timescaledb/default.nix b/pkgs/servers/sql/postgresql/timescaledb/default.nix index ce298cb2745..7ba8d311ad4 100644 --- a/pkgs/servers/sql/postgresql/timescaledb/default.nix +++ b/pkgs/servers/sql/postgresql/timescaledb/default.nix @@ -34,6 +34,13 @@ stdenv.mkDerivation rec { done ''; + postInstall = '' + # work around an annoying bug, by creating $out/bin, so buildEnv doesn't freak out later + # see https://github.com/NixOS/nixpkgs/issues/22653 + + mkdir -p $out/bin + ''; + meta = with stdenv.lib; { description = "Scales PostgreSQL for time-series data via automatic partitioning across time and space"; homepage = https://www.timescale.com/;