2020-08-23 08:34:00 -07:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, perl, flex, bison
|
|
|
|
}:
|
2015-05-31 15:07:44 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "verilator";
|
2020-09-16 08:40:01 -07:00
|
|
|
version = "4.100";
|
2015-05-31 15:07:44 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://www.veripool.org/ftp/${pname}-${version}.tgz";
|
2020-09-16 08:40:01 -07:00
|
|
|
sha256 = "0vg1gk1hqlnz74gfpf57588758myxvhqzi37yl4vqjcq40r83nr2";
|
2015-05-31 15:07:44 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2020-08-23 08:34:00 -07:00
|
|
|
buildInputs = [ perl ];
|
|
|
|
nativeBuildInputs = [ flex bison ];
|
2015-05-31 15:07:44 -07:00
|
|
|
|
2020-08-23 08:34:00 -07:00
|
|
|
# these tests need some interpreter paths patched early on...
|
|
|
|
doCheck = false;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-05-31 15:07:44 -07:00
|
|
|
description = "Fast and robust (System)Verilog simulator/compiler";
|
2018-01-05 11:42:46 -08:00
|
|
|
homepage = "https://www.veripool.org/wiki/verilator";
|
2020-08-23 08:34:00 -07:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2015-05-31 15:07:44 -07:00
|
|
|
};
|
|
|
|
}
|