nixpkgs-suyu/nixos/modules/installer/tools/nixos-version.sh

14 lines
184 B
Bash

#! @shell@
case "$1" in
-h|--help)
exec man nixos-version
exit 1
;;
--hash|--revision)
echo "@revision@"
;;
*)
echo "@version@ (@codeName@)"
;;
esac