yosys: 0.36 -> 0.37

https://github.com/YosysHQ/yosys/releases/tag/yosys-0.37

The change to the patch is needed to fix this error on macOS:
```
+ clang -std=c++11 -O2 -o cxxrtl-test-value -I../../backends/cxxrtl/runtime test_value.cc -lstdc++
test_value.cc:1:10: fatal error: 'cassert' file not found
^~~~~~~~~
1 error generated.
make: *** [Makefile:891: test] Error 1
```

authored by Luflosi and committed by Austin Seipp 46692a15 a6f96f04

+13 -6
+2 -2
pkgs/development/compilers/yosys/default.nix
··· 77 77 78 78 in stdenv.mkDerivation (finalAttrs: { 79 79 pname = "yosys"; 80 - version = "0.36"; 80 + version = "0.37"; 81 81 82 82 src = fetchFromGitHub { 83 83 owner = "YosysHQ"; 84 84 repo = "yosys"; 85 85 rev = "refs/tags/${finalAttrs.pname}-${finalAttrs.version}"; 86 - hash = "sha256-jcaXn77OuKeC3AQTicILP3ABkJ3qBccM+uGbj1wn2Vw="; 86 + hash = "sha256-JRztXMZMBFhdZMeVHkRxFulRrFzyuNaLzcRlmgAz6Gc="; 87 87 }; 88 88 89 89 enableParallelBuilding = true;
+11 -4
pkgs/development/compilers/yosys/fix-clang-build.patch
··· 1 - diff --git a/Makefile b/Makefile 2 - index fa95b7b70..4d15ed721 100644 3 1 --- a/Makefile 4 2 +++ b/Makefile 5 3 @@ -215,7 +215,7 @@ ABC_ARCHFLAGS += "-DABC_NO_RLIMIT" ··· 11 9 LD = clang++ 12 10 CXXFLAGS += -std=$(CXXSTD) -Os 13 11 ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H -Wno-c++11-narrowing $(ABC_ARCHFLAGS)" 14 - diff --git a/tests/fmt/run-test.sh b/tests/fmt/run-test.sh 15 - index 914a72347..bc0b129d2 100644 12 + --- a/tests/cxxrtl/run-test.sh 13 + +++ b/tests/cxxrtl/run-test.sh 14 + @@ -5,7 +5,7 @@ set -ex 15 + run_subtest () { 16 + local subtest=$1; shift 17 + 18 + - ${CC:-gcc} -std=c++11 -O2 -o cxxrtl-test-${subtest} -I../../backends/cxxrtl/runtime test_${subtest}.cc -lstdc++ 19 + + ${CXX:-gcc} -std=c++11 -O2 -o cxxrtl-test-${subtest} -I../../backends/cxxrtl/runtime test_${subtest}.cc -lstdc++ 20 + ./cxxrtl-test-${subtest} 21 + } 22 + 16 23 --- a/tests/fmt/run-test.sh 17 24 +++ b/tests/fmt/run-test.sh 18 25 @@ -51,7 +51,7 @@ test_cxxrtl () {