1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

Merge pull request #32237 from orivej/tzdata

tzdata: export TZDIR for dependent packages
This commit is contained in:
Orivej Desh 2017-12-01 22:07:29 +00:00 committed by GitHub
commit 3152e13790
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -41,6 +41,8 @@ stdenv.mkDerivation rec {
cp tzfile.h "$dev/include/tzfile.h"
'';
setupHook = ./tzdata-setup-hook.sh;
meta = {
homepage = http://www.iana.org/time-zones;
description = "Database of current and historical time zones";

View file

@ -0,0 +1,6 @@
tzdataHook() {
export TZDIR=@out@/share/zoneinfo
}
envHooks+=(tzdataHook)
crossEnvHooks+=(tzdataHook)