yosys: fetch patch to fix amaranth code compilation

Addresses
https://github.com/NixOS/nixpkgs/pull/397611#issuecomment-3121635236

+9
+9
pkgs/by-name/yo/yosys/package.nix
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 6 # nativeBuildInputs 7 bison, ··· 134 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 135 136 patches = [ 137 ./plugin-search-dirs.patch 138 ./fix-clang-build.patch 139 ];
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + fetchpatch2, 6 7 # nativeBuildInputs 8 bison, ··· 135 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 136 137 patches = [ 138 + # Backport fix amaranth code compilation 139 + # TODO remove when updating to 0.56 140 + # https://github.com/YosysHQ/yosys/pull/5182 141 + (fetchpatch2 { 142 + name = "treat-zero-width-constant-as-zero.patch"; 143 + url = "https://github.com/YosysHQ/yosys/commit/478b6a2b3fbab0fd4097b841914cbe8bb9f67268.patch"; 144 + hash = "sha256-KeLoZfkXMk2KIPN9XBQdqWqohywQONlWUIvrGwgphKs="; 145 + }) 146 ./plugin-search-dirs.patch 147 ./fix-clang-build.patch 148 ];