diff --git a/docker/nix/build_nix.sh b/docker/nix/build_nix.sh index a8a8639e2..5035be062 100644 --- a/docker/nix/build_nix.sh +++ b/docker/nix/build_nix.sh @@ -5,6 +5,13 @@ nix --version if [ -d "/workspace" ]; then cd /workspace fi +SYSTEM=$(nix-instantiate --eval -E builtins.currentSystem | tr -d '"') nix build .#psql_15/bin -o psql_15 nix flake check -L nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_15 +if [ "$SYSTEM" = "aarch64-linux" ]; then + nix build .#postgresql_15_debug -o ./postgresql_15_debug + nix build .#postgresql_15_src -o ./postgresql_15_src + nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./postgresql_15_debug-debug + nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./postgresql_15_src +fi diff --git a/flake.nix b/flake.nix index 37117324c..82e76983b 100644 --- a/flake.nix +++ b/flake.nix @@ -296,7 +296,7 @@ pg_regress = pg_regress; pg_prove = pkgs.perlPackages.TAPParserSourceHandlerpgTAP; postgresql_15 = pkgs.postgresql_15; - + postgresql_15_debug = if pkgs.stdenv.isLinux then postgresql_15.debug else null; postgresql_15_src = pkgs.stdenv.mkDerivation { pname = "postgresql-15-src"; version = pkgs.postgresql_15.version;