2009-05-28 12:06:33 -07:00
|
|
|
{ cabal, readline, ncurses } :
|
2009-04-21 14:12:56 -07:00
|
|
|
|
|
|
|
cabal.mkDerivation (self : {
|
|
|
|
pname = "readline";
|
|
|
|
version = "1.0.1.0";
|
|
|
|
sha256 = "07f2f039f32bf18838a4875d0f3caa3ed9436dd52b962b2061f0bb8a3316fa1d";
|
2009-05-28 12:06:33 -07:00
|
|
|
propagatedBuildInputs = [ readline ncurses ];
|
2009-04-23 10:48:06 -07:00
|
|
|
# experimentally link with ncursesw because ghci can't interpret ld scripts,
|
|
|
|
# and ncurses sometimes seems to be a script pointing to ncursesw
|
|
|
|
postConfigure = ''
|
|
|
|
sed -i -e "/^extra-libraries/ s/ncurses/ncursesw/" readline.buildinfo
|
|
|
|
'';
|
2009-04-21 14:12:56 -07:00
|
|
|
meta = {
|
|
|
|
description = "An interface to the GNU readline library";
|
2011-08-15 04:27:02 -07:00
|
|
|
license = "GPL";
|
|
|
|
platforms = self.ghc.meta.platforms;
|
|
|
|
maintainers = [
|
|
|
|
self.stdenv.lib.maintainers.andres
|
|
|
|
];
|
2009-04-21 14:12:56 -07:00
|
|
|
};
|
2011-03-28 08:04:00 -07:00
|
|
|
})
|