2008-02-07 17:39:07 +03:00
|
|
|
{stdenv, fetchurl, groff, less}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "man-1.6f";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://primates.ximian.com/~flucifredi/man/man-1.6f.tar.gz;
|
|
|
|
sha256 = "0v2z6ywhy8kd2fa3ywkqayhjdivbaqn6qvhx93a1ldw135z8q84z";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [groff less];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(bindir=$out/bin sbindir=$out/sbin libdir=$out/lib mandir=$out/share/man)
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Search in "share/man" relative to each path in $PATH (in addition to "man").
|
|
|
|
./share.patch
|
|
|
|
];
|
|
|
|
|
2009-09-25 02:18:59 +04:00
|
|
|
preConfigure = ''
|
|
|
|
sed 's/^PREPATH=.*/PREPATH=$PATH/' -i configure
|
|
|
|
'';
|
|
|
|
|
2009-07-08 15:49:09 +04:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
# Use UTF-8 by default. Otherwise man won't know how to deal
|
|
|
|
# with certain characters.
|
|
|
|
substituteInPlace $out/lib/man.conf \
|
|
|
|
--replace "nroff -Tlatin1" "nroff" \
|
|
|
|
--replace "eqn -Tlatin1" "eqn -Tutf8"
|
|
|
|
'';
|
|
|
|
|
2008-02-07 17:39:07 +03:00
|
|
|
meta = {
|
|
|
|
homepage = http://primates.ximian.com/~flucifredi/man/;
|
|
|
|
description = "Tool to read online Unix documentation";
|
|
|
|
};
|
|
|
|
}
|