2021-05-18 20:31:53 +01:00
|
|
|
{ stdenv, lib, fetchzip, pkg-config, meson, ninja, scdoc
|
2020-12-18 13:47:35 +00:00
|
|
|
, freetype, fontconfig, pixman, tllist, check
|
|
|
|
, withHarfBuzz ? true
|
|
|
|
, harfbuzz
|
|
|
|
}:
|
2020-07-06 04:07:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fcft";
|
2021-07-07 21:20:17 +01:00
|
|
|
version = "2.4.2";
|
2020-07-06 04:07:05 +01:00
|
|
|
|
2021-05-18 20:31:53 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://codeberg.org/dnkl/fcft/archive/${version}.tar.gz";
|
2021-07-07 21:20:17 +01:00
|
|
|
sha256 = "01zvc8519fcg14nmcx3iqap9jnspcnr6pvlr59ipqxs0jprnrxl2";
|
2020-07-06 04:07:05 +01:00
|
|
|
};
|
|
|
|
|
2020-08-15 00:31:43 +01:00
|
|
|
nativeBuildInputs = [ pkg-config meson ninja scdoc ];
|
2020-12-18 13:47:35 +00:00
|
|
|
buildInputs = [ freetype fontconfig pixman tllist ]
|
|
|
|
++ lib.optional withHarfBuzz harfbuzz;
|
2020-08-17 13:49:42 +01:00
|
|
|
checkInputs = [ check ];
|
|
|
|
|
2020-12-18 13:47:35 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"--buildtype=release"
|
|
|
|
"-Dtext-shaping=${if withHarfBuzz then "enabled" else "disabled"}"
|
|
|
|
];
|
2020-08-17 13:49:42 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
2020-07-06 04:07:05 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://codeberg.org/dnkl/fcft";
|
|
|
|
description = "Simple library for font loading and glyph rasterization";
|
2021-04-14 16:02:45 +01:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
fionera
|
|
|
|
sternenseemann
|
|
|
|
];
|
2020-07-06 04:07:05 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|