Files
dotfiles/mybin/htldoc
Sebastian Moser cfd9bfccbd new fusu
2024-12-28 18:37:47 +01:00

13 lines
336 B
Bash
Executable File

#!/bin/sh
if [ -f "htldoc.nix" ]; then
echo -en ""
else
echo "There is not htldoc.nix in this directory" >&2
exit 1
fi
htldocUrl=$(nix eval --expr 'let config = (import ./htldoc.nix {}); in if builtins.hasAttr "htldocVersion" config then config.htldocVersion else "github:c2vi/htldoc/master"' --impure)
nix run $htldocUrl