Merge pull request #214958 from SharzyL/verilator

verilator: 5.002 -> 5.006
This commit is contained in:
Nick Cao 2023-02-07 12:54:13 +08:00 committed by GitHub
commit b75fdb34ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,22 +1,22 @@
{ lib, stdenv, fetchFromGitHub
, perl, flex, bison, python3, autoconf
, which, cmake
, which, cmake, help2man
}:
stdenv.mkDerivation rec {
pname = "verilator";
version = "5.002";
version = "5.006";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
hash = "sha256-RNoKAEF7zl+WqqbxGP/VvdQqQP8VI3hoQku3b/g0XpU=";
hash = "sha256-PA8hbE6XECapuaO5YcgEodOoxSDqpMucdijJBBb7fZg=";
};
enableParallelBuilding = true;
buildInputs = [ perl ];
nativeBuildInputs = [ flex bison python3 autoconf ];
nativeBuildInputs = [ flex bison python3 autoconf help2man ];
nativeCheckInputs = [ which ];
doCheck = stdenv.isLinux; # darwin tests are broken for now...
@ -24,14 +24,8 @@ stdenv.mkDerivation rec {
preConfigure = "autoconf";
preCheck = ''
patchShebangs \
src/flexfix \
src/vlcovgen \
bin/verilator \
bin/verilator_coverage \
test_regress/driver.pl \
test_regress/t/*.pl
postPatch = ''
patchShebangs bin/* src/{flexfix,vlcovgen} test_regress/{driver.pl,t/*.pl}
'';
meta = with lib; {