nixpkgs-suyu/nixos/modules
aszlig 0b9d9eded1
nixos/version: Try to get Git revison from .git
Let's first try if we can determine the Git revision from the .git
directory and if that fails, fall back to get the info from the
".git-revision" file... and after that use something generic like
"master".

This should address #17218 in better way, because we don't need to
create another redundant file in the source checkout of nixpkgs.

I'm not going to route of falling back to using .git, because after
55d881e, we already have ".git-revision" files in people's Git
repositories, which in turn means that nixos-version will report that
old file every time even if the working tree has updated.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Cc: @bennofs, Profpatsch
Reported-by: @devhell
Fixes: #17218
2016-08-09 14:18:20 +02:00
..
config nixos/pulseaudio: increase service restart time 2016-07-30 23:42:54 +02:00
hardware nixos ati_unfree: auto-switch xorg to fglrxComat 2016-05-23 10:12:44 +02:00
i18n/input-method fcitx: refactor (#16858) 2016-07-11 17:50:22 +02:00
installer Revert adding .git-revision unconditionally 2016-08-09 14:15:06 +02:00
misc nixos/version: Try to get Git revison from .git 2016-08-09 14:18:20 +02:00
profiles documentation: fix start display-manager command 2016-07-04 10:25:31 +02:00
programs unity3d: use chromium-suid-sandbox 2016-08-08 10:49:00 +03:00
security chromium-suid-sandbox module: fix description 2016-08-08 10:17:31 +03:00
services libinput.accelProfile: improve docs & new default 2016-08-08 14:01:07 +02:00
system nixos/stage-1: use readlink -e in builder 2016-08-08 09:45:45 -05:00
tasks kbd task: fix colors in early initrd 2016-07-24 15:08:49 +03:00
testing KDE test: Bump kdm start timeout 2016-05-27 11:22:27 +02:00
virtualisation declarative containers: additional veths 2016-07-28 23:06:41 +02:00
module-list.nix unity3d: use chromium-suid-sandbox 2016-08-08 10:49:00 +03:00
rename.nix unity3d: use chromium-suid-sandbox 2016-08-08 10:49:00 +03:00