summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/ibus-table-others/default.nix
blob: f356bcdee85d8184e58474a26e5755cf2b3e7f85 (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
{ stdenv, fetchurl, ibus, ibus-table, pkgconfig, python3 }:

stdenv.mkDerivation rec {
  name = "ibus-table-others-${version}";
  version = "1.3.7";

  src = fetchurl {
    url = "https://github.com/moebiuscurve/ibus-table-others/releases/download/${version}/${name}.tar.gz";
    sha256 = "0vmz82il796062jbla5pawsr5dqyhs7ald7xjp84zfccc09dg9kx";
  };

  buildInputs = [ ibus ibus-table pkgconfig python3 ];

  preBuild = ''
    export HOME=/tmp/ibus-table-others
  '';

  postFixup = ''
    rm -rf /tmp/ibus-table-others
  '';

  meta = with stdenv.lib; {
    description = "Various table-based input methods for IBus";
    homepage    = https://github.com/moebiuscurve/ibus-table-others;
    license     = licenses.gpl3;
    platforms   = platforms.linux;
    maintainers = with maintainers; [ mudri ];
  };
}