Skip to content

Instantly share code, notes, and snippets.

@dotemacs
Created August 12, 2020 13:44
Show Gist options
  • Save dotemacs/5455ab632c941b9bdd4fb104b2d9a5ba to your computer and use it in GitHub Desktop.
Save dotemacs/5455ab632c941b9bdd4fb104b2d9a5ba to your computer and use it in GitHub Desktop.

Broken install

To install nix, I did:

https://nixos.org/nix/manual/#sect-macos-installation

sh <(curl -L https://nixos.org/nix/install) --no-daemon

Finished quickly and at the end I ran:

. /Users/alex/.nix-profile/etc/profile.d/nix.sh

Then running:

make shell TARGET=ios

It bombs out with:

Configuring Nix shell for target 'ios'...
these paths will be fetched (0.00 MiB download, 3696.87 MiB unpacked):
  /nix/store/2ih0gn7bg36c1hr7494wzvhqzphcwjka-gomobile-20200329-4c31acb
  /nix/store/bj8np4qf39pn5bzkj9rbwc5f46qy0w1k-licensed-android-sdk
  /nix/store/bjvv4h27i2g28lbqwwj9whl3pz9dbza8-androidsdk
  /nix/store/kbpd9gkfs6a53ch1nd35nna7bx7kfkbb-gomobile-20200329-4c31acb-bin
  /nix/store/psx79cnz1khfjlzkw3j8x9sb1jhk1v1a-ndk-bundle-21.0.6113669
  /nix/store/w9jdq4rc45qg3pkw5a8sdnxs68y46pfw-status-go-0.56.6-2d0818d-ios
copying path '/nix/store/psx79cnz1khfjlzkw3j8x9sb1jhk1v1a-ndk-bundle-21.0.6113669' from 'https://nix-cache.status.im'...
NAR for '/nix/store/psx79cnz1khfjlzkw3j8x9sb1jhk1v1a-ndk-bundle-21.0.6113669' fetched from 'https://nix-cache.status.im' is incomplete
error: build of '/nix/store/nric2w5z8nsh04y1jn8mj802nbq8lm93-status-go-0.56.6-2d0818d-ios.drv' failed
make: *** [shell] Error 1
@dotemacs
Copy link
Author

Solution: comment out

# extra-substituters = https://nix-cache.status.im/

in nix.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment