2021-01-22 00:00:13 +07:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, installShellFiles, pkg-config, libdatrie }:
|
2020-10-29 18:06:48 +01:00
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "libthai";
|
2021-12-30 19:23:33 +00:00
|
|
|
version = "0.1.29";
|
2020-10-29 18:06:48 +01:00
|
|
|
|
2021-02-16 20:59:59 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
2020-10-29 18:06:48 +01:00
|
|
|
src = fetchurl {
|
|
|
|
|
url = "https://github.com/tlwg/libthai/releases/download/v${version}/libthai-${version}.tar.xz";
|
2021-12-30 19:23:33 +00:00
|
|
|
sha256 = "sha256-/IDMfctQ4RMCtBfOvSTy0wqLmHKS534AMme5EA0PS80=";
|
2020-10-29 18:06:48 +01:00
|
|
|
};
|
|
|
|
|
|
2021-02-07 19:35:01 -05:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
2021-02-16 20:59:59 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles (lib.getBin libdatrie) pkg-config ];
|
2020-10-29 18:06:48 +01:00
|
|
|
|
|
|
|
|
buildInputs = [ libdatrie ];
|
|
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
|
installManPage man/man3/*.3
|
|
|
|
|
'';
|
|
|
|
|
|
2021-01-22 00:00:13 +07:00
|
|
|
meta = with lib; {
|
2020-10-29 18:06:48 +01:00
|
|
|
homepage = "https://linux.thai.net/projects/libthai/";
|
|
|
|
|
description = "Set of Thai language support routines";
|
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
|
platforms = platforms.unix;
|
2023-07-23 19:30:22 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-08-08 11:51:00 +02:00
|
|
|
pkgConfigModules = [ "libthai" ];
|
2020-10-29 18:06:48 +01:00
|
|
|
};
|
|
|
|
|
}
|