depot/third_party/nixpkgs/pkgs/development/libraries/fcft/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

39 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.2";
src = fetchzip {
url = "https://codeberg.org/dnkl/fcft/archive/${version}.tar.gz";
sha256 = "01zvc8519fcg14nmcx3iqap9jnspcnr6pvlr59ipqxs0jprnrxl2";
};
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;
};
}