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:
@@ -10,6 +10,7 @@
|
|||||||
, hsie
|
, hsie
|
||||||
, nix
|
, nix
|
||||||
, silver-searcher
|
, silver-searcher
|
||||||
|
, stdenv
|
||||||
, style
|
, style
|
||||||
, tests
|
, tests
|
||||||
, withTools
|
, withTools
|
||||||
@@ -53,10 +54,14 @@ let
|
|||||||
|
|
||||||
Requires authentication with `cachix authtoken ...`.
|
Requires authentication with `cachix authtoken ...`.
|
||||||
'';
|
'';
|
||||||
|
args =
|
||||||
|
[
|
||||||
|
"ARG_OPTIONAL_SINGLE([system], , [System], [${stdenv.system}])"
|
||||||
|
];
|
||||||
workingDir = "/";
|
workingDir = "/";
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
${nix}/bin/nix-instantiate \
|
${nix}/bin/nix-instantiate --argstr system "$_arg_system" \
|
||||||
| xargs ${nix}/bin/nix-store -qR --include-outputs \
|
| xargs ${nix}/bin/nix-store -qR --include-outputs \
|
||||||
| ${cachix}/bin/cachix push postgrest
|
| ${cachix}/bin/cachix push postgrest
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user