From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v2 6/6] gnu: fpga: Add arachne-pnr. Date: Tue, 16 Aug 2016 20:06:53 +0200 Message-ID: <20160816180653.22524-7-dannym@scratchpost.org> References: <20160816180653.22524-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]:38297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZilt-0002Ma-AV for guix-devel@gnu.org; Tue, 16 Aug 2016 14:07:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZilr-0007yz-3L for guix-devel@gnu.org; Tue, 16 Aug 2016 14:07:28 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:43550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZilq-0007yn-T5 for guix-devel@gnu.org; Tue, 16 Aug 2016 14:07:27 -0400 In-Reply-To: <20160816180653.22524-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/packages/fpga.scm (arachne-pnr): Add variable. --- gnu/packages/fpga.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) --------------2.9.1 Content-Type: text/x-patch; name="0006-gnu-fpga-Add-arachne-pnr.patch" Content-Disposition: attachment; filename="0006-gnu-fpga-Add-arachne-pnr.patch" Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index 25c4570..ed5bc18 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -226,3 +226,46 @@ 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)))) ; FIXME more licenses? + +(define-public arachne-pnr + (let ((commit "52e69ed207342710080d85c7c639480e74a021d7")) + (package + (name "arachne-pnr") + (version (string-append "0.0-" (string-take commit 7))) + (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 "icestor= m") + "/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)))) ; FIXME check license --------------2.9.1--