mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
fix: use strings for calculated paths
This commit is contained in:
@@ -35,8 +35,8 @@ in {
|
||||
## ```nix
|
||||
## "/user-source/systems"
|
||||
## ```
|
||||
#@ Path -> Path
|
||||
get-file = path: user-inputs.src + "/${path}";
|
||||
#@ String -> String
|
||||
get-file = path: "${user-inputs.src}/${path}";
|
||||
|
||||
## Get a file path relative to the user's snowfall directory.
|
||||
## Example Usage:
|
||||
@@ -47,8 +47,8 @@ in {
|
||||
## ```nix
|
||||
## "/user-source/snowfall-dir/systems"
|
||||
## ```
|
||||
#@ Path -> Path
|
||||
get-snowfall-file = path: snowfall-config.root + "/${path}";
|
||||
#@ String -> String
|
||||
get-snowfall-file = path: "${snowfall-config.root}/${path}";
|
||||
|
||||
## Get a file path relative to the this flake.
|
||||
## Example Usage:
|
||||
@@ -59,8 +59,8 @@ in {
|
||||
## ```nix
|
||||
## "/user-source/systems"
|
||||
## ```
|
||||
#@ Path -> Path
|
||||
internal-get-file = path: core-inputs.src + "/${path}";
|
||||
#@ String -> String
|
||||
internal-get-file = path: "${core-inputs.src}/${path}";
|
||||
|
||||
## Safely read from a directory if it exists.
|
||||
## Example Usage:
|
||||
|
||||
Reference in New Issue
Block a user