Packages

Bindings to Nix types and functions for Glistix users

Current section

Files

Jump to
glistix_nix src glistix nix path_like.gleam
Raw

src/glistix/nix/path_like.gleam

//// Module concerning the `PathLike` type.
import glistix/nix/path.{type Path}
/// Represents any object which could be used to represent a path within Nix.
pub type PathLike {
/// A regular path object.
/// Usually, when used, triggers a copy to the Nix store.
NixPath(Path)
/// A string which points to any path in the system.
StringPath(String)
}