2022-01-04 15:38:13 +00:00
|
|
|
{ lib, stdenv, autoconf, automake, libtool, m4, fetchFromGitLab, bash, pkg-config, sqlite }:
|
2014-01-30 14:38:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libcangjie";
|
2015-09-05 13:52:59 +01:00
|
|
|
version = "1.4_rev_${rev}";
|
|
|
|
rev = "a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d";
|
2014-01-30 14:38:34 +00:00
|
|
|
|
2022-01-04 15:38:13 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "Cangjians";
|
|
|
|
repo = "libcangjie";
|
|
|
|
inherit rev;
|
|
|
|
sha256 = "sha256-R7WqhxciaTxhTiwPp2EUNTOh477gi/Pj3VpMtat5qXw=";
|
2014-01-30 14:38:34 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ automake autoconf libtool m4 sqlite ];
|
2014-01-30 14:38:34 +00:00
|
|
|
|
|
|
|
configureScript = "./autogen.sh";
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2014-01-30 14:38:34 +00:00
|
|
|
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.
|
|
|
|
'';
|
2022-01-04 15:38:13 +00:00
|
|
|
homepage = "https://gitlab.freedesktop.org/cangjie/libcangjie";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl3Plus;
|
2014-01-30 14:38:34 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = [ lib.maintainers.linquize ];
|
|
|
|
platforms = lib.platforms.all;
|
2014-01-30 14:38:34 +00:00
|
|
|
};
|
|
|
|
}
|