<p>It seems that you did a multi-user w/ daemon installation. I am aware that a functioning guide is <a href="https://plutus-community.readthedocs.io/en/latest/#Environment/Build/Mac_M1/" rel="nofollow noreferrer">here</a></p>
<p>so get nix using the darwing unencrypted label</p>
<pre><code>sh &lt;(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
</code></pre>
<p>edit your <code>sudo nano /etc/nix/nix.conf </code> file, by adding IOHK's binaries:</p>
<pre><code>build-users-group = nixbld

substituters        = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=

system = x86_64-darwin
extra-platforms = x86_64-darwin aarch64-darwin

sandbox = false
extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib /private/tmp /private/var/tmp /usr/bin/env
experimental-features = nix-command
extra-experimental-features = flakes
</code></pre>
<p>reboot and you should be good to go.</p>
<p><strong>note</strong> I am no Nix expert nut if the problem persists then you might need to completely uninstall Nix first, which is not so trivial.</p>

CC BY-SA 4.0
2022-05-30T18:58:07.267Z
This was spot on, thanks! 

I did have to [uninstall nix](https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos) first. Also needed to be in the /marlowe-cardano directory during installation in order to be able to run `nix-shell`.
DaveLind
CC BY-SA 4.0
2022-05-30T19:22:53.070Z
Glad it worked! If you upvote and mark my answer as solved it will help other people find it ;)
Igodlab
CC BY-SA 4.0
2022-05-28T18:44:36.993Z
2022-05-28T18:44:36.993Z
Igodlab
<p>I successfully installed NixOS on a Mac M1. However, running either <code>nix-shell</code> or <code>GC_DONT_GC=1 nix-shell</code> from within /marlowe-cardano (in the marlowe-pioneers branch) produces:</p>
<pre><code>error: cannot bootstrap GHC on this platform ('aarch64-darwin' with libc 'defaultLibc')
</code></pre>
<p>Any ideas on how to get past this?</p>

<nix-shell><marlowe><marlowe-pioneer-program>
Running nix-shell on Mac M1
# Running nix-shell on Mac M1

(Asked by: username_0 on 2022-05-28)

I successfully installed NixOS on a Mac M1. However, running either nix-shell or GC_DONT_GC=1 nix-shell from within /marlowe-cardano (in the marlowe-pioneers branch) produces:
error: cannot bootstrap GHC on this platform ('aarch64-darwin' with libc 'defaultLibc')

Any ideas on how to get past this?

**Tags:** nix-shell, marlowe, marlowe-pioneer-program

---

## 1 answers

### Answer by username_1 on 2022-05-28. Score: 3 | Accepted answer

It seems that you did a multi-user w/ daemon installation. I am aware that a functioning guide is here
so get nix using the darwing unencrypted label
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume

edit your sudo nano /etc/nix/nix.conf  file, by adding IOHK's binaries:
build-users-group = nixbld

substituters        = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=

system = x86_64-darwin
extra-platforms = x86_64-darwin aarch64-darwin

sandbox = false
extra-sandbox-paths = /System/Library/Frameworks /System/Library/PrivateFrameworks /usr/lib /private/tmp /private/var/tmp /usr/bin/env
experimental-features = nix-command
extra-experimental-features = flakes

reboot and you should be good to go.
note I am no Nix expert nut if the problem persists then you might need to completely uninstall Nix first, which is not so trivial.

> **Comments:**
> **username_0**: This was spot on, thanks!   I did have to [uninstall nix](https://nixos.org/manual/nix/stable/installation/installing-binary.html#macos) first. Also needed to be in the /marlowe-cardano directory during installation in order to be able to run `nix-shell`.  
> **username_1**: Glad it worked! If you upvote and mark my answer as solved it will help other people find it ;)  

---

