mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
40 lines
988 B
Nix
40 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;
|
|
};
|
|
}
|