From 5743c3cac33b6536771e9aade767e504886f5638 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Sun, 24 Nov 2024 20:35:50 +0000 Subject: [PATCH] verilator_caliptra: pin to systemc 2.3.4 --- pkgs/verilator_caliptra.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/verilator_caliptra.nix b/pkgs/verilator_caliptra.nix index f4e3db9..8db5e9f 100644 --- a/pkgs/verilator_caliptra.nix +++ b/pkgs/verilator_caliptra.nix @@ -2,18 +2,28 @@ # Licensed under the MIT License, see LICENSE for details. # SPDX-License-Identifier: MIT { - pkgs, systemc, gcc12Stdenv, + fetchFromGitHub, + verilator, }: -(pkgs.verilator.override { +(verilator.override { # Long symbols are broken when compiled with GCC 13: https://github.com/verilator/verilator/issues/4204 stdenv = gcc12Stdenv; - systemc = systemc.override {stdenv = gcc12Stdenv;}; + systemc = (systemc.override {stdenv = gcc12Stdenv;}).overrideAttrs rec { + version = "2.3.4"; + + src = fetchFromGitHub { + owner = "accellera-official"; + repo = "systemc"; + rev = version; + sha256 = "0sj8wlkp68cjhmkd9c9lvm3lk3sckczpz7w9vby64inc1f9fnf0b"; + }; + }; }) .overrideAttrs rec { version = "5.012"; - src = pkgs.fetchFromGitHub { + src = fetchFromGitHub { owner = "verilator"; repo = "verilator"; rev = "v${version}";