What’s the best way to convert a list of absolute paths as strings like:
[ "/foo/README.md" "/foo/blog.md" "/foo/docs/alert-manager.md" ]
…to a source directory (in the spirit of builtins.path
and company) where each file would get copied to /nix/store
under a directory like /nix/store/abc123-source/{foo/README.md,foo/blog.md,foo/docs/alert-manager.md}
.