fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl, perl, gettext, LocaleGettext }:
2
3stdenv.mkDerivation rec {
4 name = "help2man-1.47.6";
5
6 src = fetchurl {
7 url = "mirror://gnu/help2man/${name}.tar.xz";
8 sha256 = "0vz4dlrvy4vc6l7w0a7n668pfa0rdm73wr2gar58wqranyah46yr";
9 };
10
11 nativeBuildInputs = [ gettext LocaleGettext ];
12 buildInputs = [ perl LocaleGettext ];
13
14 doCheck = false; # target `check' is missing
15
16 patches = if stdenv.hostPlatform.isCygwin then [ ./1.40.4-cygwin-nls.patch ] else null;
17
18 # We don't use makeWrapper here because it uses substitutions our
19 # bootstrap shell can't handle.
20 postInstall = ''
21 gettext_perl="$(echo ${LocaleGettext}/lib/perl*/site_perl)"
22 mv $out/bin/help2man $out/bin/.help2man-wrapped
23 cat > $out/bin/help2man <<EOF
24 #! $SHELL -e
25 export PERL5LIB=\''${PERL5LIB:+:}$gettext_perl
26 ${stdenv.lib.optionalString stdenv.hostPlatform.isCygwin
27 "export PATH=\''${PATH:+:}${gettext}/bin"}
28 exec -a \$0 $out/bin/.help2man-wrapped "\$@"
29 EOF
30 chmod +x $out/bin/help2man
31 '';
32
33 meta = with stdenv.lib; {
34 description = "Generate man pages from `--help' output";
35
36 longDescription =
37 '' help2man produces simple manual pages from the ‘--help’ and
38 ‘--version’ output of other commands.
39 '';
40
41 homepage = http://www.gnu.org/software/help2man/;
42
43 license = licenses.gpl3Plus;
44 platforms = platforms.all;
45 maintainers = with maintainers; [ pSub ];
46 };
47}