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-07-24 12:14:16 +00:00
|
|
|
version = "2.4.4";
|
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-07-24 12:14:16 +00:00
|
|
|
sha256 = "0ycc2xy9jhxcxwbfk9d4jdxgf2zsc664phbf859kshb822m3jf57";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
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;
|
|
|
|
};
|
|
|
|
}
|