glistix/nix/path
Types and functions related to Nix path types.
Types
Functions
pub fn from_string(string: String) -> Path
Creates a path from a string. When it starts with /, it is absolute (relative to the filesystem root). When it starts with ~/, it is relative to the user’s home folder. When it starts with ../, it is relative to the parent folder of the current file. When it starts with ./ or anything else, it is relative to the folder of the current file.
Examples
from_string("./file.nix")
// -> //nix(./file.nix)