Files
mize/packages/vic/vic
Sebastian Moser f2e73e677a ...
2026-02-20 11:28:45 +01:00

31 lines
612 B
Bash
Executable File

#!/bin/sh
# this is a Victorinix Wrapper
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $SCRIPT_DIR/wrapper/to-source.sh
BINARY=/home/me/work/victorinix/target/debug/victorinix
function vic_main() {
if [[ "$1" == "print-wrapper-path" ]]
then
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
echo -en $SCRIPT_DIR/wrapper/to-source.sh
VIC_NO_RUN=true
fi
}
function vic_build_func() {
nix develop ~/work/victorinix --impure -c cargo build --manifest-path ~/work/victorinix/Cargo.toml
}
vic_wrapper_run "$@"