forked from mirrors/nixpkgs
ba803ee57b
Fixes rendering of bitmap font with freetype >= 2.11 (so this issue did not affect us). https://codeberg.org/dnkl/fcft/releases/tag/2.4.4
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ stdenv, lib, fetchzip, pkg-config, meson, ninja, scdoc
|
|
, freetype, fontconfig, pixman, tllist, check
|
|
, withHarfBuzz ? true
|
|
, harfbuzz
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "fcft";
|
|
version = "2.4.4";
|
|
|
|
src = fetchzip {
|
|
url = "https://codeberg.org/dnkl/fcft/archive/${version}.tar.gz";
|
|
sha256 = "0ycc2xy9jhxcxwbfk9d4jdxgf2zsc664phbf859kshb822m3jf57";
|
|
};
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
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;
|
|
};
|
|
}
|