about summary refs log tree commit diff
path: root/pkgs/applications/science/electronics/verilator/default.nix
blob: ce8ebe42ea87494aa7565159d3841f226a027c06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchurl
, perl, flex, bison
}:

stdenv.mkDerivation rec {
  pname = "verilator";
  version = "4.100";

  src = fetchurl {
    url    = "https://www.veripool.org/ftp/${pname}-${version}.tgz";
    sha256 = "0vg1gk1hqlnz74gfpf57588758myxvhqzi37yl4vqjcq40r83nr2";
  };

  enableParallelBuilding = true;
  buildInputs = [ perl ];
  nativeBuildInputs = [ flex bison ];

  # these tests need some interpreter paths patched early on...
  doCheck = false;
  checkTarget = "test";

  meta = with stdenv.lib; {
    description = "Fast and robust (System)Verilog simulator/compiler";
    homepage    = "https://www.veripool.org/wiki/verilator";
    license     = licenses.lgpl3;
    platforms   = platforms.unix;
    maintainers = with maintainers; [ thoughtpolice ];
  };
}