Merge pull request #280 from Kreyren/patch-3

age-home: Use curly-brackets for XDG_RUNTIME_DIR
This commit is contained in:
Ryan Mulligan 2024-08-10 05:45:04 -07:00 committed by GitHub
commit f6291c5935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,12 +146,12 @@ with lib; let
baseDir =
if isDarwin
then "$(getconf DARWIN_USER_TEMP_DIR)"
else "$XDG_RUNTIME_DIR";
else "\${XDG_RUNTIME_DIR}";
in "${baseDir}/${dir}";
userDirectoryDescription = dir:
literalExpression ''
"$XDG_RUNTIME_DIR"/${dir} on linux or "$(getconf DARWIN_USER_TEMP_DIR)"/${dir} on darwin.
"${XDG_RUNTIME_DIR}"/${dir} on linux or "$(getconf DARWIN_USER_TEMP_DIR)"/${dir} on darwin.
'';
in {
options.age = {