elvis: unbreak darwin
Co-Authored-By: Luke Granger-Brown <git@lukegb.com>
This commit is contained in:
@@ -36,7 +36,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
configureFlags = [ "--ioctl=termios" ];
|
||||
configureFlags = [
|
||||
"--ioctl=termios"
|
||||
"--libs=-lncurses"
|
||||
];
|
||||
|
||||
strictDeps = false;
|
||||
|
||||
@@ -46,6 +49,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
--replace-fail 'if [ -f /usr/include/sys/wait.h ]' 'if true'
|
||||
'';
|
||||
|
||||
postConfigure = ''
|
||||
echo >>config.h '#undef NEED_MEMMOVE'
|
||||
echo >>config.h '#define NEED_IOCTL_H'
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
|
||||
Reference in New Issue
Block a user