2010-04-22 18:16:18 +00:00
|
|
|
{ stdenv, fetchurl, ncurses}:
|
2009-04-16 19:25:22 +00:00
|
|
|
|
2009-10-06 16:47:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-11-15 19:39:11 +00:00
|
|
|
name = "libedit-20100424-3.0";
|
2009-10-06 16:47:37 +00:00
|
|
|
|
2009-04-16 19:25:22 +00:00
|
|
|
src = fetchurl {
|
2009-10-06 16:47:37 +00:00
|
|
|
url = "http://www.thrysoee.dk/editline/${name}.tar.gz";
|
2010-11-15 19:39:11 +00:00
|
|
|
sha256 = "11hxaq58gym7kqccjhxywjxdibffzg545z1aj997y1dn0rckhav0";
|
2009-04-16 19:25:22 +00:00
|
|
|
};
|
2009-10-06 16:47:37 +00:00
|
|
|
|
2010-04-22 18:16:18 +00:00
|
|
|
postInstall = ''
|
2010-11-15 19:39:11 +00:00
|
|
|
sed -i s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
|
2010-04-22 18:16:18 +00:00
|
|
|
'';
|
|
|
|
|
2010-11-15 19:39:11 +00:00
|
|
|
configureFlags = "--enable-widec";
|
|
|
|
|
2009-04-16 19:25:22 +00:00
|
|
|
propagatedBuildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.thrysoee.dk/editline/";
|
|
|
|
description = "A port of the NetBSD Editline library (libedit)";
|
|
|
|
};
|
|
|
|
}
|