lib.makePerlPath -> perlPackages.makePerlPath
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, perl, gettext, LocaleGettext }:
|
||||
{ stdenv, fetchurl, perlPackages, gettext }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "help2man-1.47.8";
|
||||
@@ -8,8 +8,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1p5830h88cx0zn0snwaj0vpph81xicpsirfwlxmcgjrlmn0nm3sj";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gettext LocaleGettext ];
|
||||
buildInputs = [ perl LocaleGettext ];
|
||||
nativeBuildInputs = [ gettext perlPackages.LocaleGettext ];
|
||||
buildInputs = [ perlPackages.perl perlPackages.LocaleGettext ];
|
||||
|
||||
doCheck = false; # target `check' is missing
|
||||
|
||||
@@ -18,11 +18,10 @@ stdenv.mkDerivation rec {
|
||||
# We don't use makeWrapper here because it uses substitutions our
|
||||
# bootstrap shell can't handle.
|
||||
postInstall = ''
|
||||
gettext_perl="$(echo ${LocaleGettext}/lib/perl*/site_perl)"
|
||||
mv $out/bin/help2man $out/bin/.help2man-wrapped
|
||||
cat > $out/bin/help2man <<EOF
|
||||
#! $SHELL -e
|
||||
export PERL5LIB=\''${PERL5LIB:+:}$gettext_perl
|
||||
export PERL5LIB=\''${PERL5LIB:+:}${perlPackages.LocaleGettext}/${perlPackages.perl.libPrefix}
|
||||
${stdenv.lib.optionalString stdenv.hostPlatform.isCygwin
|
||||
''export PATH=\''${PATH:+:}${gettext}/bin''}
|
||||
exec -a \$0 $out/bin/.help2man-wrapped "\$@"
|
||||
|
||||
Reference in New Issue
Block a user