Skip to content

Commit f255d5b

Browse files
authored
chore: create an isolated output for postgres, to expose debug symbols (#1200)
* chore: create an isolated output for just postgres, to expose debug symbols * feat: add an optional package for local dev that can be built to give access to the source of the postgresql_15 package we use --------- Co-authored-by: Sam Rose <[email protected]>
1 parent d42ab56 commit f255d5b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

flake.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,30 @@
273273
sfcgal = sfcgal;
274274
pg_regress = pg_regress;
275275
pg_prove = pkgs.perlPackages.TAPParserSourceHandlerpgTAP;
276+
postgresql_15 = pkgs.postgresql_15;
277+
278+
postgresql_15_src = pkgs.stdenv.mkDerivation {
279+
pname = "postgresql-15-src";
280+
version = pkgs.postgresql_15.version;
281+
282+
src = pkgs.postgresql_15.src;
283+
284+
nativeBuildInputs = [ pkgs.bzip2 ];
285+
286+
phases = [ "unpackPhase" "installPhase" ];
287+
288+
installPhase = ''
289+
mkdir -p $out
290+
cp -r . $out
291+
'';
292+
293+
meta = with pkgs.lib; {
294+
description = "PostgreSQL 15 source files";
295+
homepage = "https://www.postgresql.org/";
296+
license = licenses.postgresql;
297+
platforms = platforms.all;
298+
};
299+
};
276300
# Start a version of the server.
277301
start-server =
278302
let

0 commit comments

Comments
 (0)