Hello I a new to openlane and have been trying to ...
# openlane-2
g
Hello I a new to openlane and have been trying to install it for a while, after cloning the repo and after I cd into the openlane2 directory i execute the nix-shell which builds to about 90% and then throws a build error, for context i am using Ubuntu in WSL.
this is what the terminal looks like and after looking into the logfile i found 3 main errors
Untitled
d
@George Johnson Nothing should be building. Check that you've set up the binary cache: https://openlane2.readthedocs.io/en/latest/getting_started/common/nix_installation/installation_win.html#installing-nix
g
Thanks @donn it is working now after setting up the binary cache, i was under the impression that it was only required if i had nix preinstalled
d
Our Nix install command includes the cache:
Copy code
sh <(curl -L <https://nixos.org/nix/install>) --no-daemon --yes --nix-extra-conf-file <(echo "experimental-features = nix-command flakes\nextra-substituters = <https://openlane.cachix.org>\nextra-trusted-public-keys = openlane.cachix.org-1:qqdwh+QMNGmZAuyeQJTH9ErW57OWSvdtuwfBKdS254E=\n")
But if you still Nix using another method, you need to set up the binary cache manually.
g
Oh, I think that is what I had used not sure what i did wrong...
d
Actually come to think of it, I ran into a similar issue recently-- I think
--nix-extra-conf-file
doesn't work on non-systemd environments such as WSL2 or inside Docker containers. I think this is a documentation issue… Will investigate.