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
@@ -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
'';