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 b
s 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.