forked from mirrors/nixpkgs
339f6248f6
The build would previously fail due to a change in bison's behavior (see
5b699c1be7
for more information). Updating to a more recent version fixes this
issue.
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, autoconf, gperf, flex, bison, readline, ncurses
|
|
, bzip2, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "iverilog";
|
|
version = "unstable-2020-08-24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "steveicarus";
|
|
repo = pname;
|
|
rev = "d8556e4c86e1465b68bdc8d5ba2056ba95a42dfd";
|
|
sha256 = "sha256-sT9j/0Q2FD5MOGpH/quMGvAuM7t7QavRHKD9lX7Elfs=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoconf gperf flex bison ];
|
|
|
|
buildInputs = [ readline ncurses bzip2 zlib ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Icarus Verilog compiler";
|
|
repositories.git = "https://github.com/steveicarus/iverilog.git";
|
|
homepage = "http://iverilog.icarus.com/";
|
|
license = licenses.lgpl21;
|
|
maintainers = with maintainers; [ winden ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|