harfbuzz: nixpkgs-fmt

This commit is contained in:
Rick van Schijndel 2021-05-25 21:00:17 +02:00 committed by sterni
parent 9a5a29cfc6
commit 3dffb3c4fa

View File

@ -1,13 +1,26 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, glib, freetype, cairo, libintl
, meson, ninja
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, glib
, freetype
, cairo
, libintl
, meson
, ninja
, gobject-introspection
, icu, graphite2, harfbuzz # The icu variant uses and propagates the non-icu one.
, ApplicationServices, CoreText
, icu
, graphite2
, harfbuzz # The icu variant uses and propagates the non-icu one.
, ApplicationServices
, CoreText
, withCoreText ? false
, withIcu ? false # recommended by upstream as default, but most don't needed and it's big
, withGraphite2 ? true # it is small and major distros do include it
, python3
, gtk-doc, docbook-xsl-nons, docbook_xml_dtd_43
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
}:
let
@ -21,9 +34,9 @@ stdenv.mkDerivation {
name = "harfbuzz${optionalString withIcu "-icu"}-${version}";
src = fetchFromGitHub {
owner = "harfbuzz";
repo = "harfbuzz";
rev = version;
owner = "harfbuzz";
repo = "harfbuzz";
rev = version;
sha256 = "sha256-JnvOFGK2HWIpzuwgZtyt0IfKfnoXD1LMeVb3RzMmyY4=";
};
@ -60,7 +73,7 @@ stdenv.mkDerivation {
buildInputs = [ glib freetype cairo ] # recommended by upstream
++ lib.optionals withCoreText [ ApplicationServices CoreText ];
propagatedBuildInputs = []
propagatedBuildInputs = [ ]
++ optional withGraphite2 graphite2
++ optionals withIcu [ icu harfbuzz ];