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:
parent
9f8c3f77ea
commit
c13de40f04
|
@ -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";
|
||||
|
|
6
pkgs/data/misc/tzdata/tzdata-setup-hook.sh
Normal file
6
pkgs/data/misc/tzdata/tzdata-setup-hook.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
tzdataHook() {
|
||||
export TZDIR=@out@/share/zoneinfo
|
||||
}
|
||||
|
||||
envHooks+=(tzdataHook)
|
||||
crossEnvHooks+=(tzdataHook)
|
Loading…
Reference in a new issue