Skip to content

Commit f32a886

Browse files
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.
1 parent 18932b7 commit f32a886

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nix/tools/devTools.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
, hsie
1111
, nix
1212
, silver-searcher
13+
, stdenv
1314
, style
1415
, tests
1516
, withTools
@@ -53,10 +54,14 @@ let
5354
5455
Requires authentication with `cachix authtoken ...`.
5556
'';
57+
args =
58+
[
59+
"ARG_OPTIONAL_SINGLE([system], , [System], [${stdenv.system}])"
60+
];
5661
workingDir = "/";
5762
}
5863
''
59-
${nix}/bin/nix-instantiate \
64+
${nix}/bin/nix-instantiate --argstr system "$_arg_system" \
6065
| xargs ${nix}/bin/nix-store -qR --include-outputs \
6166
| ${cachix}/bin/cachix push postgrest
6267
'';

0 commit comments

Comments
 (0)