all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: [PATCH v2 2/6] gnu: fpga: Add abc.
Date: Tue, 16 Aug 2016 20:06:49 +0200	[thread overview]
Message-ID: <20160816180653.22524-3-dannym@scratchpost.org> (raw)
In-Reply-To: <20160816180653.22524-1-dannym@scratchpost.org>

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


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


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

diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm
index 112d53b..7571f87 100644
--- a/gnu/packages/fpga.scm
+++ b/gnu/packages/fpga.scm
@@ -38,3 +38,46 @@
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages libftdi))
 
+;; To compile as C code (default):
+;;   make sure that CC=gcc and ABC_NAMESPACE is not defined.
+;; To compile as C++ code with namespaces:
+;;   make sure that CC=g++ and ABC_NAMESPACE is set to the namespace.
+;;   For example, add -DABC_NAMESPACE=xxx to OPTFLAGS.
+(define-public abc
+ (let ((commit "5ae4b975c49c"))
+  (package
+    (name "abc")
+    (version (string-append "0.0-" (string-take commit 7)))
+    (source (origin
+              (method url-fetch)
+              (uri
+               (string-append "https://bitbucket.org/alanmi/abc/get/"
+                              commit ".zip"))
+              (file-name (string-append name "-" version "-checkout.zip"))
+              (sha256
+                (base32
+                   "1syygi1x40rdryih3galr4q8yg1w5bvdzl75hd27v1xq0l5bz3d0"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("unzip" ,unzip)))
+    (inputs
+     `(("readline" ,readline)))
+    (arguments
+     `(#:tests? #f ; 'check target does not exist.
+       #:phases
+        (modify-phases %standard-phases
+          (delete 'configure)
+          (replace 'install
+            (lambda* (#:key outputs #:allow-other-keys)
+              (let* ((out (assoc-ref outputs "out"))
+                     (outbin (string-append out "/bin"))
+                     (target (string-append outbin "/abc")))
+                    (mkdir-p outbin)
+                    (copy-file "abc" target)))))))
+    (home-page "http://people.eecs.berkeley.edu/~alanmi/abc/")
+    (synopsis "Sequential Logic Synthesis and Formal Verification")
+    (description "ABC is a program for sequential logic synthesis
+and formal verification.")
+    ;; FIXME use license: MIT Modern variant as described in:
+    ;;   <https://fedoraproject.org/wiki/Licensing:MIT>
+    (license license:expat))))

  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 ` Danny Milosavljevic [this message]
2016-08-16 18:40   ` [PATCH v2 2/6] gnu: fpga: Add abc 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 ` [PATCH v2 6/6] gnu: fpga: Add arachne-pnr Danny Milosavljevic

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

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

  git send-email \
    --in-reply-to=20160816180653.22524-3-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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.