From 78fc50f1cf8e57a974ff4bfe654563fce43d6289 Mon Sep 17 00:00:00 2001 From: Kira <67888720+koffydrop@users.noreply.github.com> Date: Mon, 30 Jun 2025 15:49:04 -0300 Subject: [PATCH] direnv: fix nushell cell-path handling (#7339) After https://github.com/nushell/nushell/pull/15692, this integration breaks $PATH conversions again as cell-paths are now case-sensitive. --- modules/programs/direnv.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/direnv.nix b/modules/programs/direnv.nix index 3ea851c4..80e7e0c7 100644 --- a/modules/programs/direnv.nix +++ b/modules/programs/direnv.nix @@ -187,13 +187,13 @@ in | items {|key, value| let value = do ( { - "path": { + "PATH": { from_string: {|s| $s | split row (char esep) | path expand --no-symlink } to_string: {|v| $v | path expand --no-symlink | str join (char esep) } } } | merge ($env.ENV_CONVERSIONS? | default {}) - | get -i $key + | get -i ([[value, optional, insensitive]; [$key, false, true]] | into cell-path) | get -i from_string | if ($in | is-empty) { {|x| $x} } else { $in } ) $value