···8 darwinMinVersionHook,
9 dbus,
10 fetchFromGitHub,
11+ ibusMinimal,
12 installShellFiles,
13 libGL,
14 libayatana-appindicator,
···104 apple-sdk_11
105 ]
106 ++ lib.optionals ibusSupport [
107+ # sdl3 only uses some constants of the ibus headers
108+ # it never actually loads the library
109+ # thus, it also does not have to care about gtk integration,
110+ # so using ibusMinimal avoids an unnecessarily large closure here.
111+ ibusMinimal
112 ]
113 ++ lib.optional waylandSupport zenity;
114
+74-48
pkgs/tools/inputmethods/ibus/default.nix
···27 python3,
28 json-glib,
29 libnotify ? null,
30- enableUI ? true,
31- withWayland ? true,
32 libxkbcommon,
33 wayland,
34 wayland-protocols,
···36 buildPackages,
37 runtimeShell,
38 nixosTests,
000039}:
4041let
···61 '';
62in
6364-stdenv.mkDerivation rec {
65 pname = "ibus";
66 version = "1.5.32";
6768 src = fetchFromGitHub {
69 owner = "ibus";
70 repo = "ibus";
71- tag = version;
72 hash = "sha256-Rp2Aw2C2LXMBp8++pnZtPHiPoFDERpkDsKd0E//twuY=";
73 };
74···86 ./build-without-dbus-launch.patch
87 ];
8889- outputs = [
90- "out"
91- "dev"
92- "installedTests"
93- ];
0009495 postPatch = ''
96 # Maintainer does not want to create separate tarballs for final release candidate and release versions,
···107108 preAutoreconf = "touch ChangeLog";
109110- configureFlags = [
111- # The `AX_PROG_{CC,CXX}_FOR_BUILD` autoconf macros can pick up unwrapped GCC binaries,
112- # so we set `{CC,CXX}_FOR_BUILD` to override that behavior.
113- # https://github.com/NixOS/nixpkgs/issues/21751
114- "CC_FOR_BUILD=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc"
115- "CXX_FOR_BUILD=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}c++"
116- "GLIB_COMPILE_RESOURCES=${lib.getDev buildPackages.glib}/bin/glib-compile-resources"
117- "PKG_CONFIG_VAPIGEN_VAPIGEN=${lib.getBin buildPackages.vala}/bin/vapigen"
118- "--disable-memconf"
119- (lib.enableFeature (dconf != null) "dconf")
120- (lib.enableFeature (libnotify != null) "libnotify")
121- (lib.enableFeature withWayland "wayland")
122- (lib.enableFeature enableUI "ui")
123- "--disable-gtk2"
124- "--enable-gtk4"
125- "--enable-install-tests"
126- "--with-unicode-emoji-dir=${unicode-emoji}/share/unicode/emoji"
127- "--with-emoji-annotation-dir=${cldr-annotations}/share/unicode/cldr/common/annotations"
128- "--with-python=${python3BuildEnv.interpreter}"
129- "--with-ucd-dir=${unicode-character-database}/share/unicode"
130- ];
000000000131132- makeFlags = [
133 "test_execsdir=${placeholder "installedTests"}/libexec/installed-tests/ibus"
134 "test_sourcesdir=${placeholder "installedTests"}/share/installed-tests/ibus"
135 ];
···146 makeWrapper
147 pkg-config
148 python3BuildEnv
00149 vala
000150 wrapGAppsHook3
151- dbus-launch
152- gobject-introspection
153 ]
154 ++ lib.optionals withWayland [
155 wayland-scanner
···164 dbus
165 systemd
166 dconf
167- gdk-pixbuf
168 python3.pkgs.pygobject3 # for pygobject overrides
00000169 gtk3
170 gtk4
171- isocodes
172- json-glib
173- libnotify
174 libdbusmenu-gtk3
0175 vala # for share/vala/Makefile.vapigen (PKG_CONFIG_VAPIGEN_VAPIGEN)
176 ]
177 ++ lib.optionals withWayland [
···181 ];
182183 enableParallelBuilding = true;
0184185 doCheck = false; # requires X11 daemon
0186 doInstallCheck = true;
187- installCheckPhase = ''
188- $out/bin/ibus version
189- '';
190191- postInstall = ''
192 # It has some hardcoded FHS paths and also we do not use it
193 # since we set up the environment in NixOS tests anyway.
194 moveToOutput "bin/ibus-desktop-testing-runner" "$installedTests"
195 '';
196197- postFixup = ''
198 # set necessary environment also for tests
199 for f in $installedTests/libexec/installed-tests/ibus/*; do
200 wrapGApp $f
···202 '';
203204 passthru = {
205- tests = {
206 installed-tests = nixosTests.installed-tests.ibus;
207 };
0208 };
209210- meta = with lib; {
0211 homepage = "https://github.com/ibus/ibus";
212 description = "Intelligent Input Bus, input method framework";
213- license = licenses.lgpl21Plus;
214- platforms = platforms.linux;
215- maintainers = with maintainers; [ ttuegel ];
216 };
217-}