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";
8 # fetchFromGitLab isn't working for some reason
10 url = "https://gitlab.freedesktop.org/cangjie/libcangjie/-/archive/a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d/libcangjie-a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d.tar.gz";
11 sha256 = "sha256-j5IQ0hBefoF8p966YrfZgYCw7ht5twJhYi4l0NneukQ=";
14 nativeBuildInputs = [ pkg-config autoconf automake ];
15 buildInputs = [ libtool m4 sqlite ];
17 configureScript = "./autogen.sh";
20 find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';'
26 description = "C library implementing the Cangjie input method";
28 libcangjie is a library implementing the Cangjie input method.
30 homepage = "https://gitlab.freedesktop.org/cangjie/libcangjie";
31 license = lib.licenses.lgpl3Plus;
33 maintainers = [ lib.maintainers.linquize ];
34 platforms = lib.platforms.all;