2014-01-30 14:38:34 +00:00
|
|
|
{ stdenv, autoconf, automake, libtool, m4, fetchurl, bash, pkgconfig, sqlite }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-05 13:52:59 +01:00
|
|
|
name = "libcangjie-${version}";
|
|
|
|
version = "1.4_rev_${rev}";
|
|
|
|
rev = "a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d";
|
2014-01-30 14:38:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-05 13:52:59 +01:00
|
|
|
url = "https://github.com/Cangjians/libcangjie/archive/${rev}.tar.gz";
|
|
|
|
sha256 = "0i5svvcx099fc9hh5dvr3gpb1041v6vn5fnylxy82zjy239114lg";
|
2014-01-30 14:38:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ automake autoconf libtool m4 pkgconfig sqlite ];
|
|
|
|
|
|
|
|
configureScript = "./autogen.sh";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';'
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A C library implementing the Cangjie input method";
|
|
|
|
longDescription = ''
|
|
|
|
libcangjie is a library implementing the Cangjie input method.
|
|
|
|
'';
|
|
|
|
homepage = http://cangjians.github.io/projects/libcangjie/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl3Plus;
|
2014-01-30 14:38:34 +00:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.linquize ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|