diff options
author | Ryan Lahfa <masterancpp@gmail.com> | 2024-02-12 05:14:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-12 05:14:19 +0100 |
commit | 25cda1409037523230668913cd37b5327bc17064 (patch) | |
tree | 9a2d19f20b4c80b0f4156c6d40aaabb10f4110fb | |
parent | d2dff3472c60145e59a55dcf00b89c19f39c3fad (diff) | |
parent | 65b289f68a2a677e9d675b849a10c19f3b188252 (diff) | |
download | nixlib-25cda1409037523230668913cd37b5327bc17064.tar nixlib-25cda1409037523230668913cd37b5327bc17064.tar.gz nixlib-25cda1409037523230668913cd37b5327bc17064.tar.bz2 nixlib-25cda1409037523230668913cd37b5327bc17064.tar.lz nixlib-25cda1409037523230668913cd37b5327bc17064.tar.xz nixlib-25cda1409037523230668913cd37b5327bc17064.tar.zst nixlib-25cda1409037523230668913cd37b5327bc17064.zip |
Merge pull request #287887 from tpwrules/yosys-update
yosys: 0.37 -> 0.38
-rw-r--r-- | pkgs/development/compilers/yosys/default.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/development/compilers/yosys/default.nix b/pkgs/development/compilers/yosys/default.nix index 850e02dc6e67..ee8fe6cee576 100644 --- a/pkgs/development/compilers/yosys/default.nix +++ b/pkgs/development/compilers/yosys/default.nix @@ -77,13 +77,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "yosys"; - version = "0.37"; + version = "0.38"; src = fetchFromGitHub { owner = "YosysHQ"; repo = "yosys"; rev = "refs/tags/${finalAttrs.pname}-${finalAttrs.version}"; - hash = "sha256-JRztXMZMBFhdZMeVHkRxFulRrFzyuNaLzcRlmgAz6Gc="; + hash = "sha256-mzMBhnIEgToez6mGFOvO7zBA+rNivZ9OnLQsjBBDamA="; }; enableParallelBuilding = true; @@ -107,7 +107,11 @@ in stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace ./Makefile \ - --replace 'echo UNKNOWN' 'echo ${builtins.substring 0 10 finalAttrs.src.rev}' + --replace-fail 'echo UNKNOWN' 'echo ${builtins.substring 0 10 finalAttrs.src.rev}' + + # https://github.com/YosysHQ/yosys/pull/4199 + substituteInPlace ./tests/various/clk2fflogic_effects.sh \ + --replace-fail 'tail +3' 'tail -n +3' chmod +x ./misc/yosys-config.in patchShebangs tests ./misc/yosys-config.in @@ -135,6 +139,13 @@ in stdenv.mkDerivation (finalAttrs: { echo "BOOST_PYTHON_LIB := -lboost_python${lib.versions.major python3.version}${lib.versions.minor python3.version}" >> Makefile.conf ''; + preCheck = '' + # autotest.sh automatically compiles a utility during startup if it's out of date. + # having N check jobs race to do that creates spurious codesigning failures on macOS. + # run it once without asking it to do anything so that compilation is done before the jobs start. + tests/tools/autotest.sh + ''; + checkTarget = "test"; doCheck = true; nativeCheckInputs = [ verilog ]; |