From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v3 4/6] gnu: Add icestorm. Date: Tue, 27 Sep 2016 02:04:58 +0200 Message-ID: <20160927000500.10996-5-dannym@scratchpost.org> References: <20160927000500.10996-1-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.10.0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boftf-0005ts-O7 for guix-devel@gnu.org; Mon, 26 Sep 2016 20:05:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boftb-0005gh-0y for guix-devel@gnu.org; Mon, 26 Sep 2016 20:05:18 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:54907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bofta-0005f2-Qn for guix-devel@gnu.org; Mon, 26 Sep 2016 20:05:14 -0400 In-Reply-To: <20160927000500.10996-1-dannym@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------2.10.0 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable * gnu/packages/fpga.scm (icestorm): New variable. --- gnu/packages/fpga.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) --------------2.10.0 Content-Type: text/x-patch; name="0004-gnu-Add-icestorm.patch" Content-Disposition: attachment; filename="0004-gnu-Add-icestorm.patch" Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index 763d746..8c41cd3 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -189,3 +189,41 @@ For synthesis, the compiler generates netlists in th= e desired format.") (synopsis "FPGA Verilog RTL synthesizer") (description "Yosys synthesizes Verilog-2005.") (license license:isc))) + +(define-public icestorm + (let ((commit "12b2295c9087d94b75e374bb205ae4d76cf17e2f") + (revision "1")) + (package + (name "icestorm") + (version (string-append "0.0-" revision "-" (string-take commit 9))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cliffordwolf/icestorm.git"= ) + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "1mmzlqvap6w8n4qzv3idvy51arkgn03692ssplwncy3akjrbsd2b= ")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; no unit tests that don't need an FPGA exist. + #:make-flags (list "CC=3Dgcc" "CXX=3Dg++" + (string-append "PREFIX=3D" (assoc-ref %outputs= "out"))) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-usr-local + (lambda _ + (substitute* "iceprog/Makefile" + (("-L/usr/local/lib") "")))) + (delete 'configure)))) + (inputs + `(("libftdi" ,libftdi))) + (native-inputs + `(("python-3" ,python) + ("pkg-config" ,pkg-config))) + (home-page "http://www.clifford.at/icestorm/") + (synopsis "Project IceStorm - Lattice iCE40 FPGAs bitstream tools") + (description "Project IceStorm - Lattice iCE40 FPGAs Bitstream Tools= .=20 +Includes the actual FTDI connector.") + (license license:isc)))) --------------2.10.0--