depot/third_party/nixpkgs/pkgs/development/libraries/libthai/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

32 lines
861 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, installShellFiles, pkg-config, libdatrie }:
stdenv.mkDerivation rec {
pname = "libthai";
version = "0.1.29";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "https://github.com/tlwg/libthai/releases/download/v${version}/libthai-${version}.tar.xz";
sha256 = "sha256-/IDMfctQ4RMCtBfOvSTy0wqLmHKS534AMme5EA0PS80=";
};
strictDeps = true;
nativeBuildInputs = [ installShellFiles (lib.getBin libdatrie) pkg-config ];
buildInputs = [ libdatrie ];
postInstall = ''
installManPage man/man3/*.3
'';
meta = with lib; {
homepage = "https://linux.thai.net/projects/libthai/";
description = "Set of Thai language support routines";
license = licenses.lgpl21Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ ];
pkgConfigModules = [ "libthai" ];
};
}