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