mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
ibus-wrapper: init
This commit is contained in:
parent
ca2f9a4f15
commit
7ec5dc9234
24
pkgs/tools/inputmethods/ibus/wrapper.nix
Normal file
24
pkgs/tools/inputmethods/ibus/wrapper.nix
Normal 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 ]; })
|
@ -1190,6 +1190,10 @@ let
|
||||
|
||||
};
|
||||
|
||||
ibus-with-plugins = callPackage ../tools/inputmethods/ibus/wrapper.nix {
|
||||
plugins = [ ];
|
||||
};
|
||||
|
||||
brotli = callPackage ../tools/compression/brotli { };
|
||||
|
||||
biosdevname = callPackage ../tools/networking/biosdevname { };
|
||||
|
Loading…
Reference in New Issue
Block a user