Change:
++ lib.optionals lz4Enabled [ lz4 ] ++ lib.optionals zstdEnabled [ zstd ] ++ lib.optionals enableSystemd [ systemd ] <ins> ++ lib.optionals pythonSupport [ python3 ] </ins> ++ lib.optionals gssSupport [ libkrb5 ] ++ lib.optionals stdenv'.isLinux [ linux-pam ] ++ lib.optionals (!stdenv'.isDarwin) [ libossp_uuid ];

Discussion:
add plpython to nix store The language named plpythonu implements PL/Python based on the default Python language variant, which is currently Python 2. (This default is independent of what any local Python installations might consider to be their “default”, for example, what /usr/bin/python might be.) The default will probably be changed to Python 3 in a distant future release of PostgreSQL, depending on the progress of the migration to Python 3 in the Python community. homepage URL: source URL: license: platforms: unix, linux, darwin, macOS

Describe the bug Postgres already exists as a nix package () bundled with some packages (). Postgres itself has built-in support for Python, but it needs to be enabled during the build process () via the configure flag. The current implementation of postgres in nix does not enable python support, and it also doesn't seem to perform any detection whether python support should be offered. There is already some form of conditional feature support (for example via the attribute. It could be possible to add a attribute that enables python. My knowledge of nix is clearly lacking in this regard, but I hope the idea makes sense. To Reproduce Steps to reproduce the behavior: via then use to initialize and start a server instance psql to enter the postgres instance 'create extension plpython3u;' ! Expected behavior The ability to enable the plpython3u extension. Screenshots This is a screenshot of the current configureFlags of postgres (). Somehow it should be possible to get into this list. ! Additional context I am trying to get a nix-shell working that has a postgresql12 with python support. I am not trying to get a working configuration in NixOS. It should be possible to use to explicitly add support for plpython. I am still exploring this possibility. Others have done something similar for other postgres extensions (). There is a nix pill that describes how to override packages here () and here (). However, it looks like this can get complicated (). More examples of overriding can be found here: Another approach for overriding packages is via overlays (). By including support for python in the derivation itself, it may be easier for new users to get started. attempted to add support for multicorn (), which is implemented using python (), but this doesn't use plpython3u, and is thus not directly related to this issue. Just mentioning it here for others that are trying to figure out how to get python in their database backend. The author of the following article shows how to configure postgres using : I can imagine a solution that may look like this: . Another possibility, is to have something like (see etc.). Notify maintainers Can you recommend a way to get plpython3u enabled in the nix build of postgres? Metadata Please run and paste the result. Maintainer information:
The following extract seems to work so far:
I marked this as stale due to inactivity. &rarr;
I'm interested in using this but not sure when I'd be able to pick it up.