2015-12-29 16:31:18 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchFromBitbucket, pkgconfig, tcl, readline, libffi, python3, bison, flex }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yosys-${version}";
|
2016-08-19 02:30:21 +01:00
|
|
|
version = "2016.08.18";
|
2015-12-29 16:31:18 +00:00
|
|
|
|
|
|
|
srcs = [
|
|
|
|
(fetchFromGitHub {
|
|
|
|
owner = "cliffordwolf";
|
|
|
|
repo = "yosys";
|
2016-08-19 02:30:21 +01:00
|
|
|
rev = "9b8e06bee177f53c34a9dd6dd907a822f21659be";
|
|
|
|
sha256 = "0x5c1bcayahn7pbgycxkxr6lkv9m0jpwfdlmyp2m9yzm2lpyw7dg";
|
2015-12-29 16:31:18 +00:00
|
|
|
name = "yosys";
|
|
|
|
})
|
|
|
|
(fetchFromBitbucket {
|
|
|
|
owner = "alanmi";
|
|
|
|
repo = "abc";
|
2016-08-19 02:30:21 +01:00
|
|
|
rev = "a2e5bc66a68a";
|
|
|
|
sha256 = "09yvhj53af91nc54gmy7cbp7yljfcyj68a87494r5xvdfnsj11gy";
|
|
|
|
name = "yosys-abc";
|
2015-12-29 16:31:18 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
sourceRoot = "yosys";
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig tcl readline libffi python3 bison flex ];
|
|
|
|
preBuild = ''
|
2016-08-19 02:30:21 +01:00
|
|
|
chmod -R u+w ../yosys-abc
|
|
|
|
ln -s ../yosys-abc abc
|
2015-12-29 16:31:18 +00:00
|
|
|
make config-gcc
|
|
|
|
echo 'ABCREV := default' >> Makefile.conf
|
|
|
|
makeFlags="PREFIX=$out $makeFlags"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Framework for RTL synthesis tools";
|
|
|
|
longDescription = ''
|
|
|
|
Yosys is a framework for RTL synthesis tools. It currently has
|
|
|
|
extensive Verilog-2005 support and provides a basic set of
|
|
|
|
synthesis algorithms for various application domains.
|
|
|
|
Yosys can be adapted to perform any synthesis job by combining
|
|
|
|
the existing passes (algorithms) using synthesis scripts and
|
|
|
|
adding additional passes as needed by extending the yosys C++
|
|
|
|
code base.
|
|
|
|
'';
|
|
|
|
homepage = http://www.clifford.at/yosys/;
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.shell ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-12-29 16:31:18 +00:00
|
|
|
};
|
|
|
|
}
|