8000 feat: make pg_regress available in /bin outputs · hscmgroup/postgres@059ac97 · GitHub
[go: up one dir, main page]

Skip to content

Commit 059ac97

Browse files
samrosedarora
authored andcommitted
feat: make pg_regress available in /bin outputs
1 parent 5e9dc06 commit 059ac97

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

flake.nix

Lines changed: 2 additions & 0 deletions
10000
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
};
6262

6363
sfcgal = pkgs.callPackage ./nix/ext/sfcgal/sfcgal.nix { };
64+
pg_regress = pkgs.callPackage ./nix/ext/pg_regress.nix { };
6465

6566
# Our list of PostgreSQL extensions which come from upstream Nixpkgs.
6667
# These are maintained upstream and can easily be used here just by
@@ -269,6 +270,7 @@
269270
#psql_16 = makePostgres "16";
270271
#psql_orioledb_16 = makeOrioleDbPostgres "16_23" postgresql_orioledb_16;
271272
sfcgal = sfcgal;
273+
pg_regress = pg_regress;
272274
pg_prove = pkgs.perlPackages.TAPParserSourceHandlerpgTAP;
273275
# Start a version of the server.
274276
start-server =

nix/ext/pg_regress.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{ lib
2+
, stdenv
3+
, postgresql
4+
}:
5+
6+
stdenv.mkDerivation {
7+
pname = "pg_regress";
8+
version = postgresql.version;
9+
10+
phases = [ "installPhase" ];
11+
12+
installPhase = ''
13+
mkdir -p $out/bin
14+
cp ${postgresql}/lib/pgxs/src/test/regress/pg_regress $out/bin/
15+
'';
16+
17+
meta = with lib; {
18+
description = "Regression testing tool for PostgreSQL";
19+
homepage = "https://www.postgresql.org/";
20+
maintainers = with maintainers; [ samrose ];
21+
platforms = postgresql.meta.platforms;
22+
license = licenses.postgresql;
23+
};
24+
}

0 commit comments

Comments
 (0)
0