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