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DUQ4UEUHF2GGY4WNWOZYISPFYWMDAC
ZFMPQAFVZP6NC6VZK3YAKIMSS5NYOV47HITL5TQ2YCD3KRCZWREQC
TEQJC3HX2GJBTJWUGW5FXUSPKTPMSHGHFHJI75WMUPZRTGP6GRZQC
OB2MOPJ6NQDCF2OLLNHUR2JC4NQFNSNBRVFQJSF2USEI7ZMEX7HAC
NYO63G7WCBMM3I32U2JBIKK5YOINAXEKTBKGY4NQYPB5DUG5CM7QC
}
pygmentize() {
if __libdemo_use_colour; then
if type nix >/dev/null; then
# Hack around missing mainProgram attribute in pygments
COLORTERM="" TERM="" nix run github:sfrijters/nixpkgs/pygments-mainprogram#python3Packages.pygments "$@"
elif type pygmentize >/dev/null; then
COLORTERM="" TERM="" pygmentize "$@"
else
echo "pygmentize command not found"
return 1
fi
else
while [ $# -gt 1 ]; do
shift
done
cat "$@"
fi
tiv() {
if __libdemo_use_colour; then
if type nix > /dev/null; then
nix run github:sfrijters/nixpkgs/tiv-add-wrapper#tiv -- "$@"
elif type tiv >/dev/null; then
tiv "$@"
else
echo "tiv command not found"
return 1
fi
else
echo "no colour output available, use your imagination!"
fi
}
echo "$(dirname "${BASH_SOURCE[0]}")/libdemo/libdemo.sh"
${shellcheck_cmd} "$(dirname "${BASH_SOURCE[0]}")/libdemo/libdemo.sh" || return 1
echo "$(dirname "${BASH_SOURCE[0]}")/bash/nix-container-demo-helper.sh"
${shellcheck_cmd} "$(dirname "${BASH_SOURCE[0]}")/bash/nix-container-demo-helper.sh" || return 1
# -*- sh-shell: bash -*-
# shellcheck shell=bash
if [ -z ${_NIX_CONTAINER_DEMO_HELPER_INC+x} ]; then
_NIX_CONTAINER_DEMO_HELPER_INC=true
source "$(dirname "${BASH_SOURCE[0]}")/../libdemo/libdemo.sh"
export NIXPKGS_FLAKEREF=github:nixos/nixpkgs/008ce261a7e3c532e792cb8e39482f2cc1b192f5
pygmentize() {
if __libdemo_use_colour; then
if type nix >/dev/null; then
# Hack around missing mainProgram attribute in pygments
# TODO: use nixpkgs_flakeref when this fix is merged
COLORTERM="" TERM="" nix run github:sfrijters/nixpkgs/pygments-mainprogram#python3Packages.pygments -- "$@"
elif type pygmentize >/dev/null; then
COLORTERM="" TERM="" pygmentize "$@"
else
echo "pygmentize command not found"
return 1
fi
else
while [ $# -gt 1 ]; do
shift
done
cat "$@"
fi
}
tiv() {
if __libdemo_use_colour; then
if type nix > /dev/null; then
# Hack around missing imagemagick
# TODO: use nixpkgs_flakeref when this fix is merged
nix run github:sfrijters/nixpkgs/tiv-add-wrapper#tiv -- "$@"
elif type tiv >/dev/null; then
tiv "$@"
else
echo "tiv command not found"
return 1
fi
else
echo "no colour output available, use your imagination!"
fi
}
file() {
if type nix > /dev/null; then
nix run "${NIXPKGS_FLAKEREF}#file" -- "$@"
elif type file >/dev/null; then
file "$@"
else
echo "file command not found"
return 1
fi
}
fi
x "WINEPREFIX=$(readlink -f "${dir}/wttr-delft") nix run github:nixos/nixpkgs/008ce261a7e3c532e792cb8e39482f2cc1b192f5#wine64 -- ./result/bin/wttr-delft.exe"
x "WINEPREFIX=$(readlink -f "${dir}/wttr-delft") nix run ${NIXPKGS_FLAKEREF}#wine64 -- ./result/bin/wttr-delft.exe"