Work around hard-coded /usr/bin/nroff' in configure'.

svn path=/nixpkgs/trunk/; revision=25533
This commit is contained in:
Ludovic Courtès 2011-01-13 10:03:16 +00:00
parent 2ae2385f26
commit 9b9b5e2f53
3 changed files with 13 additions and 4 deletions

View file

@ -21,6 +21,9 @@ stdenv.mkDerivation rec {
sha256 = "18a4w0n1n0sij7gkb3196dnqav5zr0c5p26f08k7cw6y0i9dz0sq";
};
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
NROFF = "${groff}/bin/nroff";
buildInputs = (ops cursesSupport [ ncurses readline ] )
++ (op docSupport groff )
++ (op zlibSupport zlib)

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses}:
{ stdenv, fetchurl, ncurses, groff }:
stdenv.mkDerivation rec {
name = "libedit-20100424-3.0";
@ -8,6 +8,9 @@ stdenv.mkDerivation rec {
sha256 = "11hxaq58gym7kqccjhxywjxdibffzg545z1aj997y1dn0rckhav0";
};
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
NROFF = "${groff}/bin/nroff";
postInstall = ''
sed -i s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
'';

View file

@ -1,8 +1,11 @@
{stdenv, fetchurl}:
{ stdenv, fetchurl, groff }:
stdenv.mkDerivation {
name = "mktemp-1.6";
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
NROFF = "${groff}/bin/nroff";
src = fetchurl {
url = ftp://ftp.mktemp.org/pub/mktemp/mktemp-1.6.tar.gz;
sha256 = "1nfj89b0dv1c2fyqi1pg54fyzs3462cbp7jv7lskqsxvqy4mh9x1";