nixpkgs/pkgs/development/libraries/libedit/default.nix
Ludovic Courtès 9b9b5e2f53 Work around hard-coded /usr/bin/nroff' in configure'.
svn path=/nixpkgs/trunk/; revision=25533
2011-01-13 10:03:16 +00:00

27 lines
660 B
Nix

{ stdenv, fetchurl, ncurses, groff }:
stdenv.mkDerivation rec {
name = "libedit-20100424-3.0";
src = fetchurl {
url = "http://www.thrysoee.dk/editline/${name}.tar.gz";
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
'';
configureFlags = "--enable-widec";
propagatedBuildInputs = [ ncurses ];
meta = {
homepage = "http://www.thrysoee.dk/editline/";
description = "A port of the NetBSD Editline library (libedit)";
};
}