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