From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v2 5/5] gnu: Add arachne-pnr. Date: Thu, 18 Aug 2016 17:18:33 +0200 Message-ID: <20160818151833.29540-6-dannym@scratchpost.org> References: <20160818151833.29540-1-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.9.1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baP5h-0007OB-17 for guix-devel@gnu.org; Thu, 18 Aug 2016 11:18:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1baP5f-0000se-MT for guix-devel@gnu.org; Thu, 18 Aug 2016 11:18:44 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:37626) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1baP5f-0000sJ-F6 for guix-devel@gnu.org; Thu, 18 Aug 2016 11:18:43 -0400 In-Reply-To: <20160818151833.29540-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.9.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable gnu: Add arachne-pnr. * gnu/packages/fpga.scm (arachne-pnr): New variable. --- gnu/packages/fpga.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) --------------2.9.1 Content-Type: text/x-patch; name="0005-gnu-Add-arachne-pnr.patch" Content-Disposition: attachment; filename="0005-gnu-Add-arachne-pnr.patch" Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index 8c41cd3..2d0d617 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -227,3 +227,47 @@ For synthesis, the compiler generates netlists in th= e desired format.") (description "Project IceStorm - Lattice iCE40 FPGAs Bitstream Tools= .=20 Includes the actual FTDI connector.") (license license:isc)))) + +(define-public arachne-pnr + (let ((commit "52e69ed207342710080d85c7c639480e74a021d7") + (revision "1")) + (package + (name "arachne-pnr") + (version (string-append "0.0-" revision "-" (string-take commit 9))) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cseed/arachne-pnr.git") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "15bdw5yxj76lxrwksp6liwmr6l1x77isf4bs50ys9rsnmiwh8c3w= ")))) + (build-system gnu-build-system) + (arguments + `(#:test-target "test" + #:phases (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs inputs #:allow-other-keys) + (substitute* '("Makefile") + (("DESTDIR =3D .*") (string-append "DESTDIR =3D " + (assoc-ref outputs "out") + "\n")) + (("ICEBOX =3D .*") (string-append "ICEBOX =3D " + (assoc-ref inputs "icestorm= ") + "/share/icebox\n"))) + (substitute* '("./tests/fsm/generate.py" + "./tests/combinatorial/generate.py") + (("#!/usr/bin/python") "#!/usr/bin/python2")) + #t))))) + (inputs + `(("icestorm" ,icestorm))) + (native-inputs + `(("git" ,git) ; for determining its own version string + ("yosys" ,yosys) ; for tests + ("perl" ,perl) ; for shasum + ("python-2" ,python-2))) ; for tests + (home-page "https://github.com/cseed/arachne-pnr") + (synopsis "Place-and-Route tool for FPGAs") + (description "Arachne-PNR is a Place-and-Route Tool For FPGAs.") + (license license:gpl2)))) --------------2.9.1--