verilog: Add optional dependencies
Increases the closure size by just 4MB.
This commit is contained in:
parent
8b3274178f
commit
9c50ec6189
1 changed files with 11 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
|||
{ stdenv, fetchFromGitHub, autoconf, gperf, flex, bison }:
|
||||
{ stdenv, fetchFromGitHub, autoconf, gperf, flex, bison, readline, ncurses
|
||||
, bzip2, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iverilog";
|
||||
|
@ -13,12 +15,19 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace configure.in \
|
||||
--replace "AC_CHECK_LIB(termcap, tputs)" "AC_CHECK_LIB(termcap, tputs)"
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
chmod +x $PWD/autoconf.sh
|
||||
$PWD/autoconf.sh
|
||||
'';
|
||||
|
||||
buildInputs = [ autoconf gperf flex bison ];
|
||||
nativeBuildInputs = [ autoconf gperf flex bison ];
|
||||
|
||||
buildInputs = [ readline ncurses bzip2 zlib ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Icarus Verilog compiler";
|
||||
|
|
Loading…
Reference in a new issue