yosys: some more small fixes from review feedback
Fixes up the usage of patches/postInstall. Also removes `stdenv.lib` and other minor tweaks. Based on feedback from Sandro and Mihai. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
365ef90263
commit
9a951db846
@ -1,4 +1,4 @@
|
|||||||
{ stdenv
|
{ stdenv, lib
|
||||||
, abc-verifier
|
, abc-verifier
|
||||||
, bash
|
, bash
|
||||||
, bison
|
, bison
|
||||||
@ -43,13 +43,16 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config bison flex ];
|
||||||
buildInputs = [ tcl readline libffi python3 bison flex protobuf zlib ];
|
buildInputs = [ tcl readline libffi python3 protobuf zlib ];
|
||||||
|
|
||||||
makeFlags = [ "ENABLE_PROTOBUF=1" "PREFIX=${placeholder "out"}"];
|
makeFlags = [ "ENABLE_PROTOBUF=1" "PREFIX=${placeholder "out"}"];
|
||||||
|
|
||||||
patchPhase = ''
|
patches = [
|
||||||
patch -p1 < ${./plugin-search-dirs.patch}
|
./plugin-search-dirs.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
substituteInPlace ./Makefile \
|
substituteInPlace ./Makefile \
|
||||||
--replace 'echo UNKNOWN' 'echo ${builtins.substring 0 10 src.rev}'
|
--replace 'echo UNKNOWN' 'echo ${builtins.substring 0 10 src.rev}'
|
||||||
|
|
||||||
@ -94,7 +97,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Open RTL synthesis framework and tools";
|
description = "Open RTL synthesis framework and tools";
|
||||||
homepage = "http://www.clifford.at/yosys/";
|
homepage = "http://www.clifford.at/yosys/";
|
||||||
license = licenses.isc;
|
license = licenses.isc;
|
||||||
|
Loading…
Reference in New Issue
Block a user