ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
36 lines
957 B
Nix
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;
|
|
};
|
|
}
|