I have a single flake.nix which has multiple “packages” in the outputs.
One package, lets call it a lives in a subdirectory and does not need anything from outside of this folder.
The other package b depends on it.
I change flake.nix and add an environment variable to bs mkDerivation or even any file that only belongs to b.
a now gets rebuild.
Is there a way to not have a rebuild when unrelated files change?
I was thinking about moving a into its own flake, though that again would make development unnecessarily complex, as the dev-environment assumes that a resides within that particular subdir and does not follow symlinks…
Also it feels wrong to have a in its own flake, as it has no “worth” of it allone. It is just some websites assets.
make some whitespace changes in any file not in assets folder
build assets again, target will be built from scratch
Expected => no rebuild in step 4
I can provide a more minimal example, though not before 2021
PS: It seems as if there are additional problems I have not yet checked into, nix flake show errors, I am aware of that, though as assets builds, I consider this unrelated.