-
-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TimescaleDB-0.9.1 fails on NixOS 17.09 with PostgreSQL10 #38469
Comments
untested fix: nixpkgs.config.packageOverrides = with pkgs; {
- timescaledb = callPackage <nixpkgs/timescaledb.nix>;
+ timescaledb = callPackage <nixpkgs/timescaledb.nix> {};
};
|
|
again untested: diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index 0dcbfe2e47a..884a9a64395 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -16,7 +16,7 @@ let
postBuild =
''
mkdir -p $out/bin
- rm $out/bin/{pg_config,postgres,pg_ctl}
+ rm -f $out/bin/{pg_config,postgres,pg_ctl}
cp --target-directory=$out/bin ${pg}/bin/{postgres,pg_config,pg_ctl}
wrapProgram $out/bin/postgres --set NIX_PGLIBDIR $out/lib
''; |
still the same
diff -r e996faf62eaa fleet/nixpkgs/default.nix
--- a/fleet/nixpkgs/default.nix Thu Apr 05 11:59:04 2018 +0000
+++ b/fleet/nixpkgs/default.nix Thu Apr 05 16:05:34 2018 +0000
@@ -26,6 +26,9 @@
url = "https://github.com/NixOS/nixpkgs/commit/5eed14303630499386c391da8fcb8de887ff2200.patch";
sha256 = "0frsv3kdlmwgzh3pdayjislqc61jcvycw4hfsckvp8a6njk7q6kd";
}
+ { meta.description = "TimescaleDB";
+ src = ./patch-timescaledb;
+ }
]; |
what is fleet? |
|
Hack:
then change - timescaledb = callPackage <fleet/nixpkgs/timescaledb-0.10.nix> { };
+ timescaledb = callPackage <fleet/nixpkgs/timescaledb-0.10.nix> { postgresql = pkgs.postgresql100; }; and it works |
I didn't see this (I also enabled several other extensions so it masked it). I might take a look since I updated Timescale recently... |
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>
Just as a note, this (and many other issues) are fully solved by #38698. |
Issue description
I can add, but cannot enable TimescaleDB from branch master to NixOS 17.09
Steps to reproduce
nixpkgs/pkgs/servers/sql/postgresql/timescaledb/default.nix
to nixpkgs folderconfig.nix
nixops
and it is works.error: cannot coerce a function to a string, at /nix/store/ic6pn6y6wv8b94xs31j2spkqzxi7gaxk-nixpkgs-patched/lib/types.nix:177:42
Technical details
The text was updated successfully, but these errors were encountered: