1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 pkg-config,
6 meson,
7 ninja,
8 freetype,
9 harfbuzz,
10 fribidi,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "libraqm";
15 version = "0.10.3";
16
17 src = fetchFromGitHub {
18 owner = "HOST-Oman";
19 repo = "libraqm";
20 rev = "v${version}";
21 sha256 = "sha256-URW29aEONbMN/DQ6mkKksnwtbIL+SGm5VvKsC9h5MH4=";
22 };
23
24 buildInputs = [
25 freetype
26 harfbuzz
27 fribidi
28 ];
29
30 nativeBuildInputs = [
31 pkg-config
32 meson
33 ninja
34 ];
35
36 doCheck = true;
37
38 meta = with lib; {
39 description = "Library for complex text layout";
40 homepage = "https://github.com/HOST-Oman/libraqm";
41 license = licenses.mit;
42 maintainers = with maintainers; [ sifmelcara ];
43 platforms = platforms.all;
44 };
45}