@@ -1,6 +1,5 @@
1−{ stdenv, fetchFromGitHub, makeWrapper, ibus, anthy, intltool
2−, pkgconfig, glib, gobjectIntrospection
3−, python3, pygobject3, gtk3, libtool, automake, autoconf
1+{ stdenv, fetchurl, intltool, pkgconfig
2+, anthy, ibus, glib, gobjectIntrospection, gtk3, python3, pygobject3
43}:
54
65stdenv.mkDerivation rec {
@@ -16,28 +15,20 @@ stdenv.mkDerivation rec {
1615 maintainers = with maintainers; [ gebner ericsagnes ];
1716 };
1817
19− preConfigure = "./autogen.sh --prefix=$out";
20−
2118 configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";
2219
2320 buildInputs = [
24− makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection
25− python3 pygobject3 gtk3 libtool automake autoconf
21+ anthy glib gobjectIntrospection gtk3 ibus python3 pygobject3
2622 ];
2723
24+ nativeBuildInputs = [ intltool pkgconfig ];
25+
2826 postFixup = ''
2927 substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
30− for file in "$out"/libexec/*; do # */
31− wrapProgram "$file" \
32− --prefix PYTHONPATH : $PYTHONPATH \
33− --prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
34− done
3528 '';
3629
37− src = fetchFromGitHub {
38− owner = "ibus";
39− repo = "ibus-anthy";
40− rev = version;
41− sha256 = "1laxwpnhgihv4dz5cgcz6d0a0880r93n7039ciz1m53hdzapwi4a";
30+ src = fetchurl {
31+ url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${name}.tar.gz";
32+ sha256 = "1aj7vnfky7izl23xyjky78z3qas3q72l3kr8dnql2lnivsrb8q1y";
4233 };
4334}