supabase-postgres.git / summary / log / commit / refs
commit 300cdfc40f8e4bfc5aaeea74a64e57939bffb6cb
Author: Manuel Mendez <708570+mmlb@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Date: Mon Jun 22 18:54:21 2026 +0000
nix/build-ami: Use nix builtin.placeholder instead of $0 and realpath (#2235)
No need to ensure execution mode with this setup, also we can drop
coreutils.
nix/packages/build-ami.nix | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/nix/packages/build-ami.nix b/nix/packages/build-ami.nix
index a64136a8..8ab7f6be 100644
--- a/nix/packages/build-ami.nix
+++ b/nix/packages/build-ami.nix
@@ -2,7 +2,6 @@
lib,
stdenv,
awscli2,
- coreutils,
jq,
packer,
writeShellApplication,
@@ -43,7 +42,6 @@ writeShellApplication {
runtimeInputs = [
awscli2
- coreutils
jq
packer
];
@@ -64,11 +62,7 @@ writeShellApplication {
*) echo "Error: Invalid arch '$ARCH'. Must be 'amd64' or 'arm64'" >&2 && exit 1 ;;
esac
- if [[ $0 != "''${BASH_SOURCE[0]}" ]]; then
- echo "This file is not to be sourced" >&2
- exit 1
- fi
- INPUT_HASH=$(realpath "$0")
+ INPUT_HASH=${placeholder "out"}
INPUT_HASH=''${INPUT_HASH#/nix/store/}
INPUT_HASH=''${INPUT_HASH%%-*}
shift 2