mkRelativePath
Source: src/mkRelativePath.nix
Type: (root : Path) -> (path : Path) -> String
Arguments:
-
root:Paththe root path.
Example:inputs.self -
path:Paththe path to get the relative path of (relative to
root)
Result:
This function is used to get the relative path of a file from a given root path.
mkRelativePath ./. ./path/to/file
# returns "path/to/file"
Usage inside files managed by mkHosts:
This function is configured by the mkHosts function to be used in a more convenient way:
mkRelativePath ./path/to/file
# returns "path/to/file"