File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 # environment.
1313 strOrPackage = import ../nix/strOrPackage.nix { inherit lib pkgs ; } ;
1414
15+ inherit ( import ../nix/commands/devshellMenu.nix { inherit pkgs ; } ) devshellMenuCommandName ;
16+
1517 # Use this to define a flake app for the environment.
1618 mkFlakeApp = bin : {
1719 type = "app" ;
255257 type = types . str ;
256258 default = ''
257259 {202}🔨 Welcome to ${ cfg . name } {reset}
258- $(type -p menu &>/dev/null && menu )
260+ $(type -p ${ devshellMenuCommandName } &>/dev/null && ${ devshellMenuCommandName } )
259261 '' ;
260262 apply = replaceStrings
261263 ( map ( key : "{${ key } }" ) ( attrNames ansi ) )
Original file line number Diff line number Diff line change 11{ pkgs , devshell , runTest } :
2+ let inherit ( import ../../nix/commands/devshellMenu.nix { inherit pkgs ; } ) devshellMenuCommandName ; in
23{
34 # Basic devshell usage
45 commands-1 =
3334 # Load the devshell
3435 source ${ shell } /env.bash
3536
36- menu
37+ ${ devshellMenuCommandName }
3738
3839 # Checks that all the commands are available
3940 type -p bash-script
You can’t perform that action at this time.
0 commit comments