
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, gettext
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
, anthy
|
|
, ibus
|
|
, glib
|
|
, gobject-introspection
|
|
, gtk3
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ibus-anthy";
|
|
version = "1.5.16";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-FVIiFLWK2ISsydmx2hPxXbfc12w7GKiFCQRuXsYT0a4=";
|
|
};
|
|
|
|
buildInputs = [
|
|
anthy
|
|
glib
|
|
gtk3
|
|
ibus
|
|
(python3.withPackages (ps: [
|
|
ps.pygobject3
|
|
(ps.toPythonModule ibus)
|
|
]))
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
gobject-introspection
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
configureFlags = [
|
|
"--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t"
|
|
];
|
|
|
|
postFixup = ''
|
|
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
|
'';
|
|
|
|
meta = with lib; {
|
|
isIbusEngine = true;
|
|
description = "IBus interface to the anthy input method";
|
|
homepage = "https://github.com/fujiwarat/ibus-anthy";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ gebner ericsagnes ];
|
|
};
|
|
}
|