GNU help2man: Wrap the program to have a correct $PERL5LIB.
svn path=/nixpkgs/trunk/; revision=31948
This commit is contained in:
parent
27100c36c4
commit
7dc9366796
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchurl, perl, gettext, LocaleGettext}:
|
{ stdenv, fetchurl, perl, gettext, LocaleGettext, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "help2man-1.40.5";
|
name = "help2man-1.40.5";
|
||||||
@ -8,14 +8,16 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1d1wn9krvf9mp97c224710n1pcfh73p7w7na65zn2a06124rln8k";
|
sha256 = "1d1wn9krvf9mp97c224710n1pcfh73p7w7na65zn2a06124rln8k";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [ makeWrapper perl gettext LocaleGettext ];
|
||||||
perl
|
|
||||||
gettext
|
|
||||||
LocaleGettext
|
|
||||||
];
|
|
||||||
|
|
||||||
doCheck = false; # target `check' is missing
|
doCheck = false; # target `check' is missing
|
||||||
|
|
||||||
|
postInstall =
|
||||||
|
'' wrapProgram "$out/bin/help2man" \
|
||||||
|
--prefix PERL5LIB : "$(echo ${LocaleGettext}/lib/perl*/site_perl)"
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "GNU help2man generates man pages from `--help' output";
|
description = "GNU help2man generates man pages from `--help' output";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user