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>
This commit is contained in:
Henner Zeller 2024-01-25 21:50:32 -08:00
parent a3a75ec908
commit 4fba3d0fa5

View file

@ -1,6 +1,7 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, pkg-config , pkg-config
, antlr4 , antlr4
, capnproto , capnproto
@ -29,6 +30,15 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = false; # we use all dependencies from nix 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 = [ nativeBuildInputs = [
pkg-config pkg-config
]; ];