unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: [PATCH v2 6/6] gnu: fpga: Add arachne-pnr.
Date: Tue, 16 Aug 2016 20:06:53 +0200	[thread overview]
Message-ID: <20160816180653.22524-7-dannym@scratchpost.org> (raw)
In-Reply-To: <20160816180653.22524-1-dannym@scratchpost.org>

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]


* gnu/packages/fpga.scm (arachne-pnr): Add variable.
---
 gnu/packages/fpga.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0006-gnu-fpga-Add-arachne-pnr.patch --]
[-- Type: text/x-patch; name="0006-gnu-fpga-Add-arachne-pnr.patch", Size: 2370 bytes --]

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 the desired format.")
     (description "Project IceStorm - Lattice iCE40 FPGAs Bitstream Tools. 
 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 = .*") (string-append "DESTDIR = "
+                                              (assoc-ref outputs "out")
+                                              "\n"))
+             (("ICEBOX = .*") (string-append "ICEBOX = "
+                                              (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)))) ; FIXME check license

      parent reply	other threads:[~2016-08-16 18:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-16 18:06 [PATCH v2 0/6] Add FPGA Tools Danny Milosavljevic
2016-08-16 18:06 ` [PATCH v2 1/6] gnu: Add fpga module Danny Milosavljevic
2016-08-16 18:33   ` Thompson, David
2016-08-16 18:06 ` [PATCH v2 2/6] gnu: fpga: Add abc Danny Milosavljevic
2016-08-16 18:40   ` Thompson, David
2016-08-16 19:57     ` Leo Famulari
2016-08-18 10:24   ` Ricardo Wurmus
2016-08-18 13:51     ` Danny Milosavljevic
2016-08-18 15:10       ` Danny Milosavljevic
2016-08-19  7:14         ` Ricardo Wurmus
2016-08-19  7:44         ` Pjotr Prins
2016-08-16 18:06 ` [PATCH v2 3/6] gnu: fpga: Add iverilog Danny Milosavljevic
2016-08-16 18:30   ` Thompson, David
2016-08-18 10:09     ` Danny Milosavljevic
2016-08-16 18:06 ` [PATCH v2 4/6] gnu: fpga: Add yosys Danny Milosavljevic
2016-08-16 18:06 ` [PATCH v2 5/6] gnu: fpga: Add icestorm Danny Milosavljevic
2016-08-16 18:06 ` Danny Milosavljevic [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160816180653.22524-7-dannym@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).