Show GitHub Profile

Threads by ratherforky

Finding compatible libraries/versions with Nix

I'm usually a Stack user who doesn't bother with version bounds or anything like that for personal projects, so I'm used to adding a package to my dependencies and simply letting Stack figure our how to make it work. I tried to do the same thing with Nix and of course ran into issues. Specifically I wanted to use random-fu, so I added it to default.nix and ran make -B .envrc, but it failed to build dependencies. This may just be a random-fu issue and I'm open to other random library suggestions (just need something that randomly chooses an element of a list), but I'd like to know how to deal with this kind of problem in general. Is there a list of packages that definitely work with the rest of ihp? Are there tools similar to Stack's resolver that could be used here?

ratherforky , in Nix