ncurses: fix cygwin build
This commit is contained in:
parent
3c76cd7626
commit
33eec8e105
@ -61,8 +61,6 @@ stdenv.mkDerivation rec {
|
|||||||
-e '/CPPFLAGS="$CPPFLAGS/s/ -D_XOPEN_SOURCE_EXTENDED//' \
|
-e '/CPPFLAGS="$CPPFLAGS/s/ -D_XOPEN_SOURCE_EXTENDED//' \
|
||||||
configure
|
configure
|
||||||
CFLAGS=-D_XOPEN_SOURCE_EXTENDED
|
CFLAGS=-D_XOPEN_SOURCE_EXTENDED
|
||||||
'' + lib.optionalString stdenv.isCygwin ''
|
|
||||||
sed -i -e 's,LIB_SUFFIX="t,LIB_SUFFIX=",' configure
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
@ -122,7 +120,7 @@ stdenv.mkDerivation rec {
|
|||||||
moveToOutput "bin/tset" "$out"
|
moveToOutput "bin/tset" "$out"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = lib.optionalString (!hostPlatform.isCygwin) ''
|
||||||
rm "$out"/lib/*.a
|
rm "$out"/lib/*.a
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user