22 lines
573 B
Nix
22 lines
573 B
Nix
{ symlinkJoin, nushell, zoxide, makeWrapper, system, inputs, }:
|
|
symlinkJoin {
|
|
name = "nu";
|
|
|
|
paths =
|
|
[ nushell inputs.self.packages.${system}.amadaluzian-starship zoxide ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
passthru = { inherit (nushell.passthru) shellPath; };
|
|
|
|
meta = { inherit (nushell.meta) mainProgram; };
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/nu \
|
|
--set NUSHELL_CONFIG_DIR "${./cfg}" \
|
|
--add-flags "--env-config" \
|
|
--add-flags "${./cfg/env.nu}" \
|
|
--add-flags "--config" \
|
|
--add-flags "${./cfg/config.nu}" \
|
|
'';
|
|
}
|