Artifact f55ba5e3c118bc21afda344f3924044a324c63e1510012fb4de2fcb406d84172:

  • Executable file services/sandbox — part of check-in [ffae43ff7e] at 2024-06-26 06:59:36 on branch trunk — apply patch from ~ew correctly (user: toby size: 383)

#!/bin/bash

# Add support for nix-shell if available
if [[ -e "shell.nix" && $(which nix-shell) ]]; then
  echo Loading Nix packages
  nix-shell --run "$HOME/services/_sandbox $*"
elif [[ -e "packages.nix" && $(which nix-shell) ]]; then
  echo Loading Nix packages
  nix-shell -p $(xargs -a packages.nix echo) --run "$HOME/services/_sandbox $*"
else
  $HOME/services/_sandbox $*
fi