Merge remote-tracking branch 'upstream/master' into HEAD

This commit is contained in:
Frederik Rietdijk
2018-02-14 21:30:08 +01:00
134 changed files with 2619 additions and 2325 deletions

View File

@@ -1,21 +1,29 @@
{ stdenv, fetchFromGitHub, icestorm }:
with builtins;
stdenv.mkDerivation rec {
name = "arachne-pnr-${version}";
version = "2018.02.04";
version = "2018.02.14";
src = fetchFromGitHub {
owner = "cseed";
repo = "arachne-pnr";
rev = "c21df0062c6ee13e8c8280cefbb7c017823336c0";
sha256 = "1ah1gn07av3ff5lnay4p7dahaacbyj0mfakbx7g5fs3p1m1m8p1k";
rev = "b54675413f9aac1d9a1fb0a8e9354bec2a2a8f3c";
sha256 = "06slsb239qk1r2g96n1g37yp8314cy7yi4g1yf86fr87fr11ml8l";
};
enableParallelBuilding = true;
makeFlags =
[ "PREFIX=$(out)" "ICEBOX=${icestorm}/share/icebox"
[ "PREFIX=$(out)"
"ICEBOX=${icestorm}/share/icebox"
];
patchPhase = ''
substituteInPlace ./Makefile \
--replace 'echo UNKNOWN' 'echo ${substring 0 10 src.rev}'
'';
meta = {
description = "Place and route tool for FPGAs";
longDescription = ''

View File

@@ -7,11 +7,11 @@ assert lib.versionAtLeast ocamlPackages.ocaml.version "4.02";
stdenv.mkDerivation rec {
name = "compcert-${version}";
version = "3.1";
version = "3.2";
src = fetchurl {
url = "http://compcert.inria.fr/release/${name}.tgz";
sha256 = "0irfwlw2chalp0g2gw0makc699hn3z37sha1a239p9d90mzx03cx";
sha256 = "11q4121s0rxva63njjwya7syfx9w0p4hzr6avh8s57vfbrcakc93";
};
buildInputs = [ coq ]
@@ -20,7 +20,6 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
configurePhase = ''
substituteInPlace VERSION --replace '3.0.1' '3.1'
substituteInPlace ./configure --replace '{toolprefix}gcc' '{toolprefix}cc'
./configure -clightgen -prefix $out -toolprefix ${tools}/bin/ '' +
(if stdenv.isDarwin then "x86_64-macosx" else "x86_64-linux");

View File

@@ -2,18 +2,24 @@
, pkgconfig, tcl, readline, libffi, python3, bison, flex
}:
with builtins;
stdenv.mkDerivation rec {
name = "yosys-${version}";
version = "2018.02.04";
version = "2018.02.14";
srcs = [
(fetchFromGitHub {
owner = "yosyshq";
repo = "yosys";
rev = "0659d9eac7b546ee6f5acab46dbc83c91d556a34";
sha256 = "1hy21gxcp3q3hlbh5sh46h2340r11fwalkb9if9sbpc9y3279njj";
rev = "c1abd3b02cab235334342f3520e2535eb74c5792";
sha256 = "0pzrplv4p0qzy115rg19lxv4w274iby337zfd7hhlinnpx3gzqvw";
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 {
owner = "alanmi";
repo = "abc";
@@ -27,6 +33,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ tcl readline libffi python3 bison flex ];
patchPhase = ''
substituteInPlace ./Makefile \
--replace 'echo UNKNOWN' 'echo ${substring 0 10 (elemAt srcs 0).rev}'
'';
preBuild = ''
chmod -R u+w ../yosys-abc
ln -s ../yosys-abc abc