tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ibus-wrapper: init
Eric Sagnes
10 years ago
7ec5dc92
ca2f9a4f
+28
2 changed files
expand all
collapse all
unified
split
pkgs
tools
inputmethods
ibus
wrapper.nix
top-level
all-packages.nix
+24
pkgs/tools/inputmethods/ibus/wrapper.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
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
1191
};
1192
0
0
0
0
1193
brotli = callPackage ../tools/compression/brotli { };
1194
1195
biosdevname = callPackage ../tools/networking/biosdevname { };
···
1190
1191
};
1192
1193
+
ibus-with-plugins = callPackage ../tools/inputmethods/ibus/wrapper.nix {
1194
+
plugins = [ ];
1195
+
};
1196
+
1197
brotli = callPackage ../tools/compression/brotli { };
1198
1199
biosdevname = callPackage ../tools/networking/biosdevname { };