ibus-wrapper: init

This commit is contained in:
Eric Sagnes 2016-02-10 15:57:05 +09:00
parent ca2f9a4f15
commit 7ec5dc9234
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ stdenv, buildEnv, ibus, makeWrapper, plugins, hicolor_icon_theme }:
let
drv = buildEnv {
name = "ibus-with-plugins-" + (builtins.parseDrvName ibus.name).version;
paths = [ ibus hicolor_icon_theme ] ++ plugins;
postBuild = ''
# TODO: This could be avoided if buildEnv could be forced to create all directories
if [ -L $out/bin ]; then
rm $out/bin
mkdir $out/bin
for i in ${ibus}/bin/*; do
ln -s $i $out/bin
done
fi
wrapProgram $out/bin/ibus \
--set IBUS_COMPONENT_PATH "$out/share/ibus/component/"
wrapProgram $out/bin/ibus-daemon \
--set IBUS_COMPONENT_PATH "$out/share/ibus/component/"
'';
};
in stdenv.lib.overrideDerivation drv (x : { buildInputs = x.buildInputs ++ [ makeWrapper ]; })

View File

@ -1190,6 +1190,10 @@ let
}; };
ibus-with-plugins = callPackage ../tools/inputmethods/ibus/wrapper.nix {
plugins = [ ];
};
brotli = callPackage ../tools/compression/brotli { }; brotli = callPackage ../tools/compression/brotli { };
biosdevname = callPackage ../tools/networking/biosdevname { }; biosdevname = callPackage ../tools/networking/biosdevname { };