depot/third_party/nixpkgs/pkgs/development/libraries/fcft/default.nix
Default email 42c9938f11 Project import generated by Copybara.
GitOrigin-RevId: dcdf30a78a523296b5f9d44fb67afac485b64737
2021-04-15 02:37:46 +02:00

39 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;
};
}