2011-01-13 11:03:16 +01:00
|
|
|
{ stdenv, fetchurl, ncurses, groff }:
|
2009-04-16 21:25:22 +02:00
|
|
|
|
2009-10-06 18:47:37 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2010-11-15 20:39:11 +01:00
|
|
|
name = "libedit-20100424-3.0";
|
2009-10-06 18:47:37 +02:00
|
|
|
|
2009-04-16 21:25:22 +02:00
|
|
|
src = fetchurl {
|
2009-10-06 18:47:37 +02:00
|
|
|
url = "http://www.thrysoee.dk/editline/${name}.tar.gz";
|
2010-11-15 20:39:11 +01:00
|
|
|
sha256 = "11hxaq58gym7kqccjhxywjxdibffzg545z1aj997y1dn0rckhav0";
|
2009-04-16 21:25:22 +02:00
|
|
|
};
|
2009-10-06 18:47:37 +02:00
|
|
|
|
2011-01-13 11:03:16 +01:00
|
|
|
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
|
|
|
|
NROFF = "${groff}/bin/nroff";
|
|
|
|
|
2010-04-22 20:16:18 +02:00
|
|
|
postInstall = ''
|
2010-11-15 20:39:11 +01:00
|
|
|
sed -i s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
|
2010-04-22 20:16:18 +02:00
|
|
|
'';
|
|
|
|
|
2010-11-15 20:39:11 +01:00
|
|
|
configureFlags = "--enable-widec";
|
|
|
|
|
2009-04-16 21:25:22 +02:00
|
|
|
propagatedBuildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.thrysoee.dk/editline/";
|
|
|
|
description = "A port of the NetBSD Editline library (libedit)";
|
|
|
|
};
|
|
|
|
}
|