nix: add system argument to postgrest-push-cachix

This allows building aarch64-darwin derivations on a remote builder and
then pushing them to cachix before triggering CI.
This commit is contained in:
Wolfgang Walther
2025-07-11 15:53:06 +00:00
parent 18932b7a4a
commit f32a8861c5
+6 -1
View File
@@ -10,6 +10,7 @@
, hsie
, nix
, silver-searcher
, stdenv
, style
, tests
, withTools
@@ -53,10 +54,14 @@ let
Requires authentication with `cachix authtoken ...`.
'';
args =
[
"ARG_OPTIONAL_SINGLE([system], , [System], [${stdenv.system}])"
];
workingDir = "/";
}
''
${nix}/bin/nix-instantiate \
${nix}/bin/nix-instantiate --argstr system "$_arg_system" \
| xargs ${nix}/bin/nix-store -qR --include-outputs \
| ${cachix}/bin/cachix push postgrest
'';