mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ stdenv, fetchurl }:
|
|
|
|
let version = "2015d"; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "tzdata-${version}";
|
|
|
|
srcs =
|
|
[ (fetchurl {
|
|
url = "http://www.iana.org/time-zones/repository/releases/tzdata${version}.tar.gz";
|
|
sha256 = "0cfmjvr753b3wjnr1njv268xcs31yl9pifkxx58y42bz4w4517wb";
|
|
})
|
|
(fetchurl {
|
|
url = "http://www.iana.org/time-zones/repository/releases/tzcode${version}.tar.gz";
|
|
sha256 = "0a3i65b6lracfx18s8j69k0x30x8aq9gx7qm040sybn4qm7ga6i2";
|
|
})
|
|
];
|
|
|
|
sourceRoot = ".";
|
|
outputs = [ "out" "lib" ];
|
|
|
|
makeFlags = "TOPDIR=$(out) TZDIR=$(out)/share/zoneinfo ETCDIR=$(TMPDIR)/etc LIBDIR=$(lib)/lib MANDIR=$(TMPDIR)/man AWK=awk CFLAGS=-DHAVE_LINK=0";
|
|
|
|
postInstall =
|
|
''
|
|
rm $out/share/zoneinfo-posix
|
|
ln -s . $out/share/zoneinfo/posix
|
|
mv $out/share/zoneinfo-leaps $out/share/zoneinfo/right
|
|
|
|
mkdir -p "$lib/include"
|
|
cp tzfile.h "$lib/include/tzfile.h"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.iana.org/time-zones;
|
|
description = "Database of current and historical time zones";
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|