1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

GNU help2man: Wrap the program to have a correct $PERL5LIB.

svn path=/nixpkgs/trunk/; revision=31948
This commit is contained in:
Ludovic Courtès 2012-01-31 15:50:51 +00:00
parent 27100c36c4
commit 7dc9366796

View file

@ -1,4 +1,4 @@
{stdenv, fetchurl, perl, gettext, LocaleGettext}:
{ stdenv, fetchurl, perl, gettext, LocaleGettext, makeWrapper }:
stdenv.mkDerivation rec {
name = "help2man-1.40.5";
@ -8,14 +8,16 @@ stdenv.mkDerivation rec {
sha256 = "1d1wn9krvf9mp97c224710n1pcfh73p7w7na65zn2a06124rln8k";
};
buildInputs = [
perl
gettext
LocaleGettext
];
buildInputs = [ makeWrapper perl gettext LocaleGettext ];
doCheck = false; # target `check' is missing
postInstall =
'' wrapProgram "$out/bin/help2man" \
--prefix PERL5LIB : "$(echo ${LocaleGettext}/lib/perl*/site_perl)"
'';
meta = {
description = "GNU help2man generates man pages from `--help' output";