Merge branch 'master' into staging

This commit is contained in:
Vladimír Čunát
2019-09-02 23:25:24 +02:00
277 changed files with 4766 additions and 1895 deletions

View File

@@ -1,10 +1,12 @@
{ stdenv, fetchFromGitHub, cmake
, boost, python3, eigen
, icestorm, trellis
, llvmPackages
, enableGui ? true
, wrapQtAppsHook
, qtbase
, OpenGL ? null
}:
let
@@ -12,13 +14,13 @@ let
in
with stdenv; mkDerivation rec {
pname = "nextpnr";
version = "2019.08.21";
version = "2019.08.31";
src = fetchFromGitHub {
owner = "yosyshq";
repo = "nextpnr";
rev = "c192ba261d77ad7f0a744fb90b01e4a5b63938c4";
sha256 = "0g2ar1z89b31qw5vgqj2rrcv9rzncs94184dgcsrz19p866654mf";
rev = "c0b7379e8672b6263152d5e340e62f22179fdc8b";
sha256 = "174n962xiwyzy53cn192h9rq95h951k3xy6bs43p5ya592ai5mjh";
};
nativeBuildInputs
@@ -26,7 +28,8 @@ with stdenv; mkDerivation rec {
++ (lib.optional enableGui wrapQtAppsHook);
buildInputs
= [ boostPython python3 eigen ]
++ (lib.optional enableGui qtbase);
++ (lib.optional enableGui qtbase)
++ (lib.optional stdenv.cc.isClang llvmPackages.openmp);
enableParallelBuilding = true;
cmakeFlags =
@@ -39,7 +42,10 @@ with stdenv; mkDerivation rec {
"-DSERIALIZE_CHIPDB=OFF"
# use PyPy for icestorm if enabled
"-DPYTHON_EXECUTABLE=${icestorm.pythonInterp}"
] ++ (lib.optional (!enableGui) "-DBUILD_GUI=OFF");
]
++ (lib.optional (!enableGui) "-DBUILD_GUI=OFF")
++ (lib.optional (enableGui && stdenv.isDarwin)
"-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks");
# Fix the version number. This is a bit stupid (and fragile) in practice
# but works ok. We should probably make this overrideable upstream.

View File

@@ -34,6 +34,6 @@ stdenv.mkDerivation rec {
homepage = http://sdcc.sourceforge.net/;
license = with licenses; if (gputils == null) then gpl2 else unfreeRedistributable;
maintainers = with maintainers; [ bjornfor yorickvp ];
platforms = platforms.linux;
platforms = platforms.all;
};
}

View File

@@ -8,14 +8,14 @@ with builtins;
stdenv.mkDerivation rec {
pname = "yosys";
version = "2019.08.21";
version = "2019.09.01";
srcs = [
(fetchFromGitHub {
owner = "yosyshq";
repo = "yosys";
rev = "fe1b2337fd7950e1d563be5b8ccbaa81688261e4";
sha256 = "0z7sngc2z081yyhzh8c2kchg48sp2333hn1wa94q5vsgnyzlqrdw";
rev = "4aa505d1b254b3fbb66af2d95b396a8f077da9d0";
sha256 = "16rhwmn1z2ppaq3wycgq713krq48s80a6h57vgzjzj17hgncg7hs";
name = "yosys";
})