mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
86cd055477
Example use case: git checkout `nixos-version --hash`
11 lines
141 B
Bash
11 lines
141 B
Bash
#! @shell@
|
|
|
|
case "$1" in
|
|
--hash|--revision)
|
|
echo "@nixosRevision@"
|
|
;;
|
|
*)
|
|
echo "@nixosVersion@ (@nixosCodeName@)"
|
|
;;
|
|
esac
|