ibus-wrapper: init

+28
+24
pkgs/tools/inputmethods/ibus/wrapper.nix
··· 1 + { stdenv, buildEnv, ibus, makeWrapper, plugins, hicolor_icon_theme }: 2 + 3 + let 4 + drv = buildEnv { 5 + name = "ibus-with-plugins-" + (builtins.parseDrvName ibus.name).version; 6 + 7 + paths = [ ibus hicolor_icon_theme ] ++ plugins; 8 + 9 + postBuild = '' 10 + # TODO: This could be avoided if buildEnv could be forced to create all directories 11 + if [ -L $out/bin ]; then 12 + rm $out/bin 13 + mkdir $out/bin 14 + for i in ${ibus}/bin/*; do 15 + ln -s $i $out/bin 16 + done 17 + fi 18 + wrapProgram $out/bin/ibus \ 19 + --set IBUS_COMPONENT_PATH "$out/share/ibus/component/" 20 + wrapProgram $out/bin/ibus-daemon \ 21 + --set IBUS_COMPONENT_PATH "$out/share/ibus/component/" 22 + ''; 23 + }; 24 + in stdenv.lib.overrideDerivation drv (x : { buildInputs = x.buildInputs ++ [ makeWrapper ]; })
+4
pkgs/top-level/all-packages.nix
··· 1190 1190 1191 1191 }; 1192 1192 1193 + ibus-with-plugins = callPackage ../tools/inputmethods/ibus/wrapper.nix { 1194 + plugins = [ ]; 1195 + }; 1196 + 1193 1197 brotli = callPackage ../tools/compression/brotli { }; 1194 1198 1195 1199 biosdevname = callPackage ../tools/networking/biosdevname { };