depot/third_party/nixpkgs/pkgs/development/libraries/libcangjie/default.nix
Default email 3e7541c14f Project import generated by Copybara.
GitOrigin-RevId: ff377a78794d412a35245e05428c8f95fef3951f
2022-01-07 12:07:37 +08:00

37 lines
1 KiB
Nix

{ lib, stdenv, autoconf, automake, libtool, m4, fetchFromGitLab, bash, pkg-config, sqlite }:
stdenv.mkDerivation rec {
pname = "libcangjie";
version = "1.4_rev_${rev}";
rev = "a73c1d8783f7b6526fd9b2cc44a669ffa5518d3d";
src = fetchFromGitLab {
owner = "Cangjians";
repo = "libcangjie";
inherit rev;
sha256 = "sha256-R7WqhxciaTxhTiwPp2EUNTOh477gi/Pj3VpMtat5qXw=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ automake autoconf libtool m4 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 = "https://gitlab.freedesktop.org/cangjie/libcangjie";
license = lib.licenses.lgpl3Plus;
maintainers = [ lib.maintainers.linquize ];
platforms = lib.platforms.all;
};
}