Is your feature request related to a problem? Please describe.
Currently, in buildDuneProject (and probably also in buildOpamProject), in the project argument with filtering ./. will require --impure. It would be nice to be able to do without it.
I think it is very important to filter src. Currently, building with this flake is getting involved with flake.nix and other files that are not needed for the build ocaml project because can't filtering without --impure, so even if I change unrelated parts of those files, they get re-built, which annoys me.
Describe the solution you'd like
Build with filtering project arg, without --impure option.
Describe alternatives you've considered
Use --impure
Is your feature request related to a problem? Please describe. Currently, in
buildDuneProject
(and probably also inbuildOpamProject
), in theproject
argument with filtering./.
will require--impure
. It would be nice to be able to do without it.I am using https://github.com/numtide/nix-filter, but it would happen with
lib.sources.sourceFilesBySuffices
orbuildins.path
also.I think it is very important to filter
src
. Currently, building with this flake is getting involved withflake.nix
and other files that are not needed for the build ocaml project because can't filtering without--impure
, so even if I change unrelated parts of those files, they get re-built, which annoys me.Describe the solution you'd like Build with filtering
project
arg, without--impure
option.Describe alternatives you've considered Use
--impure
Additional context
This problem is occurring while working on this branch. https://github.com/SnO2WMaN/SATySFi/tree/sno2wman/nix-flake for PR