Change:
I cannot install the pgTAP 1.3.1 extension Steps to reproduce the behavior: nixpkgs to commit introducing pgTAP 1.3.1 PostgreSQL 15 with the pgTAP extension a PostgreSQL cluster : The extension is not installed and an error is shown: The extension should be installed. pgTAP 1.3.1 was , yet you the updated from 1.3.0 to 1.3.1 on 2023-09-22, 2 days before the release. How is this possible? PR Please run and paste the result. Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:
Could you please confirm whether or not you can install pgTAP 1.3.1 on NixOS?
Please try the services.postgresql.extraPlugins option. It could be ondoing your override.
I do not need to use the NixOS service. I just need the PostgreSQL binaries to set-up a project-specific dev env. By the way, the extension is correctly listed:
I have reported the issue on the upstream project () and I cannot install pgTAP 1.3.1 at all (even on Windows). So if no one can make it work, then the problem is probably in the upstream project and we should revert back to pgTAP 1.3.0. This is why it would be nice if gives a feedback about whether or not he can install pgTAP 1.3.1 on NixOS since he is the one who worked on it, or anyone else attempting to use pgTAP 1.3.1 for that matter.
I see you contributed to this extension as well. Do you have any feedback to provide?
That is a bot, it will not answer
Sorry for the delay. I'm awfully busy with real life matters. I just now had time to open my notifications. Sorry, my bad, I didn't test this extension properly. I'm reverting it I'll take a proper look after holidays.
I suspect your packaging stuff will need to be updated to add installation of the shared library to v1.3.1. Just copy (I assume the extension is ) from the directory to the lib directory in your packaging build destination after building pgTAP. See theory/pgtap for discussion about adding the shared library.

Discussion:
<del> { lib, stdenv, fetchFromGitHub, postgresql, perl, perlPackages, which }: </del> <ins> { lib , stdenv , fetchFromGitHub , perl , perlPackages , postgresql , postgresqlTestHook , which }: </ins> stdenv.mkDerivation rec { pname = "pgtap"; <del> version = "1.3.0"; </del> <ins> version = "1.3.1"; </ins> src = fetchFromGitHub { owner = "theory"; repo = "pgtap"; rev = "v${version}"; <del> sha256 = "sha256-RaafUnrMRbvyf2m2Z+tK6XxVXDGnaOkYkSMxIJLnf6A="; </del> <ins> sha256 = "sha256-HOgCb1CCfsfbMbMMWuzFJ4B8CfVm9b0sI2zBY3/kqyI="; </ins> }; nativeBuildInputs = [ postgresql perl perlPackages.TAPParserSourceHandlerpgTAP which ]; installPhase = '' <ins> install -D src/pgtap.so -t $out/lib </ins> install -D {sql/pgtap--${version}.sql,pgtap.control} -t $out/share/postgresql/extension ''; <ins> passthru.tests.extension = stdenv.mkDerivation { name = "pgtap-test"; dontUnpack = true; doCheck = true; buildInputs = [ postgresqlTestHook ]; nativeCheckInputs = [ (postgresql.withPackages (ps: [ ps.pgtap ])) ]; postgresqlTestUserOptions = "LOGIN SUPERUSER"; passAsFile = [ "sql" ]; sql = '' CREATE EXTENSION pgtap; BEGIN; SELECT plan(1); SELECT pass('Test passed'); SELECT * FROM finish(); ROLLBACK; ''; failureHook = "postgresqlStop"; checkPhase = '' runHook preCheck psql -a -v ON_ERROR_STOP=1 -f $sqlPath runHook postCheck ''; installPhase = "touch $out"; }; </ins> meta = with lib; { description = "A unit testing framework for PostgreSQL"; longDescription = ''