git.iko.soy/typeable/nixpkgs
on master help sign in
verilog: Add optional dependencies

Increases the closure size by just 4MB.

commit9c50ec61895eee4fe3f9cbcfd566fe95e82c8f2a authorDaniel Schaefer <git@danielschaefer.me> dateFri 2 Aug 2019, 10:34 (7 years ago) parent8b32741
1 file changed+11−2
pkgs/applications/science/electronics/verilog/default.nix+11−2
pkgs/applications/science/electronics/verilog/default.nix+11−2
@@ -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";