cxxtools: hardcode TZDIR

This commit is contained in:
Weijia Wang 2023-12-11 01:03:23 +01:00
parent 6c6435606a
commit a83d30ff4d

View File

@ -2,6 +2,7 @@
, stdenv
, fetchFromGitHub
, fetchpatch
, tzdata
, autoreconfHook
, openssl
}:
@ -28,6 +29,11 @@ stdenv.mkDerivation rec {
})
];
postPatch = ''
substituteInPlace src/tz.cpp \
--replace '::getenv("TZDIR")' '"${tzdata}/share/zoneinfo"'
'';
nativeBuildInputs = [
autoreconfHook
];