2017-07-29 19:26:59 +02:00
|
|
|
{ stdenv, fetchurl, perl, flex, bison }:
|
2015-06-01 00:07:44 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "verilator-${version}";
|
2017-02-27 15:00:25 +01:00
|
|
|
version = "3.900";
|
2015-06-01 00:07:44 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.veripool.org/ftp/${name}.tgz";
|
2017-02-27 15:00:25 +01:00
|
|
|
sha256 = "0yvbibcysdiw6mphda0lfs56wz6v450px2420x0hbd3rc7k53s2b";
|
2015-06-01 00:07:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2017-07-29 19:26:59 +02:00
|
|
|
buildInputs = [ perl flex bison ];
|
2015-06-01 00:07:44 +02:00
|
|
|
|
2017-03-08 11:33:01 +01:00
|
|
|
postInstall = ''
|
|
|
|
sed -i -e '3a\#!/usr/bin/env perl' -e '1,3d' $out/bin/{verilator,verilator_coverage,verilator_profcfunc}
|
|
|
|
'';
|
|
|
|
|
2015-06-01 00:07:44 +02:00
|
|
|
meta = {
|
|
|
|
description = "Fast and robust (System)Verilog simulator/compiler";
|
|
|
|
homepage = "http://www.veripool.org/wiki/verilator";
|
|
|
|
license = stdenv.lib.licenses.lgpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|