add perl-rename to container and update related runtime scripts

This commit is contained in:
Dan Vargas 2022-02-04 09:34:01 -07:00
parent 35cd527c69
commit 9cbec53580
3 changed files with 5 additions and 4 deletions

View file

@ -15,11 +15,11 @@ in piston.mkRuntime {
export TMPDIR="$PWD"
# modify file extension
mv "$1" "$1.v"
filename="$1.v"
filename="$1"
rename 's/$/.v/' "$filename"
shift
${pkg}/bin/v run "$filename" "$@"
${pkg}/bin/v run "$filename.v" "$@"
'';
tests = [