Nix flake support - #4
Conversation
|
Thanks for this. You'll have to forgive my ignorance because I don't understand nix Flakes all too well. In the non-flakes workflow, nix-thunk allows me to pin a specific version of Agda e.g. see https://github.com/samtoth/agda-forester/blob/main/nix/Agda/github.json Does this Flake somehow do the same - my impression is that it doesn't? |
|
I have to admit that I am a total noob in flakes, but I'll share everything I got. Version pinning for all inputs is happening in the The tooling for Agda & forester is overwhelming for a newcomer:
IIUC it's impossible to build all four packages from the same world snapshot at the moment. Forester overlaying opam packages with the latest version and treelist having forester in inputs would reduce dependency fragmentation. Btw it's easy to list libraries for Agda, but agda-forester is unsuccessfully trying to find libraries in the home directory. Still thinking about solutions for this. |
|
Okay - thanks for the info! If this nix-flake is working for you, I am happy to merge it. I will stick with the current nix-thunk infrastructure in my project for now anyway. Btw should you like to/need to, you are welcome to open a PR on treelist so that it uses Forester from the flake (if that is possible). Finally - I have been meaning to bump to get these amazing new Agda speedups(!), would you mind updating the thunk ref to match the version you have in the flake.lock? |
|
I'm afraid that it would be easier to run nix-thunk yourself: These commits&hashes definitely work. treelist cannot be built with recent nixpkgs, unfortunately, I'm not knowledgeable enough in ocaml/dune ecosystem to debug the issue. |
Some basic infrastructure. Ping if you want me to change something.