symbiyosys: 2020.07.03 -> 2020.08.22
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
634934e912
commit
0eb943ecb1
@ -1,20 +1,20 @@
|
|||||||
{ stdenv, fetchFromGitHub
|
{ stdenv, fetchFromGitHub
|
||||||
, bash, python3, yosys
|
, bash, python3, yosys
|
||||||
, yices, boolector, aiger
|
, yices, boolector, z3, aiger
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "symbiyosys";
|
pname = "symbiyosys";
|
||||||
version = "2020.07.03";
|
version = "2020.08.22";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "YosysHQ";
|
owner = "YosysHQ";
|
||||||
repo = "SymbiYosys";
|
repo = "SymbiYosys";
|
||||||
rev = "06e80194c77f5cc38c6999b1d3047a2d6ca82e15";
|
rev = "33b0bb7d836fe2a73dc7b10587222f2a718beef4";
|
||||||
sha256 = "1hl03qy98pgq24ijyimf9pf7qxp42l7cki66wx48jys4m1s6n8v9";
|
sha256 = "03rbrbwsji1sqcp2yhgbc0fca04zsryv2g4izjhdzv64nqjzjyhn";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python3 ];
|
buildInputs = [ ];
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
|
|
||||||
@ -26,14 +26,15 @@ stdenv.mkDerivation {
|
|||||||
# Fix various executable references
|
# Fix various executable references
|
||||||
substituteInPlace sbysrc/sby_core.py \
|
substituteInPlace sbysrc/sby_core.py \
|
||||||
--replace '"/usr/bin/env", "bash"' '"${bash}/bin/bash"' \
|
--replace '"/usr/bin/env", "bash"' '"${bash}/bin/bash"' \
|
||||||
--replace ': "btormc"' ': "${boolector}/bin/btormc"' \
|
--replace ', "btormc"' ', "${boolector}/bin/btormc"' \
|
||||||
--replace ': "yosys"' ': "${yosys}/bin/yosys"' \
|
--replace ', "aigbmc"' ', "${aiger}/bin/aigbmc"'
|
||||||
--replace ': "yosys-smtbmc"' ': "${yosys}/bin/yosys-smtbmc"' \
|
|
||||||
--replace ': "yosys-abc"' ': "${yosys}/bin/yosys-abc"' \
|
substituteInPlace sbysrc/sby_core.py \
|
||||||
--replace ': "aigbmc"' ': "${aiger}/bin/aigbmc"' \
|
--replace '##yosys-program-prefix##' '"${yosys}/bin/"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = "true";
|
buildPhase = "true";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin $out/share/yosys/python3
|
mkdir -p $out/bin $out/share/yosys/python3
|
||||||
|
|
||||||
@ -43,6 +44,10 @@ stdenv.mkDerivation {
|
|||||||
chmod +x $out/bin/sby
|
chmod +x $out/bin/sby
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = false; # not all provers are yet packaged...
|
||||||
|
checkInputs = [ python3 yosys boolector yices z3 aiger ];
|
||||||
|
checkPhase = "make test";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Tooling for Yosys-based verification flows";
|
description = "Tooling for Yosys-based verification flows";
|
||||||
homepage = "https://symbiyosys.readthedocs.io/";
|
homepage = "https://symbiyosys.readthedocs.io/";
|
||||||
|
Loading…
Reference in New Issue
Block a user