1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

tzdata: export TZDIR for dependent packages

https://github.com/NixOS/nix/issues/1709
This commit is contained in:
Orivej Desh 2017-12-01 17:15:10 +00:00
parent 9f8c3f77ea
commit c13de40f04
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)