Skip to content

Commit bb03d2c

Browse files
committed
feat: cleaner display of mc-rtc-superbuild shell name
1 parent 27b00b4 commit bb03d2c

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

pkgs/mc-rtc/mc-rtc-superbuild-standalone.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ stdenv.mkDerivation (finalAttrs: {
7373
'';
7474

7575
passthru = {
76-
inherit mc-rtc robots controllers observers plugins apps configs;
76+
inherit mc-rtc robots controllers observers plugins apps configs pname;
7777
};
7878

7979
meta = mc-rtc.meta // {

shell.nix

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
{ pkgs, mc-rtc-superbuild, name ? "default", extraBuildInputs ? [], with-ros ? false }:
1+
{ pkgs, mc-rtc-superbuild, extraBuildInputs ? [], with-ros ? false }:
22

33
let
44
mcRtcConfigs =
55
mc-rtc-superbuild.configs
66
++ [ "${mc-rtc-superbuild}/etc/mc_rtc.yaml" ];
7+
8+
title = " ${mc-rtc-superbuild.pname} interactive shell ";
9+
line = builtins.concatStringsSep "" (builtins.genList (_: "=") (builtins.stringLength title));
710
in
811
pkgs.mkShell {
912
buildInputs =
@@ -53,16 +56,16 @@ pkgs.mkShell {
5356
# FIXME we might need to run ros2 daemon stop && ros2 daemon start
5457
export ROS_DOMAIN_ID=100
5558
56-
echo "======================================="
57-
echo " mc-rtc-superbuild interactive shell (${name}) "
58-
echo "======================================="
59-
59+
echo "${line}"
60+
echo "${title}"
61+
echo "${line}"
6062
echo ""
63+
6164
echo "The following convenience environment variables are set:"
6265
env | grep '^MC_RTC_'
6366
echo ""
6467
65-
echo "Runtime dependencies (for information):"
68+
echo "Runtime dependencies (store paths):"
6669
echo "Robot modules:"
6770
for robot in ${pkgs.lib.concatStringsSep " " (map (r: "${r}") mc-rtc-superbuild.robots)}; do
6871
echo " $robot"
@@ -83,6 +86,8 @@ pkgs.mkShell {
8386
for app in ${pkgs.lib.concatStringsSep " " (map (r: "${r}") mc-rtc-superbuild.apps)}; do
8487
echo " $app"
8588
done
89+
echo ""
90+
echo "mc_rtc will use the following configuration files $MC_RTC_CONTROLLER_CONFIG"
8691
# only true for the symlink version, currently unused
8792
# echo ""
8893
# echo "All runtime components are symlinked in MC_RTC_PATH=${mc-rtc-superbuild}"

0 commit comments

Comments
 (0)