nixpkgs-suyu/pkgs/development/libraries/fcft/default.nix
sternenseemann eab35e481d fcft: allow to enable and disable text shaping feature
May be interesting to get rid of the HarfBuzz dependency.
2021-01-09 20:55:24 +01:00

36 lines
957 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.2";
src = fetchgit {
url = "https://codeberg.org/dnkl/fcft.git";
rev = version;
sha256 = "0k2i57rakm4g86f7hbhkby8af0vv7v63a70lk3m58mkycpy5q2rm";
};
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 ];
license = licenses.mit;
platforms = with platforms; linux;
};
}