Commit 8bd07206 authored by Henner Zeller's avatar Henner Zeller Committed by Austin Seipp
Browse files

verilator: format with nixfmt

parent dd3f6561
Loading
Loading
Loading
Loading
+49 −10
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, fetchpatch, perl, flex, bison, python3, autoconf,
  which, cmake, ccache, help2man, makeWrapper, glibcLocales,
  systemc, git, numactl }:
{
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  perl,
  flex,
  bison,
  python3,
  autoconf,
  which,
  cmake,
  ccache,
  help2man,
  makeWrapper,
  glibcLocales,
  systemc,
  git,
  numactl,
}:

stdenv.mkDerivation rec {
  pname = "verilator";
@@ -23,9 +40,25 @@ stdenv.mkDerivation rec {
  ];

  enableParallelBuilding = true;
  buildInputs = [ perl python3 systemc ];  # ccache
  nativeBuildInputs = [ makeWrapper flex bison autoconf help2man git ];
  nativeCheckInputs = [ which numactl ];  # cmake
  buildInputs = [
    perl
    python3
    systemc
    # ccache
  ];
  nativeBuildInputs = [
    makeWrapper
    flex
    bison
    autoconf
    help2man
    git
  ];
  nativeCheckInputs = [
    which
    numactl
    # cmake
  ];

  doCheck = stdenv.isLinux; # darwin tests are broken for now...
  checkTarget = "test";
@@ -54,8 +87,14 @@ stdenv.mkDerivation rec {
  meta = with lib; {
    description = "Fast and robust (System)Verilog simulator/compiler and linter";
    homepage = "https://www.veripool.org/verilator";
    license     = with licenses; [ lgpl3Only artistic2 ];
    license = with licenses; [
      lgpl3Only
      artistic2
    ];
    platforms = platforms.unix;
    maintainers = with maintainers; [ thoughtpolice amiloradovsky ];
    maintainers = with maintainers; [
      thoughtpolice
      amiloradovsky
    ];
  };
}