Ensure `STATUS_GO_SRC_OVERRIDE` gets passed to the Nix shell's `config`
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
parent
670c07b9b4
commit
e38e9f1072
|
@ -51,6 +51,10 @@ if [[ "$TARGET_OS" =~ (linux|windows|darwin|macos) ]]; then
|
||||||
nix-shell ${shellArgs[@]} --run "scripts/prepare-for-desktop-platform.sh" || exit
|
nix-shell ${shellArgs[@]} --run "scripts/prepare-for-desktop-platform.sh" || exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${STATUS_GO_SRC_OVERRIDE}" ]; then
|
||||||
|
shellArgs+=("--arg config {android_sdk.accept_license=true;status_go.src_override=\"${STATUS_GO_SRC_OVERRIDE}\";}")
|
||||||
|
fi
|
||||||
|
|
||||||
# if _NIX_ATTR is specified we shouldn't use shell.nix, the path will be different
|
# if _NIX_ATTR is specified we shouldn't use shell.nix, the path will be different
|
||||||
entryPoint="shell.nix"
|
entryPoint="shell.nix"
|
||||||
if [ -n "${_NIX_ATTR}" ]; then
|
if [ -n "${_NIX_ATTR}" ]; then
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ nixpkgs-bootstrap ? import ./nix/nixpkgs-bootstrap.nix { },
|
{ config ? { android_sdk.accept_license = true; },
|
||||||
|
nixpkgs-bootstrap ? import ./nix/nixpkgs-bootstrap.nix { inherit config; },
|
||||||
pkgs ? nixpkgs-bootstrap.pkgs,
|
pkgs ? nixpkgs-bootstrap.pkgs,
|
||||||
target-os ? "none" }:
|
target-os ? "none" }:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue