orage: fix tzdata pathes

authored by volth and committed by GitHub 070b6e6f 3e31d23d

+9 -1
+9 -1
pkgs/desktops/xfce/applications/orage.nix
··· 1 - { stdenv, fetchurl, fetchpatch, pkgconfig, bison, flex, intltool, gtk, libical, dbus-glib 1 + { stdenv, fetchurl, fetchpatch, pkgconfig, bison, flex, intltool, gtk, libical, dbus-glib, tzdata 2 2 , libnotify, popt, xfce 3 3 }: 4 4 ··· 21 21 sha256 = "1l8s106mcidmbx2p8c2pi8v9ngbv2x3fsgv36j8qk8wyd4qd1jbf"; 22 22 }) 23 23 ]; 24 + 25 + postPatch = '' 26 + substituteInPlace src/parameters.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" 27 + substituteInPlace src/tz_zoneinfo_read.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" 28 + substituteInPlace tz_convert/tz_convert.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" 29 + ''; 30 + 31 + postConfigure = "rm -rf libical"; # ensure pkgs.libical is used instead of one included in the orage sources 24 32 25 33 nativeBuildInputs = [ pkgconfig intltool bison flex ]; 26 34