1 { lib, stdenv, autoconf, automake, libtool, m4, fetchurl, bash, pkg-config, sqlite }:
3 stdenv.mkDerivation rec {
5 version = "1.4_rev_${rev}";
6 rev = "a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d";
9 url = "https://github.com/Cangjians/libcangjie/archive/${rev}.tar.gz";
10 sha256 = "0i5svvcx099fc9hh5dvr3gpb1041v6vn5fnylxy82zjy239114lg";
13 nativeBuildInputs = [ pkg-config ];
14 buildInputs = [ automake autoconf libtool m4 sqlite ];
16 configureScript = "./autogen.sh";
19 find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';'
25 description = "A C library implementing the Cangjie input method";
27 libcangjie is a library implementing the Cangjie input method.
29 homepage = "http://cangjians.github.io/projects/libcangjie/";
30 license = lib.licenses.lgpl3Plus;
32 maintainers = [ lib.maintainers.linquize ];
33 platforms = lib.platforms.all;