2009-04-16 21:25:22 +02:00
|
|
|
{ cabal, libedit } :
|
2008-07-31 14:38:09 +02:00
|
|
|
|
|
|
|
cabal.mkDerivation (self : {
|
|
|
|
pname = "editline";
|
|
|
|
version = "0.2";
|
|
|
|
sha256 = "6ee0b553cc8d7542c096730ceebabdcb9b2951d7b00a5a0ddbf47b5436a77ce4";
|
2009-04-18 14:47:11 +02:00
|
|
|
buildInputs = [ libedit ];
|
2008-07-31 14:38:09 +02:00
|
|
|
patchLibFiles = [ "editline.buildinfo.in" ];
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i -e '/el_get/d' include/HsEditline.h
|
|
|
|
'';
|
|
|
|
# I don't quite understand why ncurses as an extra-library is harmful, but
|
|
|
|
# it works only if we remove it ...
|
|
|
|
postConfigure = ''
|
|
|
|
sed -i -e 's/ncurses//' editline.buildinfo
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
description = "Binding to the BSD editline library";
|
|
|
|
};
|
|
|
|
})
|
|
|
|
|