Author: ludo
Date: Tue Jan 31 15:50:51 2012
New Revision: 31948
URL: https://nixos.org/websvn/nix/?rev=31948&sc=1
Log:
GNU help2man: Wrap the program to have a correct $PERL5LIB.
Modified:
nixpkgs/trunk/pkgs/development/tools/misc/help2man/default.nix
Modified: nixpkgs/trunk/pkgs/development/tools/misc/help2man/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/development/tools/misc/help2man/default.nix Tue Jan
31 15:31:23 2012 (r31947)
+++ nixpkgs/trunk/pkgs/development/tools/misc/help2man/default.nix Tue Jan
31 15:50:51 2012 (r31948)
@@ -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 @@
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";
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits