yosys: 2018.02.04 -> 2018.02.14
Also fixes 'yosys -V' output to give the correct Git SHA1 revision. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
4b09bee83e
commit
c2973f986d
|
@ -2,18 +2,24 @@
|
||||||
, pkgconfig, tcl, readline, libffi, python3, bison, flex
|
, pkgconfig, tcl, readline, libffi, python3, bison, flex
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
with builtins;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "yosys-${version}";
|
name = "yosys-${version}";
|
||||||
version = "2018.02.04";
|
version = "2018.02.14";
|
||||||
|
|
||||||
srcs = [
|
srcs = [
|
||||||
(fetchFromGitHub {
|
(fetchFromGitHub {
|
||||||
owner = "yosyshq";
|
owner = "yosyshq";
|
||||||
repo = "yosys";
|
repo = "yosys";
|
||||||
rev = "0659d9eac7b546ee6f5acab46dbc83c91d556a34";
|
rev = "c1abd3b02cab235334342f3520e2535eb74c5792";
|
||||||
sha256 = "1hy21gxcp3q3hlbh5sh46h2340r11fwalkb9if9sbpc9y3279njj";
|
sha256 = "0pzrplv4p0qzy115rg19lxv4w274iby337zfd7hhlinnpx3gzqvw";
|
||||||
name = "yosys";
|
name = "yosys";
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# NOTE: the version of abc used here is synchronized with
|
||||||
|
# the one in the yosys Makefile of the version above;
|
||||||
|
# keep them the same for quality purposes.
|
||||||
(fetchFromBitbucket {
|
(fetchFromBitbucket {
|
||||||
owner = "alanmi";
|
owner = "alanmi";
|
||||||
repo = "abc";
|
repo = "abc";
|
||||||
|
@ -27,6 +33,12 @@ 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 ];
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace ./Makefile \
|
||||||
|
--replace 'echo UNKNOWN' 'echo ${substring 0 10 (elemAt srcs 0).rev}'
|
||||||
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
chmod -R u+w ../yosys-abc
|
chmod -R u+w ../yosys-abc
|
||||||
ln -s ../yosys-abc abc
|
ln -s ../yosys-abc abc
|
||||||
|
|
Loading…
Reference in a new issue