autotier: init at 1.2.0, lib45d: init at 0.3.6, nixos/autotierfs: init module (...
[NixPkgs.git] / pkgs / tools / inputmethods / ibus-engines / ibus-uniemoji / default.nix
blobd273629860913c1ce7cbed522630abf7151d2701
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   gobject-introspection,
6   wrapGAppsHook3,
7   python3,
8   ibus,
9 }:
11 let
12   python = python3.withPackages (
13     ps: with ps; [
14       pygobject3
15       (toPythonModule ibus)
16       pyxdg
17       levenshtein
18     ]
19   );
21 stdenv.mkDerivation rec {
22   pname = "ibus-uniemoji";
23   version = "0.6.0";
25   src = fetchFromGitHub {
26     owner = "salty-horse";
27     repo = "ibus-uniemoji";
28     rev = "v${version}";
29     sha256 = "121zh3q0li1k537fcvbd4ns4jgl9bbb9gm9ihy8cfxgirv38lcfa";
30   };
32   patches = [
33     # Do not run wrapper script with Python,
34     # the wrapped script will have Python in shebang anyway.
35     ./allow-wrapping.patch
36   ];
38   nativeBuildInputs = [
39     wrapGAppsHook3
40     gobject-introspection
41   ];
43   buildInputs = [
44     python
45     ibus
46   ];
48   makeFlags = [
49     "PREFIX=${placeholder "out"}"
50     "SYSCONFDIR=${placeholder "out"}/etc"
51     "PYTHON=${python.interpreter}"
52   ];
54   postFixup = ''
55     wrapGApp $out/share/ibus-uniemoji/uniemoji.py
56   '';
58   meta = with lib; {
59     isIbusEngine = true;
60     description = "Input method (ibus) for entering unicode symbols and emoji by name";
61     homepage = "https://github.com/salty-horse/ibus-uniemoji";
62     license = with licenses; [
63       gpl3
64       mit
65     ];
66     platforms = platforms.linux;
67     maintainers = with maintainers; [ aske ];
68   };