cygwin: libedit patch for cygwin

This commit is contained in:
Rok Garbas
2015-06-05 10:34:00 +02:00
parent da10587d1b
commit 0a7c5e4f68
2 changed files with 29 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
# Have `configure' avoid `/usr/bin/nroff' in non-chroot builds.
NROFF = "${groff}/bin/nroff";
patches = if stdenv.isCygwin then [
./01-cygwin.patch
] else null;
postInstall = ''
sed -i ${stdenv.lib.optionalString (stdenv.isDarwin && stdenv.cc.nativeTools) "''"} s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
'';