3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, gettext
, pkg-config
, wrapGAppsHook
, anthy
, ibus
, glib
, gobject-introspection
, gtk3
, python3
2016-02-26 23:31:14 +00:00
}:
2015-03-10 18:28:36 +00:00
stdenv.mkDerivation rec {
pname = "ibus-anthy";
2021-12-31 01:34:23 +00:00
version = "1.5.14";
2015-03-10 18:28:36 +00:00
src = fetchurl {
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${pname}-${version}.tar.gz";
2021-12-31 01:34:23 +00:00
sha256 = "sha256-yGlNoY0LiRpI9NdaDezjfsvKbRsay2QQGnqEytEEbZs=";
2015-03-10 18:28:36 +00:00
};
2016-02-26 23:31:14 +00:00
buildInputs = [
anthy
glib
gtk3
ibus
(python3.withPackages (ps: [
ps.pygobject3
(ps.toPythonModule ibus)
]))
];
nativeBuildInputs = [
gettext
gobject-introspection
pkg-config
wrapGAppsHook
2016-02-26 23:31:14 +00:00
];
2015-03-10 18:28:36 +00:00
configureFlags = [
"--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t"
];
2016-02-28 15:30:09 +00:00
2015-03-10 18:28:36 +00:00
postFixup = ''
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
2015-03-10 18:28:36 +00:00
'';
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 ];
2015-03-10 18:28:36 +00:00
};
}