39 lines
988 B
Nix
39 lines
988 B
Nix
{ stdenv, lib, fetchgit, pkg-config, meson, ninja, scdoc
|
|
, freetype, fontconfig, pixman, tllist, check
|
|
, withHarfBuzz ? true
|
|
, harfbuzz
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fcft";
|
|
version = "2.3.3";
|
|
|
|
src = fetchgit {
|
|
url = "https://codeberg.org/dnkl/fcft.git";
|
|
rev = version;
|
|
sha256 = "0314r038jl17hrhc9nrbx30jk0pz8ckbdnizws4r46b1rf4h0b1f";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config meson ninja scdoc ];
|
|
buildInputs = [ freetype fontconfig pixman tllist ]
|
|
++ lib.optional withHarfBuzz harfbuzz;
|
|
checkInputs = [ check ];
|
|
|
|
mesonFlags = [
|
|
"--buildtype=release"
|
|
"-Dtext-shaping=${if withHarfBuzz then "enabled" else "disabled"}"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://codeberg.org/dnkl/fcft";
|
|
description = "Simple library for font loading and glyph rasterization";
|
|
maintainers = with maintainers; [
|
|
fionera
|
|
sternenseemann
|
|
];
|
|
license = licenses.mit;
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|