Skip to content

Commit d483a07

Browse files
committed
fix: make sure src and debug builds available for oriole too
1 parent 870f591 commit d483a07

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

flake.nix

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
};
308308
postgresql_15 = getPostgresqlPackage "15";
309309
postgresql_16 = getPostgresqlPackage "16";
310+
postgresql_oriole-16 = postgresql_orioledb_16;
310311
in
311312
postgresVersions //{
312313
supabase-groonga = supabase-groonga;
@@ -316,9 +317,10 @@
316317
psql_oriole-16 = postgresVersions.psql_oriole-16;
317318
sfcgal = sfcgal;
318319
pg_prove = pkgs.perlPackages.TAPParserSourceHandlerpgTAP;
319-
inherit postgresql_15 postgresql_16;
320+
inherit postgresql_15 postgresql_16 postgresql_oriole-16;
320321
postgresql_15_debug = if pkgs.stdenv.isLinux then postgresql_15.debug else null;
321322
postgresql_16_debug = if pkgs.stdenv.isLinux then postgresql_16.debug else null;
323+
postgresql_oriole-16_debug = if pkgs.stdenv.isLinux then postgresql_orioledb_16.debug else null;
322324
postgresql_15_src = pkgs.stdenv.mkDerivation {
323325
pname = "postgresql-15-src";
324326
version = postgresql_15.version;
@@ -363,6 +365,28 @@
363365
platforms = platforms.all;
364366
};
365367
};
368+
postgresql_oriole-16_src = pkgs.stdenv.mkDerivation {
369+
pname = "postgresql-16-src";
370+
version = postgresql_oriole-16.version;
371+
372+
src = postgresql_16.src;
373+
374+
nativeBuildInputs = [ pkgs.bzip2 ];
375+
376+
phases = [ "unpackPhase" "installPhase" ];
377+
378+
installPhase = ''
379+
mkdir -p $out
380+
cp -r . $out
381+
'';
382+
383+
meta = with pkgs.lib; {
384+
description = "PostgreSQL 15 source files";
385+
homepage = "https://www.postgresql.org/";
386+
license = licenses.postgresql;
387+
platforms = platforms.all;
388+
};
389+
};
366390
mecab_naist_jdic = mecab-naist-jdic;
367391
supabase_groonga = supabase-groonga;
368392
pg_regress = makePgRegress activeVersion;

0 commit comments

Comments
 (0)