diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-12-18 14:47:35 +0100 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-01-09 20:55:24 +0100 |
commit | eab35e481d7cf9af1fb0d8f6028c75b070ab43db (patch) | |
tree | e5b21f048bde966926e358e17d48529d59efd495 /pkgs/development/libraries/fcft | |
parent | 371062f8ea87cc88d09b80d8981e19dbafacc901 (diff) |
fcft: allow to enable and disable text shaping feature
May be interesting to get rid of the HarfBuzz dependency.
Diffstat (limited to 'pkgs/development/libraries/fcft')
-rw-r--r-- | pkgs/development/libraries/fcft/default.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/libraries/fcft/default.nix b/pkgs/development/libraries/fcft/default.nix index cbcef07de32bb..fd6f26c9789fa 100644 --- a/pkgs/development/libraries/fcft/default.nix +++ b/pkgs/development/libraries/fcft/default.nix @@ -1,5 +1,8 @@ { stdenv, lib, fetchgit, pkg-config, meson, ninja, scdoc -,freetype, fontconfig, harfbuzz, pixman, tllist, check }: +, freetype, fontconfig, pixman, tllist, check +, withHarfBuzz ? true +, harfbuzz +}: stdenv.mkDerivation rec { pname = "fcft"; @@ -12,10 +15,14 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ pkg-config meson ninja scdoc ]; - buildInputs = [ freetype fontconfig pixman tllist harfbuzz ]; + buildInputs = [ freetype fontconfig pixman tllist ] + ++ lib.optional withHarfBuzz harfbuzz; checkInputs = [ check ]; - mesonFlags = [ "--buildtype=release" ]; + mesonFlags = [ + "--buildtype=release" + "-Dtext-shaping=${if withHarfBuzz then "enabled" else "disabled"}" + ]; doCheck = true; |