From 4fba3d0fa50b5f04100ec29ca97b740d902d2e93 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Thu, 25 Jan 2024 21:50:32 -0800 Subject: [PATCH] yosys-synlig: fix compilation with Yosys 0.37 Discussed in https://github.com/NixOS/nixpkgs/pull/281384 This is filed as upstream issue https://github.com/chipsalliance/synlig/issues/2299 ... and addressed in this pull request https://github.com/chipsalliance/synlig/pull/2300 Patched into this nix package. Co-authored-by: Luflosi --- pkgs/development/compilers/yosys/plugins/synlig.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/compilers/yosys/plugins/synlig.nix b/pkgs/development/compilers/yosys/plugins/synlig.nix index f6232c1a9dfa..665421af21f3 100644 --- a/pkgs/development/compilers/yosys/plugins/synlig.nix +++ b/pkgs/development/compilers/yosys/plugins/synlig.nix @@ -1,6 +1,7 @@ { stdenv , lib , fetchFromGitHub +, fetchpatch , pkg-config , antlr4 , capnproto @@ -29,6 +30,15 @@ stdenv.mkDerivation (finalAttrs: { fetchSubmodules = false; # we use all dependencies from nix }; + patches = [ + (fetchpatch { + # Fixes https://github.com/chipsalliance/synlig/issues/2299 + name = "make-compile-for-yosys-0.37.patch"; + url = "https://github.com/chipsalliance/synlig/commit/3dd46d4769c20b6dd1163310f8e56560b351a211.patch"; + hash = "sha256-OP/2HA/Ukt6o5aKgoBk19P6T/33btU/x6VnoIVXct1g="; + }) + ]; + nativeBuildInputs = [ pkg-config ];