-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while building Plutus Core with Nix - "cannot coerce null to a string" #3675
Comments
Thanks for the issue! Unfortunately, the nix support for m1 macs is new at the moment and is available only in newer nixpkgs. Plutus uses the older and more stable version. I don't think it will be fixed in the near future. Such things take time to update and upgrade. Even if you will make it work somehow, you will lack a lot of cached packages (because of different nixpkgs versions). |
I see, thank you for the reply! I will leave this issue open in case someone has a comprehensive solution in the future. |
You may try to disable the sandbox: |
@ak3n Thanks, I'll try again, but I remember I used unstable + didn't disable sandbox, which was also not working, so I enabled it. Hope it works. |
Closing as stale. |
Area
Summary
I'm trying to build Plutus on an M1 mac, but encountered the following error.
This is my first time using Nix. It seems that there's a bug in the
make-derivation.nix
. That line specifically isname = "${attrs.pname}-${attrs.version}";
. Maybeattrs
was null?Steps to reproduce
Steps to reproduce the behavior:
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
git clone https://github.com/input-output-hk/plutus.git
./plutus
nix build -f default.nix plutus.haskell.packages.plutus-core.components.library
Expected behavior
Build should go through successfully.
System info (please complete the following information):
nix --version
:nix (Nix) 2.3.15
Screenshots and attachments
Running the
nix build
command again with--show-trace
:The line where the error got thrown:
Additional context
When running the
nix build
command on Plutus for the first time, Nix downloaded 20.7MiB of data.The text was updated successfully, but these errors were encountered: