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:
commit
3152e13790
|
@ -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