From 3dffb3c4fa9c39828cc3a059b0f61cf304fe0eeb Mon Sep 17 00:00:00 2001 From: Rick van Schijndel Date: Tue, 25 May 2021 21:00:17 +0200 Subject: harfbuzz: nixpkgs-fmt --- pkgs/development/libraries/harfbuzz/default.nix | 31 ++++++++++++++++++------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'pkgs/development/libraries/harfbuzz') diff --git a/pkgs/development/libraries/harfbuzz/default.nix b/pkgs/development/libraries/harfbuzz/default.nix index d2287526278b4..7199a5ad5be3a 100644 --- a/pkgs/development/libraries/harfbuzz/default.nix +++ b/pkgs/development/libraries/harfbuzz/default.nix @@ -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 ]; -- cgit 1.4.1