From 6463b27df9d8798c05e826ee42e832ec0f8cadc5 Mon Sep 17 00:00:00 2001 From: Justin Humm Date: Wed, 9 Sep 2020 21:57:24 +0200 Subject: [PATCH] fontconfig: build manpages, install them in bin output We exclude man3, as it is pretty large and probably not so relevant. --- pkgs/development/libraries/fontconfig/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/fontconfig/default.nix b/pkgs/development/libraries/fontconfig/default.nix index 72df121200e..e08149903a2 100644 --- a/pkgs/development/libraries/fontconfig/default.nix +++ b/pkgs/development/libraries/fontconfig/default.nix @@ -83,7 +83,6 @@ stdenv.mkDerivation rec { "--sysconfdir=/etc" "--with-arch=${stdenv.hostPlatform.parsed.cpu.name}" "--with-cache-dir=/var/cache/fontconfig" # otherwise the fallback is in $out/ - "--disable-docs" # just <1MB; this is what you get when loading config fails for some reason "--with-default-fonts=${dejavu_fonts.minimal}" ] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ @@ -108,6 +107,9 @@ stdenv.mkDerivation rec { ${./make-fonts-conf.xsl} $out/etc/fonts/fonts.conf \ > fonts.conf.tmp mv fonts.conf.tmp $out/etc/fonts/fonts.conf + # We don't keep section 3 of the manpages, as they are quite large and + # probably not so useful. + rm -r $bin/share/man/man3 ''; meta = with stdenv.lib; {