alqages/packages/amadaluzian-nu/default.nix

39 lines
613 B
Nix
Raw Normal View History

2025-02-10 20:28:46 +00:00
{
symlinkJoin,
nushell,
zoxide,
makeWrapper,
system,
inputs,
2025-02-10 20:28:46 +00:00
}:
symlinkJoin {
name = "nu";
paths = [
nushell
inputs.self.packages.${system}.amadaluzian-starship
2025-02-10 20:28:46 +00:00
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}" \
2025-02-10 20:28:46 +00:00
'';
}