2

I'm just gonna post a problem that I've been experiencing for a few days (and having a hard time searching for the answer on the internet) and the solution, so that future questions can refer to this solution.

Hardware

I'm using Macbook Pro Intel 2020, macOS Monterrey Beta 6

Problem

So the problem was when I was running nix-shell in the plutus repository for the first time, and after downloading all the dependencies, the nix-shell stuck at Building library for hnix-#.#.# and [1 of 50] Compiling Nix.Atoms.

What I did before compiling was installing Nix from the official documentation https://nixos.org/download.html

I also did configure the binary cache from https://github.com/input-output-hk/plutus#iohk-binary-cache

Also tried to start with and without https://github.com/input-output-hk/plutus#nix-on-macos

All to no success, still stuck at Building library for hnix-#.#.# and [1 of 50] Compiling Nix.Atoms

1
  • can I ask how you installed nix-darwin ? I have the same issue as you had (Building library for hnix-#.#.# and [1 of 50] Compiling Nix.Atoms.) I get this error when I try to install it: ~ % nix-build github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer ./result/bin/darwin-installer error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at /nix/store/v1rhxl3ln24zlx8dbmhcrwbwydfmzj6a-master.tar.gz/default.nix:1:13 zsh: no such file or directory: ./result/bin/darwin-installer
    – Jan
    Nov 9 at 5:16
1

So the solution was simply to install nix-darwin

https://github.com/LnL7/nix-darwin

simply follow the instruction on the github page above, and now I can access my nix-shell

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.