10 stdenv.mkDerivation rec {
12 version = "0-unstable-2024-06-04";
14 src = fetchFromGitHub {
17 rev = "354296149e65ca31932c514fddb7435cb47671e9";
18 hash = "sha256-L6BIHr3tfw51AoSvZMlP3HWEWXfEaPa8nq1aJOqcNkE=";
22 substituteInPlace Makefile \
23 --replace-fail 'pkg-config' "$PKG_CONFIG"
26 nativeBuildInputs = [ pkg-config ];
34 OLSON_DIR = "tzdata2024a";
35 PRODUCT_ID = "-//NixOS//NONSGML Citadel calendar//EN";
36 TZID_PREFIX = "/NixOS/Olson_%D_1/";
39 # no install rule in Makefile
43 mkdir -p $out/share/vtimezone
44 ${stdenv.hostPlatform.emulator buildPackages} ./vzic --output-dir $out/share/vtimezone
45 install -Dm744 vzic $out/bin/vzic
51 homepage = "https://github.com/libical/vzic";
52 description = "A program to convert the IANA timezone database files into VTIMEZONE files compatible with the iCalendar specification";
53 changelog = "https://github.com/libical/vzic/blob/${src.rev}/ChangeLog";
55 license = with lib.licenses; [ gpl2Plus ];
56 maintainers = with lib.maintainers; [ moraxyc ];
57 broken = !stdenv.hostPlatform.emulatorAvailable buildPackages;
58 platforms = lib.platforms.unix;