Skip to content

Commit 89257d3

Browse files
fix: add new statement in shellHook
trying to avoid the following issue: + nix build --print-build-logs --print-out-paths --accept-flake-config '.?submodules=1#status-go-library' error: … while calling the 'derivationStrict' builtin at <nix/derivation-internal.nix>:34:12: 33| 34| strict = derivationStrict drvAttrs; | ^ 35| … while evaluating derivation 'status-go-621f2862df44f3c32b9e9c7e8d5bb52eadbc58dc' whose name attribute is located at /nix/store/adg59bd9qazpsfms6gyaz4xhilnb320j-source/pkgs/stdenv/generic/make-derivation.nix:480:13 … while evaluating attribute 'patchPhase' of derivation 'status-go-621f2862df44f3c32b9e9c7e8d5bb52eadbc58dc' at /nix/store/w6cp5117wdw3jk46czv4wbfqamqcs809-source/nix/pkgs/status-go/library/default.nix:43:3: 42| NIX_DEBUG = 1; 43| patchPhase = '' | ^ 44| mkdir -p vendor/github.com/waku-org/sds-go-bindings/third_party/nim-sds/build (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: aarch64-darwin not supported for Android SDK. Use: NIXPKGS_SYSTEM_OVERRIDE=x86_64-darwin script returned exit code 1[WS-CLEANUP] Deleting project workspace...
1 parent 621f286 commit 89257d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nix/shell.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ in mkShell {
2424
];
2525

2626
shellHook = lib.optionalString (!isMacM1) ''
27+
if [ "$(uname -m)" = "arm64" ]; then
28+
export NIXPKGS_SYSTEM_OVERRIDE=x86_64-darwin
29+
echo "Forcing Nix to use x86_64-darwin for Android SDK support"
30+
fi
31+
2732
echo "Patching env.sh to use Nix Nim..."
2833
env_sh="vendor/github.com/waku-org/sds-go-bindings/third_party/nim-sds/vendor/nimbus-build-system/scripts/env.sh"
2934

0 commit comments

Comments
 (0)