Skip to content

Describe a notion of root (or similar) for source tree abstraction paths #8718

@roberth

Description

@roberth

Problem

Currently Nix only knows one root, /., but that changes with lazy trees.

Proposal

Document how paths work, and explain that multiple roots exists.

A root could be defined as any path that doesn't have a parent.

  • Or has itself as parent if you want to define it that way (dirOf does...)
    Also note that a file may be a root
  • Unless that possibility is removed. We might always create an unnecessary directory around such files.

TODO

  • Have lazy trees
  • Document path root, give it an anchor
  • Refer here from nixpkgs path library docs.

Checklist

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions