summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/ibus-engines/ibus-uniemoji/default.nix
blob: 161982ac6186a773785f86a7e1a2c96fe192712e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub
, python3Packages
}:

stdenv.mkDerivation rec {
  name = "ibus-uniemoji-${version}";
  version = "0.6.0";

  src = fetchFromGitHub {
    owner = "salty-horse";
    repo = "ibus-uniemoji";
    rev = "v${version}";
    sha256 = "121zh3q0li1k537fcvbd4ns4jgl9bbb9gm9ihy8cfxgirv38lcfa";
  };

  propagatedBuildInputs = with python3Packages; [ pyxdg python-Levenshtein ];

  makeFlags = [ "PREFIX=$(out)" "SYSCONFDIR=$(out)/etc"
                "PYTHON=${python3Packages.python.interpreter}"
              ];

  meta = with stdenv.lib; {
    isIbusEngine = true;
    description  = "Input method (ibus) for entering unicode symbols and emoji by name";
    homepage     = "https://github.com/salty-horse/ibus-uniemoji";
    license      = with licenses; [ gpl3 mit ];
    platforms    = platforms.linux;
    maintainers  = with maintainers; [ aske ];
  };
}