cxxtools: hardcode TZDIR

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