Zulip Chat Archive

Stream: general

Topic: nix: getting a cache hit


James Sully (Jun 19 2024 at 15:42):

Hi, I'm trying to build a trivial single .lean file executable using nix. I've copied the flake from here and tweaked the name.

I also poked around and found https://lean4.cachix.org. I added it as a substituter to my nix.conf, as well as the associated public key. However, when I nix build I'm still getting building lean-stage0 which I very much don't want to do on my laptop.

I was hoping the cache would have a pre-built copy of lean4 available. Is that the case? if so, is there something I have to do to get it, maybe specify the correct nixpkgs input?

Mauricio Collares (Jun 19 2024 at 15:48):

Can you paste the relevant section of nix.conf?

Mauricio Collares (Jun 19 2024 at 15:49):

Or just double-check the instructions at https://github.com/leanprover/lean4/blob/371fc8868af55eef20b63b9132cea60eb316c117/doc/setup/nix.md

Mauricio Collares (Jun 19 2024 at 15:50):

Oh, sorry, I missed lean4#3402

James Sully (Jun 19 2024 at 16:00):

Ah, thank you, and bummer


Last updated: May 02 2025 at 03:31 UTC