Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, makeWrapper, installShellFiles, pkg-config, libdatrie }: 2 3stdenv.mkDerivation rec { 4 pname = "libthai"; 5 version = "0.1.29"; 6 7 outputs = [ "out" "dev" ]; 8 9 src = fetchurl { 10 url = "https://github.com/tlwg/libthai/releases/download/v${version}/libthai-${version}.tar.xz"; 11 sha256 = "sha256-/IDMfctQ4RMCtBfOvSTy0wqLmHKS534AMme5EA0PS80="; 12 }; 13 14 strictDeps = true; 15 16 nativeBuildInputs = [ installShellFiles (lib.getBin libdatrie) pkg-config ]; 17 18 buildInputs = [ libdatrie ]; 19 20 postInstall = '' 21 installManPage man/man3/*.3 22 ''; 23 24 meta = with lib; { 25 homepage = "https://linux.thai.net/projects/libthai/"; 26 description = "Set of Thai language support routines"; 27 license = licenses.lgpl21Plus; 28 platforms = platforms.unix; 29 maintainers = with maintainers; [ SuperSandro2000 ]; 30 }; 31}