This commit is contained in:
Sebastian Moser
2024-12-28 18:37:47 +01:00
parent 87adea3ded
commit cfd9bfccbd
3 changed files with 20 additions and 6 deletions

12
mybin/htldoc Executable file
View File

@@ -0,0 +1,12 @@
#!/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