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.
This commit is contained in:
Michal Sojka 2020-11-09 22:22:21 +01:00 committed by Frederik Rietdijk
parent cef4502feb
commit b9116f712f

View file

@ -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 ];