Skip to content

Commit 274704e

Browse files
steve-chavezdarora
authored andcommitted
fix: nix replica command
1 parent ab4efe6 commit 274704e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

flake.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# The 'oriole_pkgs' variable holds all the upstream packages in nixpkgs, which
2828
# we can use to build our own images; it is the common name to refer to
2929
# a copy of nixpkgs which contains all its packages.
30-
# it also serves as a base for importing the orioldb/postgres overlay to
30+
# it also serves as a base for importing the orioldb/postgres overlay to
3131
#build the orioledb postgres patched version of postgresql16
3232
oriole_pkgs = import nixpkgs {
3333
config = { allowUnfree = true; };
@@ -302,7 +302,7 @@
302302
'';
303303

304304
# Start a version of the client and runs migrations script on server.
305-
start-client-and-migrate =
305+
start-client-and-migrate =
306306
let
307307
migrationsDir = ./migrations/db;
308308
postgresqlSchemaSql = ./nix/tools/postgresql_schema.sql;
@@ -346,7 +346,7 @@
346346
mkdir -p $out/bin
347347
substitute ${./nix/tools/run-replica.sh.in} $out/bin/start-postgres-replica \
348348
--subst-var-by 'PGSQL_SUPERUSER' '${pgsqlSuperuser}' \
349-
--subst-var-by 'PSQL15_BINDIR' '${basePackages.psql_15.bin}'\
349+
--subst-var-by 'PSQL15_BINDIR' '${basePackages.psql_15.bin}'
350350
chmod +x $out/bin/start-postgres-replica
351351
'';
352352
sync-exts-versions = pkgs.runCommand "sync-exts-versions" { } ''
@@ -356,7 +356,7 @@
356356
--subst-var-by 'JQ' '${pkgs.jq}/bin/jq' \
357357
--subst-var-by 'NIX_EDITOR' '${nix-editor.packages.${system}.nix-editor}/bin/nix-editor' \
358358
--subst-var-by 'NIXPREFETCHURL' '${pkgs.nixVersions.nix_2_20}/bin/nix-prefetch-url' \
359-
--subst-var-by 'NIX' '${pkgs.nixVersions.nix_2_20}/bin/nix'
359+
--subst-var-by 'NIX' '${pkgs.nixVersions.nix_2_20}/bin/nix'
360360
chmod +x $out/bin/sync-exts-versions
361361
'';
362362
};
@@ -392,7 +392,7 @@
392392
# Create a simple script to echo the key
393393
echo '#!/bin/sh' > $TMPDIR/getkey.sh
394394
echo 'echo $PGSODIUM_KEY' >> $TMPDIR/getkey.sh
395-
chmod +x $TMPDIR/getkey.sh
395+
chmod +x $TMPDIR/getkey.sh
396396
initdb --locale=C
397397
substitute ${./nix/tests/postgresql.conf.in} $PGDATA/postgresql.conf \
398398
--subst-var-by PGSODIUM_GETKEY_SCRIPT "$TMPDIR/getkey.sh"
@@ -430,7 +430,7 @@
430430
--host=localhost \
431431
--port=5432 \
432432
$(ls ${./nix/tests/sql} | sed -e 's/\..*$//' | sort )
433-
433+
434434
pg_ctl -D "$PGDATA" stop
435435
mv $TMPDIR/logfile/postgresql.log $out
436436
echo ${pgpkg}

0 commit comments

Comments
 (0)