2017-07-29 18:26:59 +01:00
|
|
|
{ stdenv, fetchurl, perl, flex, bison }:
|
2015-05-31 23:07:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "verilator";
|
2019-09-29 09:33:30 +01:00
|
|
|
version = "4.018";
|
2015-05-31 23:07:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.veripool.org/ftp/${pname}-${version}.tgz";
|
2019-09-29 09:33:30 +01:00
|
|
|
sha256 = "0ih38dd8hiwgjyc6gclx8i9jlycgdlrxzz8bicm4a6yj4p0jxmcq";
|
2015-05-31 23:07:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2017-07-29 18:26:59 +01:00
|
|
|
buildInputs = [ perl flex bison ];
|
2015-05-31 23:07:44 +01:00
|
|
|
|
2017-03-08 10:33:01 +00:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e '3a\#!/usr/bin/env perl' -e '1,3d' $out/bin/{verilator,verilator_coverage,verilator_profcfunc}
|
|
|
|
'';
|
|
|
|
|
2015-05-31 23:07:44 +01:00
|
|
|
meta = {
|
|
|
|
description = "Fast and robust (System)Verilog simulator/compiler";
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = "https://www.veripool.org/wiki/verilator";
|
2015-05-31 23:07:44 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
2018-07-05 23:16:21 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2015-05-31 23:07:44 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|