postgresqlPackages.pgtap: 1.3.1 -> 1.3.2

Diff: https://github.com/theory/pgtap/compare/v1.3.1...v1.3.2
This commit is contained in:
Mario Rodas 2024-02-04 16:20:00 -05:00
parent 9f2b35036d
commit 872bf9222a

View File

@ -8,31 +8,28 @@
, which
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "pgtap";
version = "1.3.1";
version = "1.3.2";
src = fetchFromGitHub {
owner = "theory";
repo = "pgtap";
rev = "v${version}";
sha256 = "sha256-HOgCb1CCfsfbMbMMWuzFJ4B8CfVm9b0sI2zBY3/kqyI=";
rev = "v${finalAttrs.version}";
sha256 = "sha256-jPfYp94mZenKctCW+3tyyvdgVKW6TDsG1/dbBlHK3vE=";
};
nativeBuildInputs = [ postgresql perl perlPackages.TAPParserSourceHandlerpgTAP which ];
installPhase = ''
install -D src/pgtap.so -t $out/lib
install -D {sql/pgtap--${version}.sql,pgtap.control} -t $out/share/postgresql/extension
install -D {sql/pgtap--${finalAttrs.version}.sql,pgtap.control} -t $out/share/postgresql/extension
'';
passthru.tests.extension = stdenv.mkDerivation {
name = "pgtap-test";
dontUnpack = true;
doCheck = true;
buildInputs = [ postgresqlTestHook ];
nativeCheckInputs = [ (postgresql.withPackages (ps: [ ps.pgtap ])) ];
postgresqlTestUserOptions = "LOGIN SUPERUSER";
nativeCheckInputs = [ postgresqlTestHook (postgresql.withPackages (_: [ finalAttrs.finalPackage ])) ];
passAsFile = [ "sql" ];
sql = ''
CREATE EXTENSION pgtap;
@ -65,4 +62,4 @@ stdenv.mkDerivation rec {
inherit (postgresql.meta) platforms;
license = licenses.mit;
};
}
})