fix conditionals for bootstrap sed calls
This commit is contained in:
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
|
|||||||
] else null;
|
] else null;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
sed -i s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
|
sed -i ${stdenv.lib.optionalString (stdenv.isDarwin && stdenv.cc.nativeLibc) "''"} s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [ "--enable-widec" ];
|
configureFlags = [ "--enable-widec" ];
|
||||||
|
|||||||
@@ -9,10 +9,12 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
preConfigure =
|
preConfigure =
|
||||||
''
|
let needSedSpace = ((stdenv.isFreeBSD || stdenv.isOpenBSD) && stdenv.cc.nativeTools)
|
||||||
|
|| (stdenv.isDarwin && stdenv.cc.nativeLibc);
|
||||||
|
in ''
|
||||||
# Fix for building on Glibc 2.16. Won't be needed once the
|
# Fix for building on Glibc 2.16. Won't be needed once the
|
||||||
# gnulib in sharutils is updated.
|
# gnulib in sharutils is updated.
|
||||||
sed -i ${stdenv.lib.optionalString ((stdenv.isFreeBSD || stdenv.isOpenBSD) && stdenv.cc.nativeTools) "''"} '/gets is a security hole/d' lib/stdio.in.h
|
sed -i ${stdenv.lib.optionalString needSedSpace "''"} '/gets is a security hole/d' lib/stdio.in.h
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# GNU Gettext is needed on non-GNU platforms.
|
# GNU Gettext is needed on non-GNU platforms.
|
||||||
|
|||||||
Reference in New Issue
Block a user