name=builtins.headmatch;value=builtins.path{path="${dir}/${name}";inheritname;};# »builtins.path« puts the file in a separate, content-addressed store path, ensuring it's path only changes when the content changes, thus avoiding unnecessary rebuilds.