libedit: Fix .la and .pc files

This commit is contained in:
William A. Kennington III 2015-09-18 14:51:58 -07:00
parent ec18091961
commit a394827e13

View File

@ -16,7 +16,8 @@ stdenv.mkDerivation rec {
] else null;
postInstall = ''
sed -i s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
find $out/lib -type f | grep '\.\(la\|pc\)''$' | xargs sed -i \
-e 's,-lncurses[a-z]*,-L${ncurses}/lib -lncursesw,g'
'';
configureFlags = [ "--enable-widec" ];