lol
1{ stdenv, autoconf, automake, libtool, m4, fetchurl, bash, pkgconfig, sqlite }:
2
3stdenv.mkDerivation rec {
4 name = "libcangjie-${version}";
5 version = "1.4_rev_${rev}";
6 rev = "a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d";
7
8 src = fetchurl {
9 url = "https://github.com/Cangjians/libcangjie/archive/${rev}.tar.gz";
10 sha256 = "0i5svvcx099fc9hh5dvr3gpb1041v6vn5fnylxy82zjy239114lg";
11 };
12
13 buildInputs = [ automake autoconf libtool m4 pkgconfig sqlite ];
14
15 configureScript = "./autogen.sh";
16
17 preConfigure = ''
18 find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';'
19 '';
20
21 doCheck = true;
22
23 meta = {
24 description = "A C library implementing the Cangjie input method";
25 longDescription = ''
26 libcangjie is a library implementing the Cangjie input method.
27 '';
28 homepage = http://cangjians.github.io/projects/libcangjie/;
29 license = stdenv.lib.licenses.lgpl3Plus;
30
31 maintainers = [ stdenv.lib.maintainers.linquize ];
32 platforms = stdenv.lib.platforms.all;
33 };
34}