Note: this is not used in production.
To get a shell with this env:
$ nix-shell
or
$ nix develop
To run a command in this env, you can’t use nix-shell --run
, but instead:
$ NIX_SHELL_RUN='...' nix-shell
To set up clangd with remote indexing support:
$ NIX_SHELL_RUN='readlink /usr/bin/clangd' nix-shell
Periodically, we'll want to update dependencies to keep them relatively fresh. To do that:
$ nix run github:NixOS/nixpkgs\#npins -- update
Then commit the new sources.json
.
If something breaks due to a bad deps update, rolling back is as simple as reverting to an earlier version of sources.json
.