Re:Nix-Powered Development with OCaml
by toastal on Monday March 06, 2023 @07:15AM
(#35040118)
There are tools out there for other languages that _can_ handle incremental & per-modules builds, such as purs-nix for PureScript, so if opam-nix doesn't now, I'm sure it will in the future as a lot of projects are asking for this feature.
[ Parent
| on HN ]
Re:Nix-Powered Development with OCaml
by ghostwriter on Monday March 06, 2023 @07:27AM
(#35040197)
> what does dune actually offer me if Iām using Nix to manage dependencies already?
purs-nix is a good example that even if per-module compilation is made into derivations, the rest of the remaining heavy-lifting of constraints resolution is done by the external build tool. You can think of Nix as a dependency manager, but only with a huge caveat that it doesn't actually manage constraints that come with those dependencies, especially transitive ones.