nushell: allow installing plugins

When the version of Nushell or any Nushell plugin changes, the plugin
registry must be regenerated.
This commit is contained in:
Aidan Gauland 2024-12-07 16:23:14 +13:00 committed by Robert Helgesson
parent e952e94955
commit 8772bae58c
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
3 changed files with 38 additions and 3 deletions

View file

@ -23,6 +23,8 @@
}
'';
plugins = [ pkgs.nushellPlugins.formats ];
shellAliases = {
"lsname" = "(ls | get name)";
"ll" = "ls -a";
@ -41,8 +43,6 @@
};
};
test.stubs.nushell = { };
nmt.script = let
configDir = if pkgs.stdenv.isDarwin && !config.xdg.enable then
"home-files/Library/Application Support/nushell"
@ -58,5 +58,7 @@
assertFileContent \
"${configDir}/login.nu" \
${./login-expected.nu}
assertFileExists \
"${configDir}/plugin.msgpackz"
'';
}