ibus: consolidate wrappers
This commit is contained in:
parent
070dccae7b
commit
ab746ec902
|
@ -1,6 +1,5 @@
|
|||
{ stdenv, fetchFromGitHub, makeWrapper, ibus, anthy, intltool
|
||||
, pkgconfig, glib, gobjectIntrospection
|
||||
, python3, pygobject3, gtk3, libtool, automake, autoconf
|
||||
{ stdenv, fetchurl, intltool, pkgconfig
|
||||
, anthy, ibus, glib, gobjectIntrospection, gtk3, python3, pygobject3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -16,28 +15,20 @@ stdenv.mkDerivation rec {
|
|||
maintainers = with maintainers; [ gebner ericsagnes ];
|
||||
};
|
||||
|
||||
preConfigure = "./autogen.sh --prefix=$out";
|
||||
|
||||
configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";
|
||||
|
||||
buildInputs = [
|
||||
makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection
|
||||
python3 pygobject3 gtk3 libtool automake autoconf
|
||||
anthy glib gobjectIntrospection gtk3 ibus python3 pygobject3
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ intltool pkgconfig ];
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
||||
for file in "$out"/libexec/*; do # */
|
||||
wrapProgram "$file" \
|
||||
--prefix PYTHONPATH : $PYTHONPATH \
|
||||
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
|
||||
done
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ibus";
|
||||
repo = "ibus-anthy";
|
||||
rev = version;
|
||||
sha256 = "1laxwpnhgihv4dz5cgcz6d0a0880r93n7039ciz1m53hdzapwi4a";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${name}.tar.gz";
|
||||
sha256 = "1aj7vnfky7izl23xyjky78z3qas3q72l3kr8dnql2lnivsrb8q1y";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{ stdenv, fetchurl, makeWrapper
|
||||
, intltool, pkgconfig
|
||||
{ stdenv, fetchurl, intltool, pkgconfig
|
||||
, gtk3, ibus, libhangul, librsvg, python3, pygobject3
|
||||
}:
|
||||
|
||||
|
@ -9,20 +8,12 @@ stdenv.mkDerivation rec {
|
|||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/choehwanjin/ibus-hangul/releases/download/${version}/${name}.tar.gz";
|
||||
sha256 = null;
|
||||
sha256 = "120p9w7za6hi521hz8q235fkl4i3p1qqr8nqm4a3kxr0pcq40bd2";
|
||||
};
|
||||
|
||||
buildInputs = [ gtk3 ibus libhangul python3 pygobject3 ];
|
||||
|
||||
nativeBuildInputs = [ intltool makeWrapper pkgconfig ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/ibus-setup-hangul \
|
||||
--prefix PYTHONPATH : $PYTHONPATH \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
||||
--prefix GDK_PIXBUF_MODULE_FILE : ${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
|
||||
--prefix LD_LIBRARY_PATH : ${libhangul}/lib
|
||||
'';
|
||||
nativeBuildInputs = [ intltool pkgconfig ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isIbusEngine = true;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, fetchurl, makeWrapper, ibus, pkgconfig, python3, pygobject3
|
||||
, gtk3, atk, dconf, gobjectIntrospection }:
|
||||
{ stdenv, fetchurl, pkgconfig
|
||||
, gtk3, dconf, gobjectIntrospection, ibus, python3, pygobject3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ibus-table-${version}";
|
||||
|
@ -25,29 +25,10 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
buildInputs = [
|
||||
gtk3 dconf gobjectIntrospection
|
||||
ibus
|
||||
pkgconfig
|
||||
python3 pygobject3
|
||||
dconf gtk3 gobjectIntrospection ibus python3 pygobject3
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
preFixup = ''
|
||||
for prog in "$out/bin"/*; do #*/
|
||||
wrapProgram "$prog" \
|
||||
--prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
|
||||
--prefix PYTHONPATH : "$PYTHONPATH" \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
|
||||
--prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules"
|
||||
done
|
||||
|
||||
for prog in "$out/libexec"/*; do #*/
|
||||
wrapProgram "$prog" \
|
||||
--prefix PYTHONPATH : "$PYTHONPATH" \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0"
|
||||
done
|
||||
'';
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isIbusEngine = true;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ stdenv, runCommand, makeWrapper, lndir
|
||||
, dconf, hicolor_icon_theme, ibus, plugins
|
||||
, dconf, hicolor_icon_theme, ibus, librsvg, plugins
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -23,6 +23,7 @@ let
|
|||
|
||||
for prog in ibus ibus-daemon ibus-setup; do
|
||||
wrapProgram "$out/bin/$prog" \
|
||||
--prefix GDK_PIXBUF_MODULE_FILE : ${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
|
||||
--prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules" \
|
||||
--set IBUS_COMPONENT_PATH "$out/share/ibus/component/" \
|
||||
|
|
Loading…
Reference in a new issue