yosys: user placeholder
This commit is contained in:
parent
4afad26f79
commit
3086338f9d
|
@ -1,8 +1,15 @@
|
||||||
{ stdenv, fetchFromGitHub
|
{ stdenv
|
||||||
, pkgconfig, bison, flex
|
, bison
|
||||||
, tcl, readline, libffi, python3
|
, fetchFromGitHub
|
||||||
, protobuf, zlib
|
, flex
|
||||||
|
, libffi
|
||||||
|
, pkgconfig
|
||||||
|
, protobuf
|
||||||
|
, python3
|
||||||
|
, readline
|
||||||
|
, tcl
|
||||||
, verilog
|
, verilog
|
||||||
|
, zlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with builtins;
|
with builtins;
|
||||||
|
@ -37,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ tcl readline libffi python3 bison flex protobuf zlib ];
|
buildInputs = [ tcl readline libffi python3 bison flex protobuf zlib ];
|
||||||
|
|
||||||
makeFlags = [ "ENABLE_PROTOBUF=1" ];
|
makeFlags = [ "ENABLE_PROTOBUF=1" "PREFIX=${placeholder "out"}"];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace ../yosys-abc/Makefile \
|
substituteInPlace ../yosys-abc/Makefile \
|
||||||
|
@ -58,7 +65,6 @@ stdenv.mkDerivation rec {
|
||||||
ln -s ../yosys-abc abc
|
ln -s ../yosys-abc abc
|
||||||
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"
|
|
||||||
|
|
||||||
# we have to do this ourselves for some reason...
|
# we have to do this ourselves for some reason...
|
||||||
(cd misc && ${protobuf}/bin/protoc --cpp_out ../backends/protobuf/ ./yosys.proto)
|
(cd misc && ${protobuf}/bin/protoc --cpp_out ../backends/protobuf/ ./yosys.proto)
|
||||||
|
|
Loading…
Reference in New Issue