This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: overlay with orioledb psql16 and all current supabase extensions oriole extension will be in a future commit * feat: reworking tools and tests * chore: nixpkgs-fmt * chore: deactivate migration test on experimental orioledb for now * feat: build psql, ext and wrappers with oriole patched psql 16 and orioledb extension * chore: cleanup ci files * feat: build, test, cache, docker images for psql 15, 16, oriole patched 16 this commit refactors building up package sets on 2 tracks one for upstream psql 15 and 16, and one for psql 16 patched from oriole/postgresql sources. There is an issue with oriole patched postgresql where timescaledb extension cannot be built against the patched orioledb postgresql sources. That issue will be addressed in a follow up PR
- Loading branch information
Showing
10 changed files
with
176 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,6 @@ sbom.spdx.json | |
sbom.cdx.json | ||
sbom.csv | ||
graph*.png | ||
init.sh | ||
postgres* | ||
build.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{lib, stdenv, fetchFromGitHub, curl, libkrb5, postgresql, python3, openssl}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "orioledb"; | ||
name = pname; | ||
src = fetchFromGitHub { | ||
owner = "orioledb"; | ||
repo = "orioledb"; | ||
rev = "main"; | ||
sha256 = "sha256-QbDp9S8JXO66sfaHZIQ3wFCVRxsAaaNSRgC6hvL3EKY="; | ||
}; | ||
version = "patches16_23"; | ||
buildInputs = [ curl libkrb5 postgresql python3 openssl ]; | ||
buildPhase = "make USE_PGXS=1 ORIOLEDB_PATCHSET_VERSION=23"; | ||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p $out/{lib,share/postgresql/extension} | ||
cp *.so $out/lib | ||
cp *.sql $out/share/postgresql/extension | ||
cp *.control $out/share/postgresql/extension | ||
runHook postInstall | ||
''; | ||
doCheck = true; | ||
meta = with lib; { | ||
description = "orioledb"; | ||
maintainers = with maintainers; [ samrose ]; | ||
platforms = postgresql.meta.platforms; | ||
license = licenses.postgresql; | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
final: prev: { | ||
postgresql_16 = prev.postgresql_16.overrideAttrs (old: { | ||
pname = "postgresql_16"; | ||
version = "16_23"; | ||
src = prev.fetchurl { | ||
url = "https://github.com/orioledb/postgres/archive/refs/tags/patches16_23.tar.gz"; | ||
sha256 = "sha256-xWmcqn3DYyBG0FsBNqPWTFzUidSJZgoPWI6Rt0N9oJ4="; | ||
}; | ||
buildInputs = old.buildInputs ++ [ | ||
prev.bison | ||
prev.docbook5 | ||
prev.docbook_xsl | ||
prev.docbook_xsl_ns | ||
prev.docbook_xml_dtd_45 | ||
prev.flex | ||
prev.libxslt | ||
prev.perl | ||
]; | ||
}); | ||
postgresql_orioledb_16 = final.postgresql_16; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters