From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: [PATCH 3/5] gnu: arduino: Add arduino-hardware
Date: Tue, 16 Aug 2016 20:36:30 +0200 [thread overview]
Message-ID: <20160816183632.30820-4-dannym@scratchpost.org> (raw)
In-Reply-To: <20160816183632.30820-1-dannym@scratchpost.org>
[-- Attachment #1: Type: text/plain, Size: 187 bytes --]
* gnu/packages/arduino.scm (arduino-hardware): New variable.
---
gnu/packages/arduino.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0003-gnu-arduino-Add-arduino-hardware.patch --]
[-- Type: text/x-patch; name="0003-gnu-arduino-Add-arduino-hardware.patch", Size: 3031 bytes --]
diff --git a/gnu/packages/arduino.scm b/gnu/packages/arduino.scm
index b8d9aba..ae69c04 100644
--- a/gnu/packages/arduino.scm
+++ b/gnu/packages/arduino.scm
@@ -38,3 +38,56 @@
(mkdir-p out-share)
(copy-recursively ,filename out-share-part))))
+(define-public arduino-hardware
+ (package
+ (name "arduino-hardware")
+ (version "1.6.10")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/arduino/Arduino/archive/" version ".tar.gz"))
+ (sha256
+ (base32
+ "15gbg64i2ac6d0mlnbla567sn26494cvqwf5q53xzf4b5v2rb0jc"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Delete bundled jar archives.
+ (for-each delete-file (find-files "." "\\.jar$"))
+ #t))
+ (patches (search-patches "arduino-hardware-patch-out-__cxa_guard_acquire.patch"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ; no tests exist
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure)
+ (delete 'build)
+ (add-after 'unpack 'prepare-dependencies
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ ;; this is intended to just prepare arduino inputs where its build system expects them
+ (for-each (lambda (input)
+ (let* ((key (car input))
+ (out-dir (assoc-ref outputs "out"))
+ (destination-dir (string-append out-dir "/share/arduino")))
+ (if (string-prefix? "arduino-" key)
+ (let* ((basename
+ (string-drop key (string-length "arduino-")))
+ (target-outdir (assoc-ref inputs key))
+ (target-dir (string-append target-outdir "/share/arduino"))
+ (target (string-append target-dir "/" basename))
+ (destination (string-append destination-dir "/" basename)))
+ (mkdir-p destination-dir)
+ (symlink target destination)
+ #t))))
+ inputs)
+ #t))
+ (add-before 'build 'chdir
+ (lambda _
+ (chdir "hardware")))
+ (replace 'install ,(arduino-installer "hardware")))))
+ (home-page "https://www.arduino.cc/")
+ (synopsis "Arduino Hardware Spec Files")
+ (description "arduino-hardware contains Arduino Hardware Spec Files (boards.txt etc).")
+ ;; GPL covers the main body ("app", "core"). LGPL covers the remainder.
+ (license license:lgpl2.1+))) ; FIXME check
next prev parent reply other threads:[~2016-08-16 18:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-16 18:36 [PATCH 0/5] gnu: Add Arduino tools Danny Milosavljevic
2016-08-16 18:36 ` [PATCH 1/5] gnu: Add "arduino" module Danny Milosavljevic
2016-08-16 22:40 ` Eric Bavier
2016-08-16 18:36 ` [PATCH 2/5] gnu: arduino: Add "arduino-installer" helper Danny Milosavljevic
2016-08-16 18:36 ` Danny Milosavljevic [this message]
2016-08-16 22:53 ` [PATCH 3/5] gnu: arduino: Add arduino-hardware Eric Bavier
2016-08-16 18:36 ` [PATCH 4/5] gnu: arduino: Add arduino-libraries Danny Milosavljevic
2016-08-16 22:56 ` Eric Bavier
2016-08-16 23:23 ` Danny Milosavljevic
2016-08-16 18:36 ` [PATCH 5/5] gnu: Add arduino-makefile Danny Milosavljevic
2016-08-17 5:02 ` Eric Bavier
2016-08-17 9:03 ` Danny Milosavljevic
2016-08-16 18:49 ` Maven Danny Milosavljevic
2016-08-17 6:16 ` Maven Ricardo Wurmus
2016-08-30 9:21 ` [PATCH 0/5] gnu: Add Arduino tools Ludovic Courtès
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=20160816183632.30820-4-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).