File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010
1111 # Because we want to be able to push pure JSON-like data into the
1212 # environment.
13- strOrPackage = import ../nix/strOrPackage.nix { inherit lib pkgs ; } ;
13+ strOrPackage = import ../nix/strOrPackage.nix { inherit pkgs ; } ;
14+
15+ inherit ( import ../nix/commands/lib.nix { inherit pkgs ; } ) devshellMenuCommandName ;
1416
1517 # Use this to define a flake app for the environment.
1618 mkFlakeApp = bin : {
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- {
2+ rec {
3+ inherit ( import ../../nix/commands/lib.nix { inherit pkgs ; } ) devshellMenuCommandName ;
4+
35 # Basic devshell usage
46 commands-1 =
57 let
3335 # Load the devshell
3436 source ${ shell } /env.bash
3537
36- menu
38+ ${ devshellMenuCommandName }
3739
3840 # Checks that all the commands are available
3941 type -p bash-script
You can’t perform that action at this time.
0 commit comments