lol
1{ stdenv, fetchurl, perl, gettext, LocaleGettext, makeWrapper }:
2
3stdenv.mkDerivation rec {
4 name = "help2man-1.47.2";
5
6 src = fetchurl {
7 url = "mirror://gnu/help2man/${name}.tar.xz";
8 sha256 = "0z1zgw6k1fba59fii6ksfi1g2gci6i4ysa3kdfh3j475fdkn1if4";
9 };
10
11 buildInputs = [ makeWrapper perl gettext LocaleGettext ];
12
13 doCheck = false; # target `check' is missing
14
15 patches = if stdenv.isCygwin then [ ./1.40.4-cygwin-nls.patch ] else null;
16
17 postInstall =
18 '' wrapProgram "$out/bin/help2man" \
19 --prefix PERL5LIB : "$(echo ${LocaleGettext}/lib/perl*/site_perl)"
20 '';
21
22
23 meta = with stdenv.lib; {
24 description = "Generate man pages from `--help' output";
25
26 longDescription =
27 '' help2man produces simple manual pages from the ‘--help’ and
28 ‘--version’ output of other commands.
29 '';
30
31 homepage = http://www.gnu.org/software/help2man/;
32
33 license = licenses.gpl3Plus;
34 platforms = platforms.all;
35 maintainers = with maintainers; [ pSub ];
36 };
37}