yosys: 2018.05.03 -> 2018.08.08, enable protobuf backend
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
436f60cbbe
commit
0f25234437
|
@ -1,19 +1,21 @@
|
||||||
{ stdenv, fetchFromGitHub
|
{ stdenv, fetchFromGitHub
|
||||||
, pkgconfig, tcl, readline, libffi, python3, bison, flex
|
, pkgconfig, bison, flex
|
||||||
|
, tcl, readline, libffi, python3
|
||||||
|
, protobuf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with builtins;
|
with builtins;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "yosys-${version}";
|
name = "yosys-${version}";
|
||||||
version = "2018.05.03";
|
version = "2018.08.08";
|
||||||
|
|
||||||
srcs = [
|
srcs = [
|
||||||
(fetchFromGitHub {
|
(fetchFromGitHub {
|
||||||
owner = "yosyshq";
|
owner = "yosyshq";
|
||||||
repo = "yosys";
|
repo = "yosys";
|
||||||
rev = "a572b495387743a58111e7264917a497faa17ebf";
|
rev = "93efbd5d158e374a0abe2afb06484ccc14aa2c88";
|
||||||
sha256 = "0q4xh4sy3n83c8il8lygzv0i6ca4qw36i2k6qz6giw0wd2pkibkb";
|
sha256 = "13y7rzpykihal789hyibg629gwj5bh1s0782y5xxj6jlg0bc9ly8";
|
||||||
name = "yosys";
|
name = "yosys";
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -23,8 +25,8 @@ stdenv.mkDerivation rec {
|
||||||
(fetchFromGitHub {
|
(fetchFromGitHub {
|
||||||
owner = "berkeley-abc";
|
owner = "berkeley-abc";
|
||||||
repo = "abc";
|
repo = "abc";
|
||||||
rev = "f23ea8e33f6d5cc54f58bec6d9200483e5d8c704";
|
rev = "ae6716b064c842f45109a88e84dca71fe4cc311f";
|
||||||
sha256 = "1xwmq3k5hfavdrs7zbqjxh35kr2pis4i6hhzrq7qzyzs0az0hls9";
|
sha256 = "0g39k16dmrl6q73q39yr5yd9r4rcliz5zxzbnwzh29z9xwi6ipw8";
|
||||||
name = "yosys-abc";
|
name = "yosys-abc";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
@ -32,7 +34,9 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ tcl readline libffi python3 bison flex ];
|
buildInputs = [ tcl readline libffi python3 bison flex protobuf ];
|
||||||
|
|
||||||
|
makeFlags = [ "ENABLE_PROTOBUF=1" ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace ../yosys-abc/Makefile \
|
substituteInPlace ../yosys-abc/Makefile \
|
||||||
|
@ -49,6 +53,9 @@ stdenv.mkDerivation rec {
|
||||||
make config-${if stdenv.cc.isClang or false then "clang" else "gcc"}
|
make config-${if stdenv.cc.isClang or false then "clang" else "gcc"}
|
||||||
echo 'ABCREV := default' >> Makefile.conf
|
echo 'ABCREV := default' >> Makefile.conf
|
||||||
makeFlags="PREFIX=$out $makeFlags"
|
makeFlags="PREFIX=$out $makeFlags"
|
||||||
|
|
||||||
|
# we have to do this ourselves for some reason...
|
||||||
|
(cd misc && ${protobuf}/bin/protoc --cpp_out ../backends/protobuf/ ./yosys.proto)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in New Issue