-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Postgis extension doesn't work #15512
Comments
Ping @paraseba |
I was able to reproduce it. Let me see if I can fix it |
I think something like the following could work, but unfortunately I can't test it because my tree is not building (zfs problems) and I don't know how to build a nixos module independently. Any chance you could give it a try @thall ? diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index 80ee32f..aabbfa5 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -11,7 +11,7 @@ let
if cfg.extraPlugins == [] then pg
else pkgs.buildEnv {
name = "postgresql-and-plugins-${(builtins.parseDrvName pg.name).version}";
- paths = [ pg ] ++ cfg.extraPlugins;
+ paths = concatMap ( p: [ p (getLib p) ] ) ( [ pg ] ++ cfg.extraPlugins );
postBuild =
''
mkdir -p $out/bin |
I will give it a try, i havent rebuild nixos based on the git-repo with custom patches before. Im relative new to nixos. |
I don't think it's working. The problem is still pg_config. In the current version |
Im using an docker image with postgres and postgis as an workaround for the moment. |
Fixes NixOS#15512 and NixOS#16032 With the multi output, postgresql cannot find at runtime what is its basedir when looking for libdir and pkglibdir. This commit fixes that.
Issue description
Not able to create postgis extension
Steps to reproduce
Technical details
nixos-version
, Ubuntu/Fedora:lsb_release -a
, ...)16.09pre83703.0373eb8 (Flounder)
nix-env --version
)nix-env (Nix) 1.11.2
nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
)"16.09pre83703.0373eb8"
The text was updated successfully, but these errors were encountered: