about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2018-07-14 12:48:15 -0500
committerAustin Seipp <aseipp@pobox.com>2018-07-14 12:50:20 -0500
commit8f21a16861fdd1593f16269b88362eefa3d86592 (patch)
tree7196369703455ae8f367fc1caf1562ff13df79c0
parent7d7d27aca6f6e21e9f3efd494eb0d666f81e6955 (diff)
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 <aseipp@pobox.com>
-rw-r--r--pkgs/servers/sql/postgresql/timescaledb/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/servers/sql/postgresql/timescaledb/default.nix b/pkgs/servers/sql/postgresql/timescaledb/default.nix
index ce298cb2745d2..7ba8d311ad493 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/;