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 <luflosi@luflosi.de>

+10
+10
pkgs/development/compilers/yosys/plugins/synlig.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitHub 4 + , fetchpatch 4 5 , pkg-config 5 6 , antlr4 6 7 , capnproto ··· 28 29 hash = "sha256-jdA3PBodecqriGWU/BzWtQ5gyu62pZHv+1NvFrwsTTk="; 29 30 fetchSubmodules = false; # we use all dependencies from nix 30 31 }; 32 + 33 + patches = [ 34 + (fetchpatch { 35 + # Fixes https://github.com/chipsalliance/synlig/issues/2299 36 + name = "make-compile-for-yosys-0.37.patch"; 37 + url = "https://github.com/chipsalliance/synlig/commit/3dd46d4769c20b6dd1163310f8e56560b351a211.patch"; 38 + hash = "sha256-OP/2HA/Ukt6o5aKgoBk19P6T/33btU/x6VnoIVXct1g="; 39 + }) 40 + ]; 31 41 32 42 nativeBuildInputs = [ 33 43 pkg-config