From c1ec39d47be64499956d51e5684dadf69bf4c352 Mon Sep 17 00:00:00 2001 From: Shell Turner Date: Tue, 29 Dec 2015 16:29:44 +0000 Subject: [PATCH 1/3] icestorm: init at 2015.12.29 --- pkgs/development/tools/icestorm/default.nix | 31 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/tools/icestorm/default.nix diff --git a/pkgs/development/tools/icestorm/default.nix b/pkgs/development/tools/icestorm/default.nix new file mode 100644 index 000000000000..726b805fe91a --- /dev/null +++ b/pkgs/development/tools/icestorm/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, python3, libftdi }: + +stdenv.mkDerivation rec { + name = "icestorm-${version}"; + version = "2015.12.29"; + + src = fetchFromGitHub { + owner = "cliffordwolf"; + repo = "icestorm"; + rev = "7852514c2cde208da87b62777b2c5e482092f50d"; + sha256 = "1ya1nk5h28hjdmd8jdrlfiayr2434rnvi133gs1p0ay21qb3iwfz"; + }; + + buildInputs = [ python3 libftdi ]; + preBuild = '' + makeFlags="DESTDIR=$out $makeFlags" + ''; + + meta = { + description = "Documentation and tools for Lattice iCE40 FPGAs"; + longDescription = '' + Project IceStorm aims at reverse engineering and + documenting the bitstream format of Lattice iCE40 + FPGAs and providing simple tools for analyzing and + creating bitstream files. + ''; + homepage = http://www.clifford.at/icestorm/; + license = stdenv.lib.licenses.isc; + maintainers = [ stdenv.lib.maintainers.shell ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6ec1aff8776c..fe73bf83c9a0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5755,6 +5755,8 @@ let hyenae = callPackage ../tools/networking/hyenae { }; + icestorm = callPackage ../development/tools/icestorm { }; + icmake = callPackage ../development/tools/build-managers/icmake { }; iconnamingutils = callPackage ../development/tools/misc/icon-naming-utils { From f11ec866ada39234a32f1637c72ff5ad8e3ff973 Mon Sep 17 00:00:00 2001 From: Shell Turner Date: Tue, 29 Dec 2015 16:30:45 +0000 Subject: [PATCH 2/3] arachne-pnr: init at 2015.12.29 --- .../compilers/arachne-pnr/default.nix | 35 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/compilers/arachne-pnr/default.nix diff --git a/pkgs/development/compilers/arachne-pnr/default.nix b/pkgs/development/compilers/arachne-pnr/default.nix new file mode 100644 index 000000000000..7926bf273acb --- /dev/null +++ b/pkgs/development/compilers/arachne-pnr/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, icestorm }: + +stdenv.mkDerivation rec { + name = "arachne-pnr-${version}"; + version = "2015.12.29"; + + src = fetchFromGitHub { + owner = "cseed"; + repo = "arachne-pnr"; + rev = "1a4fdf96a7fd08806c032d41a2443c8e17c72c80"; + sha256 = "1dj7ycffwkmlsh12117fbybkdfnlhxbbxkbfgwfyvcgmg3cacgl1"; + }; + + preBuild = '' + makeFlags="DESTDIR=$out $makeFlags" + ''; + makeFlags = "ICEBOX=${icestorm}/share/icebox"; + + meta = { + description = "Place and route tool for FPGAs"; + longDescription = '' + Arachne-pnr implements the place and route step of + the hardware compilation process for FPGAs. It + accepts as input a technology-mapped netlist in BLIF + format, as output by the Yosys [0] synthesis suite + for example. It currently targets the Lattice + Semiconductor iCE40 family of FPGAs [1]. Its output + is a textual bitstream representation for assembly by + the IceStorm [2] icepack command. + ''; + homepage = https://github.com/cseed/arachne-pnr; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.shell ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe73bf83c9a0..6c8ea3194020 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3776,6 +3776,8 @@ let aliceml = callPackage ../development/compilers/aliceml { }; + arachne-pnr = callPackage ../development/compilers/arachne-pnr { }; + aspectj = callPackage ../development/compilers/aspectj { }; ats = callPackage ../development/compilers/ats { }; From c485543c7c1aca6d32e755d5736c035ba13f5c5a Mon Sep 17 00:00:00 2001 From: Shell Turner Date: Tue, 29 Dec 2015 16:31:18 +0000 Subject: [PATCH 3/3] yosys: init at 2015.12.29 --- pkgs/development/compilers/yosys/default.nix | 50 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/compilers/yosys/default.nix diff --git a/pkgs/development/compilers/yosys/default.nix b/pkgs/development/compilers/yosys/default.nix new file mode 100644 index 000000000000..cfaabb0a71a9 --- /dev/null +++ b/pkgs/development/compilers/yosys/default.nix @@ -0,0 +1,50 @@ +{ stdenv, fetchFromGitHub, fetchFromBitbucket, pkgconfig, tcl, readline, libffi, python3, bison, flex }: + +stdenv.mkDerivation rec { + name = "yosys-${version}"; + version = "2015.12.29"; + + srcs = [ + (fetchFromGitHub { + owner = "cliffordwolf"; + repo = "yosys"; + rev = "1d62f8710f04fec405ef79b9e9a4a031afcf7d42"; + sha256 = "0q1dk9in3gmrihb58pjckncx56lj7y4b6y34jgb68f0fh91fdvfx"; + name = "yosys"; + }) + (fetchFromBitbucket { + owner = "alanmi"; + repo = "abc"; + rev = "c3698e053a7a"; + sha256 = "05p0fvbr7xvb6w3d7j2r6gynr3ljb6r5q6jvn2zs3ysn2b003qwd"; + name = "abc"; + }) + ]; + sourceRoot = "yosys"; + + buildInputs = [ pkgconfig tcl readline libffi python3 bison flex ]; + preBuild = '' + chmod -R u+w ../abc + ln -s ../abc abc + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6c8ea3194020..d22600fd0eb3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5001,6 +5001,8 @@ let yasm = callPackage ../development/compilers/yasm { }; + yosys = callPackage ../development/compilers/yosys { }; + ### DEVELOPMENT / INTERPRETERS