2017-07-29 18:26:59 +01:00
|
|
|
{ stdenv, fetchurl, perl, flex, bison }:
|
2015-05-31 23:07:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "verilator-${version}";
|
2018-06-19 05:16:28 +01:00
|
|
|
version = "3.924";
|
2015-05-31 23:07:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.veripool.org/ftp/${name}.tgz";
|
2018-06-19 05:16:28 +01:00
|
|
|
sha256 = "0xarifraycmdzjxs0lscpwvrwr59z84p8g8dkyjssc463dqikjvx";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|