@@ -1,4 +1,6 @@
1−{ stdenv, fetchFromGitHub, autoconf, gperf, flex, bison }:
1+{ stdenv, fetchFromGitHub, autoconf, gperf, flex, bison, readline, ncurses
2+, bzip2, zlib
3+}:
24
35stdenv.mkDerivation rec {
46 pname = "iverilog";
@@ -13,12 +15,19 @@ stdenv.mkDerivation rec {
1315
1416 enableParallelBuilding = true;
1517
18+ prePatch = ''
19+ substituteInPlace configure.in \
20+ --replace "AC_CHECK_LIB(termcap, tputs)" "AC_CHECK_LIB(termcap, tputs)"
21+ '';
22+
1623 preConfigure = ''
1724 chmod +x $PWD/autoconf.sh
1825 $PWD/autoconf.sh
1926 '';
2027
21− buildInputs = [ autoconf gperf flex bison ];
28+ nativeBuildInputs = [ autoconf gperf flex bison ];
29+
30+ buildInputs = [ readline ncurses bzip2 zlib ];
2231
2332 meta = with stdenv.lib; {
2433 description = "Icarus Verilog compiler";