From b9116f712f04fa2f7cd66e7e16783b572dc32d75 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Mon, 9 Nov 2020 22:22:21 +0100 Subject: [PATCH] libunwind: Add devman output Installing the man pages is a bit more tricky. The configure script completely disables the documentation unless latex2man is found. However, just installing the man pages can be done without latex2man, because the man pages are pre-built in the source tarball. Therefore we pass ${coreutils}/bin/true as latex2man, which allows to install the pre-build man pages without depending on full texlive. --- pkgs/development/libraries/libunwind/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libunwind/default.nix b/pkgs/development/libraries/libunwind/default.nix index 0f0143b9c1f..3816788f929 100644 --- a/pkgs/development/libraries/libunwind/default.nix +++ b/pkgs/development/libraries/libunwind/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, autoreconfHook, xz }: +{ stdenv, lib, fetchurl, autoreconfHook, xz, coreutils }: stdenv.mkDerivation rec { pname = "libunwind"; @@ -17,7 +17,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoreconfHook ]; - outputs = [ "out" "dev" ]; + outputs = [ "out" "dev" "devman" ]; + + # Without latex2man, no man pages are installed despite being + # prebuilt in the source tarball. + configureFlags = "LATEX2MAN=${coreutils}/bin/true"; propagatedBuildInputs = [ xz ];