summary refs log tree commit diff
path: root/pkgs/development/libraries/fcft
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-12-18 14:47:35 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-01-09 20:55:24 +0100
commiteab35e481d7cf9af1fb0d8f6028c75b070ab43db (patch)
treee5b21f048bde966926e358e17d48529d59efd495 /pkgs/development/libraries/fcft
parent371062f8ea87cc88d09b80d8981e19dbafacc901 (diff)
downloadnixpkgs-eab35e481d7cf9af1fb0d8f6028c75b070ab43db.tar
nixpkgs-eab35e481d7cf9af1fb0d8f6028c75b070ab43db.tar.gz
nixpkgs-eab35e481d7cf9af1fb0d8f6028c75b070ab43db.tar.bz2
nixpkgs-eab35e481d7cf9af1fb0d8f6028c75b070ab43db.tar.lz
nixpkgs-eab35e481d7cf9af1fb0d8f6028c75b070ab43db.tar.xz
nixpkgs-eab35e481d7cf9af1fb0d8f6028c75b070ab43db.tar.zst
nixpkgs-eab35e481d7cf9af1fb0d8f6028c75b070ab43db.zip
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.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/libraries/fcft/default.nix b/pkgs/development/libraries/fcft/default.nix
index cbcef07de32..fd6f26c9789 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;