verilog: Add optional dependencies
Increases the closure size by just 4MB.
This commit is contained in:
parent
8b3274178f
commit
9c50ec6189
|
@ -1,4 +1,6 @@
|
||||||
{ stdenv, fetchFromGitHub, autoconf, gperf, flex, bison }:
|
{ stdenv, fetchFromGitHub, autoconf, gperf, flex, bison, readline, ncurses
|
||||||
|
, bzip2, zlib
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "iverilog";
|
pname = "iverilog";
|
||||||
|
@ -13,12 +15,19 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
substituteInPlace configure.in \
|
||||||
|
--replace "AC_CHECK_LIB(termcap, tputs)" "AC_CHECK_LIB(termcap, tputs)"
|
||||||
|
'';
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
chmod +x $PWD/autoconf.sh
|
chmod +x $PWD/autoconf.sh
|
||||||
$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; {
|
meta = with stdenv.lib; {
|
||||||
description = "Icarus Verilog compiler";
|
description = "Icarus Verilog compiler";
|
||||||
|
|
Loading…
Reference in New Issue