Merge pull request #283925 from hzeller/20240125-make-synlig-compile

yosys-synlig: fix compilation with Yosys 0.37
This commit is contained in:
Nick Cao 2024-01-27 13:42:41 -05:00 committed by GitHub
commit 4e65ef1b83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
];