depot/third_party/nixpkgs/pkgs/development/libraries/libthai/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

31 lines
840 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, installShellFiles, pkg-config, libdatrie }:
stdenv.mkDerivation rec {
pname = "libthai";
version = "0.1.28";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "https://github.com/tlwg/libthai/releases/download/v${version}/libthai-${version}.tar.xz";
sha256 = "04g93bgxrcnay9fglpq2lj9nr7x1xh06i60m7haip8as9dxs3q7z";
};
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; [ SuperSandro2000 ];
};
}