qfpl / applied-fp-course

Applied Functional Programming Course - Move from exercises to a working app!
http://qfpl.io/projects/professional-fp-courses/
Other
625 stars 180 forks source link

How to update nix json files? #89

Closed wizzup closed 4 years ago

wizzup commented 4 years ago

I want to try using nixpkgs released 19.09 but can't find tool to update nix json files.

Which tool is use for this purpose? I might just edit the manually but it doesn't seem to be the right way to do it.

endgame commented 4 years ago

You can test with a different nixpkgs by running something like nix-shell --arg nixpkgs 'import <nixpkgs> {}'.

The json files are generated by nix-prefetch-git, which you can gain access to via nix-shell -p nix-prefetch-git. I like to put an update.bash in nix/ to perform those calls, but there isn't one. If you want, you could crib the update.bash from semialign-extras as a guide.

If you do advance the pinned packages successfully, I'll happily merge a PR.

I'll close this issue because I think I've answered your question, but feel free to reopen if you need more info.