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>

+15 -3
+15 -3
pkgs/development/compilers/yosys/default.nix
··· 2 2 , pkgconfig, tcl, readline, libffi, python3, bison, flex 3 3 }: 4 4 5 + with builtins; 6 + 5 7 stdenv.mkDerivation rec { 6 8 name = "yosys-${version}"; 7 - version = "2018.02.04"; 9 + version = "2018.02.14"; 8 10 9 11 srcs = [ 10 12 (fetchFromGitHub { 11 13 owner = "yosyshq"; 12 14 repo = "yosys"; 13 - rev = "0659d9eac7b546ee6f5acab46dbc83c91d556a34"; 14 - sha256 = "1hy21gxcp3q3hlbh5sh46h2340r11fwalkb9if9sbpc9y3279njj"; 15 + rev = "c1abd3b02cab235334342f3520e2535eb74c5792"; 16 + sha256 = "0pzrplv4p0qzy115rg19lxv4w274iby337zfd7hhlinnpx3gzqvw"; 15 17 name = "yosys"; 16 18 }) 19 + 20 + # NOTE: the version of abc used here is synchronized with 21 + # the one in the yosys Makefile of the version above; 22 + # keep them the same for quality purposes. 17 23 (fetchFromBitbucket { 18 24 owner = "alanmi"; 19 25 repo = "abc"; ··· 27 33 enableParallelBuilding = true; 28 34 nativeBuildInputs = [ pkgconfig ]; 29 35 buildInputs = [ tcl readline libffi python3 bison flex ]; 36 + 37 + patchPhase = '' 38 + substituteInPlace ./Makefile \ 39 + --replace 'echo UNKNOWN' 'echo ${substring 0 10 (elemAt srcs 0).rev}' 40 + ''; 41 + 30 42 preBuild = '' 31 43 chmod -R u+w ../yosys-abc 32 44 ln -s ../yosys-abc abc