diff options
| author | Danny Milosavljevic <dannym@scratchpost.org> | 2016-09-27 02:04:55 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2016-10-09 18:19:10 +0300 |
| commit | adba5f08deeb1826f7f927e0c697246d3ab13f29 (patch) | |
| tree | 21db2812a49e06d30287ec49fdf7c949de2bfbbd /gnu | |
| parent | 7f43ff965fc704bfbc96c0a31654e048bcae8a64 (diff) | |
gnu: Add abc.
* gnu/packages/fpga.scm (abc): New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/fpga.scm | 75 |
2 files changed, 76 insertions, 0 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index f1307ef9c67..988c4ab96b5 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -128,6 +128,7 @@ GNU_SYSTEM_MODULES = \ | |||
| 128 | %D%/packages/fltk.scm \ | 128 | %D%/packages/fltk.scm \ |
| 129 | %D%/packages/fonts.scm \ | 129 | %D%/packages/fonts.scm \ |
| 130 | %D%/packages/fontutils.scm \ | 130 | %D%/packages/fontutils.scm \ |
| 131 | %D%/packages/fpga.scm \ | ||
| 131 | %D%/packages/freedesktop.scm \ | 132 | %D%/packages/freedesktop.scm \ |
| 132 | %D%/packages/freeipmi.scm \ | 133 | %D%/packages/freeipmi.scm \ |
| 133 | %D%/packages/ftp.scm \ | 134 | %D%/packages/ftp.scm \ |
diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm new file mode 100644 index 00000000000..f757a2823e9 --- /dev/null +++ b/gnu/packages/fpga.scm | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | ||
| 2 | ;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org> | ||
| 3 | ;;; | ||
| 4 | ;;; This file is part of GNU Guix. | ||
| 5 | ;;; | ||
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | ||
| 7 | ;;; under the terms of the GNU General Public License as published by | ||
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 9 | ;;; your option) any later version. | ||
| 10 | ;;; | ||
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | ||
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | ;;; GNU General Public License for more details. | ||
| 15 | ;;; | ||
| 16 | ;;; You should have received a copy of the GNU General Public License | ||
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | (define-module (gnu packages fpga) | ||
| 20 | #:use-module ((guix licenses) #:prefix license:) | ||
| 21 | #:use-module (guix packages) | ||
| 22 | #:use-module (guix download) | ||
| 23 | #:use-module (guix git-download) | ||
| 24 | #:use-module (guix build-system gnu) | ||
| 25 | #:use-module (guix build-system cmake) | ||
| 26 | #:use-module (gnu packages) | ||
| 27 | #:use-module (gnu packages pkg-config) | ||
| 28 | #:use-module (gnu packages tcl) | ||
| 29 | #:use-module (gnu packages readline) | ||
| 30 | #:use-module (gnu packages python) | ||
| 31 | #:use-module (gnu packages bison) | ||
| 32 | #:use-module (gnu packages flex) | ||
| 33 | #:use-module (gnu packages libffi) | ||
| 34 | #:use-module (gnu packages zip) | ||
| 35 | #:use-module (gnu packages perl) | ||
| 36 | #:use-module (gnu packages ghostscript) | ||
| 37 | #:use-module (gnu packages gawk) | ||
| 38 | #:use-module (gnu packages version-control) | ||
| 39 | #:use-module (gnu packages libftdi)) | ||
| 40 | |||
| 41 | (define-public abc | ||
| 42 | (let ((commit "5ae4b975c49c") | ||
| 43 | (revision "1")) | ||
| 44 | (package | ||
| 45 | (name "abc") | ||
| 46 | (version (string-append "0.0-" revision "-" (string-take commit 9))) | ||
| 47 | (source (origin | ||
| 48 | (method url-fetch) | ||
| 49 | (uri | ||
| 50 | (string-append "https://bitbucket.org/alanmi/abc/get/" commit ".zip")) | ||
| 51 | (file-name (string-append name "-" version "-checkout.zip")) | ||
| 52 | (sha256 | ||
| 53 | (base32 | ||
| 54 | "1syygi1x40rdryih3galr4q8yg1w5bvdzl75hd27v1xq0l5bz3d0")))) | ||
| 55 | (build-system gnu-build-system) | ||
| 56 | (native-inputs | ||
| 57 | `(("unzip" ,unzip))) | ||
| 58 | (inputs | ||
| 59 | `(("readline" ,readline))) | ||
| 60 | (arguments | ||
| 61 | `(#:tests? #f ; no check target | ||
| 62 | #:phases | ||
| 63 | (modify-phases %standard-phases | ||
| 64 | (delete 'configure) | ||
| 65 | (replace 'install | ||
| 66 | (lambda* (#:key outputs #:allow-other-keys) | ||
| 67 | (let* ((out (assoc-ref outputs "out")) | ||
| 68 | (out-bin (string-append out "/bin"))) | ||
| 69 | (install-file "abc" out-bin))))))) | ||
| 70 | (home-page "http://people.eecs.berkeley.edu/~alanmi/abc/") | ||
| 71 | (synopsis "Sequential logic synthesis and formal verification") | ||
| 72 | (description "ABC is a program for sequential logic synthesis and | ||
| 73 | formal verification.") | ||
| 74 | (license | ||
| 75 | (license:non-copyleft "https://fedoraproject.org/wiki/Licensing:MIT#Modern_Variants"))))) | ||
