cxxtools: hardcode TZDIR

+6
+6
pkgs/development/libraries/cxxtools/default.nix
··· 2 2 , stdenv 3 3 , fetchFromGitHub 4 4 , fetchpatch 5 + , tzdata 5 6 , autoreconfHook 6 7 , openssl 7 8 }: ··· 27 28 hash = "sha256-ZnlbdWBjL9lEtNLEF/ZPa0IzvJ7i4xWI4GbY8KeA6A4="; 28 29 }) 29 30 ]; 31 + 32 + postPatch = '' 33 + substituteInPlace src/tz.cpp \ 34 + --replace '::getenv("TZDIR")' '"${tzdata}/share/zoneinfo"' 35 + ''; 30 36 31 37 nativeBuildInputs = [ 32 38 autoreconfHook