Hey all, it is already possible to have
config.nix files in your projects to lock the holochain version.
- Copy the
default.nixfrom this example into your project.
- Rename them to usual
- Change the
- Edit the
"hash"by changing any letter of it to bypass cache, and try to do
nix-shellin the same folder in which you have created the files.
nix-shellwill give an error, so get the hash that was wanted and paste that in the
"hash"field in the
nix-shellagain, and you should have RSM installed. Try running
Voila! Commit, push, and you have environment setup for anyone working with this repository.
Notice that this will be pointing to the love branch of the holonix repository, so whenever a new change is made there, any new clean download of nix-shell will download a new holochain version.
To find out which holochain commit this refers to, you can run this:
nix eval -f https://holochain.love pkgs.holochain.src.rev
Just found out that this can be done already and I know that helps immensely in projects.
Props to @steveeJ for the hard work.