From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel@gnu.org
Subject: [PATCH 2/5] gnu: arduino: Add "arduino-installer" helper.
Date: Tue, 16 Aug 2016 20:36:29 +0200 [thread overview]
Message-ID: <20160816183632.30820-3-dannym@scratchpost.org> (raw)
In-Reply-To: <20160816183632.30820-1-dannym@scratchpost.org>
[-- Attachment #1: Type: text/plain, Size: 148 bytes --]
* gnu/packages/arduino.scm (arduino-installer): New procedure.
---
gnu/packages/arduino.scm | 9 +++++++++
1 file changed, 9 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-arduino-Add-arduino-installer-helper.patch --]
[-- Type: text/x-patch; name="0002-gnu-arduino-Add-arduino-installer-helper.patch", Size: 658 bytes --]
diff --git a/gnu/packages/arduino.scm b/gnu/packages/arduino.scm
index fc9712c..b8d9aba 100644
--- a/gnu/packages/arduino.scm
+++ b/gnu/packages/arduino.scm
@@ -29,3 +29,12 @@
#:use-module (gnu packages flashing-tools)
#:use-module (gnu packages java)
#:use-module (gnu packages python))
+
+(define (arduino-installer filename)
+ `(lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (out-share (string-append out "/share/arduino"))
+ (out-share-part (string-append out-share "/" ,filename)))
+ (mkdir-p out-share)
+ (copy-recursively ,filename out-share-part))))
+
next prev parent reply other threads:[~2016-08-16 18:37 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 ` Danny Milosavljevic [this message]
2016-08-16 18:36 ` [PATCH 3/5] gnu: arduino: Add arduino-hardware Danny Milosavljevic
2016-08-16 22:53 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160816183632.30820-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.