3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/fcft/default.nix

40 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, lib, fetchzip, pkg-config, meson, ninja, scdoc
, freetype, fontconfig, pixman, tllist, check
, withHarfBuzz ? true
, harfbuzz
}:
2020-07-06 04:07:05 +01:00
stdenv.mkDerivation rec {
pname = "fcft";
version = "2.4.4";
2020-07-06 04:07:05 +01:00
src = fetchzip {
url = "https://codeberg.org/dnkl/fcft/archive/${version}.tar.gz";
sha256 = "0ycc2xy9jhxcxwbfk9d4jdxgf2zsc664phbf859kshb822m3jf57";
2020-07-06 04:07:05 +01:00
};
2021-07-07 22:12:54 +01:00
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;
2020-07-06 04:07:05 +01:00
meta = with lib; {
homepage = "https://codeberg.org/dnkl/fcft";
description = "Simple library for font loading and glyph rasterization";
2021-04-14 16:02:45 +01:00
maintainers = with maintainers; [
fionera
sternenseemann
];
2020-07-06 04:07:05 +01:00
license = licenses.mit;
platforms = with platforms; linux;
};
}