diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-11T22·05-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-07-11T22·05-0400 |
commit | d287b62b6432ce3155e963c6471edf79ec70439a (patch) | |
tree | aa27f5e62cb4efe56d1776b138a40cdb7fb46d55 /perl/lib/Nix | |
parent | b74d92755d1ca6a1538f292dcb5a906f66af7b51 (diff) |
Set the User-Agent header to "Nix/<version>"
Diffstat (limited to 'perl/lib/Nix')
-rw-r--r-- | perl/lib/Nix/Config.pm.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl/lib/Nix/Config.pm.in b/perl/lib/Nix/Config.pm.in index 57751b6b4057..ed197821e89f 100644 --- a/perl/lib/Nix/Config.pm.in +++ b/perl/lib/Nix/Config.pm.in @@ -1,5 +1,7 @@ package Nix::Config; +$version = "@version@"; + $binDir = $ENV{"NIX_BIN_DIR"} || "@bindir@"; $libexecDir = $ENV{"NIX_LIBEXEC_DIR"} || "@libexecdir@"; $stateDir = $ENV{"NIX_STATE_DIR"} || "@localstatedir@/nix"; |