Re:Nix-Powered Development with OCaml
by oever on Monday March 06, 2023 @07:05AM
(#35040030)
Flakes have a lock file (flake.lock) which means you get to decide explicitly when to update the software. nixpkgs does not have precise rules on what updates are allowed, so nix-shell can give surprising results unless you make the effort to stick to one version of the whole nixpkgs explicitly. With flakes you can combine packages and versions explicitly.
[ Parent
| on HN ]
Re:Nix-Powered Development with OCaml
by ghostwriter on Monday March 06, 2023 @07:10AM
(#35040087)
> you make the effort to stick to one version of the whole nixpkgs explicitly.
the "effort" is just pointing to a particular checkout from nixpkgs repo
> With flakes you can combine packages and versions explicitly.
it's the same thing with default.nix/shell.nix, just having a separate lockfile changes nothing in the underlying `builtins.fetchGit` / `builtins.fetchTarball`