info: use XDG_CACHE_HOME if defined

(cherry picked from commit a30751464a)
This commit is contained in:
Robert Helgesson 2017-08-26 12:10:14 +02:00
parent b25037d68b
commit f6a05b15a6
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -42,7 +42,7 @@ in
enable = mkEnableOption "GNU Info";
homeInfoDirLocation = mkOption {
default = "$HOME/.cache/info";
default = "\${XDG_CACHE_HOME:-$HOME/.cache}/info";
description = ''
Directory in which to store the info <filename>dir</filename>
file within your home.