Skip to content

Commit b26114d

Browse files
authored
Merge branch 'develop' into sam/oriole17
2 parents 7dd46e9 + c2c383b commit b26114d

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

flake.nix

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@
104104
# use, but even if they did, keeping our own copies means that we can
105105
# rollout new versions of these critical things easier without having to
106106
# go through the upstream release engineering process.
107-
ourExtensions = let
108-
baseExtensions = [
107+
ourExtensions = [
109108
./nix/ext/rum.nix
110109
./nix/ext/timescaledb.nix
111110
./nix/ext/pgroonga.nix
@@ -124,6 +123,7 @@
124123
./nix/ext/pg_cron.nix
125124
./nix/ext/pgsql-http.nix
126125
./nix/ext/pg_plan_filter.nix
126+
./nix/ext/pg_net.nix
127127
./nix/ext/pg_hashids.nix
128128
./nix/ext/pgsodium.nix
129129
./nix/ext/pg_graphql.nix
@@ -137,13 +137,7 @@
137137
./nix/ext/supautils.nix
138138
./nix/ext/plv8.nix
139139
];
140-
141-
# Add pg_net only if NOT on macOS aarch64
142-
pgNetExtension = if (system == "aarch64-darwin")
143-
then []
144-
else [ ./nix/ext/pg_net.nix ];
145140

146-
in baseExtensions ++ pgNetExtension;
147141
#Where we import and build the orioledb extension, we add on our custom extensions
148142
# plus the orioledb option
149143
#we're not using timescaledb in the orioledb version of supabase extensions
@@ -445,8 +439,7 @@
445439
--subst-var-by 'LOCALES' '${localeArchive}' \
446440
--subst-var-by 'EXTENSION_CUSTOM_SCRIPTS_DIR' "$out/extension-custom-scripts" \
447441
--subst-var-by 'MECAB_LIB' '${basePackages.psql_15.exts.pgroonga}/lib/groonga/plugins/tokenizers/tokenizer_mecab.so' \
448-
--subst-var-by 'GROONGA_DIR' '${supabase-groonga}' \
449-
--subst-var-by 'CURRENT_SYSTEM' '${system}'
442+
--subst-var-by 'GROONGA_DIR' '${supabase-groonga}'
450443
451444
chmod +x $out/bin/start-postgres-server
452445
'';

nix/ext/pg_net.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
stdenv.mkDerivation rec {
44
pname = "pg_net";
5-
version = "0.11.0";
5+
version = "0.13.0";
66

77
buildInputs = [ curl postgresql ];
88

99
src = fetchFromGitHub {
1010
owner = "supabase";
1111
repo = pname;
1212
rev = "refs/tags/v${version}";
13-
hash = "sha256-XN441jXK1q+I/LZRNwvzbSsebXHgZ8iYsslZvcPFlAs=";
13+
hash = "sha256-FRaTZPCJQPYAFmsJg22hYJJ0+gH1tMdDQoCQgiqEnaA=";
1414
};
1515

1616
env.NIX_CFLAGS_COMPILE = "-Wno-error";

nix/tools/run-server.sh.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@ EXTENSION_CUSTOM_SCRIPTS=@EXTENSION_CUSTOM_SCRIPTS_DIR@
3232
GROONGA=@GROONGA_DIR@
3333
DATDIR=$(mktemp -d)
3434
LOCALE_ARCHIVE=@LOCALES@
35-
CURRENT_SYSTEM=@CURRENT_SYSTEM@
3635
export LOCALE_ARCHIVE
3736
export LANG=en_US.UTF-8
3837
export LANGUAGE=en_US.UTF-8
3938
export LC_ALL=en_US.UTF-8
4039
export LANG=en_US.UTF-8
4140
export LC_CTYPE=en_US.UTF-8
42-
echo "Current system is $CURRENT_SYSTEM"
4341
mkdir -p "$DATDIR"
4442
echo "NOTE: using port $PORTNO for server"
4543
echo "NOTE: using temporary directory $DATDIR for data, which will not be removed"

0 commit comments

Comments
 (0)