about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/electronics/verilator/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/science/electronics/verilator/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/science/electronics/verilator/default.nix19
1 files changed, 13 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/applications/science/electronics/verilator/default.nix b/nixpkgs/pkgs/applications/science/electronics/verilator/default.nix
index ce8ebe42ea87..fe988642c01e 100644
--- a/nixpkgs/pkgs/applications/science/electronics/verilator/default.nix
+++ b/nixpkgs/pkgs/applications/science/electronics/verilator/default.nix
@@ -1,25 +1,32 @@
-{ stdenv, fetchurl
-, perl, flex, bison
+{ lib, stdenv, fetchurl
+, perl, flex, bison, python3
 }:
 
 stdenv.mkDerivation rec {
   pname = "verilator";
-  version = "4.100";
+  version = "4.108";
 
   src = fetchurl {
     url    = "https://www.veripool.org/ftp/${pname}-${version}.tgz";
-    sha256 = "0vg1gk1hqlnz74gfpf57588758myxvhqzi37yl4vqjcq40r83nr2";
+    sha256 = "00i7am41w9v4smhl64z7s95wdb55f684y89mc0hbc07j1ggc33lf";
   };
 
   enableParallelBuilding = true;
   buildInputs = [ perl ];
-  nativeBuildInputs = [ flex bison ];
+  nativeBuildInputs = [ flex bison python3 ];
 
   # these tests need some interpreter paths patched early on...
+  # see https://github.com/NixOS/nix/issues/1205
   doCheck = false;
   checkTarget = "test";
 
-  meta = with stdenv.lib; {
+  postPatch = ''
+    patchShebangs \
+      src/flexfix \
+      src/vlcovgen
+  '';
+
+  meta = with lib; {
     description = "Fast and robust (System)Verilog simulator/compiler";
     homepage    = "https://www.veripool.org/wiki/verilator";
     license     = licenses.lgpl3;