From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Danny Milosavljevic <dannym@scratchpost.org>
Cc: 32923@debbugs.gnu.org
Subject: [bug#32923] [PATCH 0/3] Add Arduino basics.
Date: Fri, 01 Sep 2023 14:46:39 -0400 [thread overview]
Message-ID: <87o7il20kw.fsf_-_@gmail.com> (raw)
In-Reply-To: <20181003194413.3696-1-dannym@scratchpost.org> (Danny Milosavljevic's message of "Wed, 3 Oct 2018 21:44:11 +0200")
Hi Danny,
Danny Milosavljevic <dannym@scratchpost.org> writes:
> * gnu/packages/arduino.scm (arduino-installer): New procedure.
> (arduino-hardware): New variable.
> ---
> gnu/packages/arduino.scm | 106 +++++++++++++++++++++++++++++++++++++++
> 1 file changed, 106 insertions(+)
> create mode 100644 gnu/packages/arduino.scm
[...]
> +(define-public arduino-hardware
> + (package
> + (name "arduino-hardware")
> + (version "1.8.7")
> + (source (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/arduino/Arduino.git")
> + (commit version)))
> + (sha256
> + (base32
> + "0cp502jf3xsrisadkrmxzylds48x60vparxm5lfcrzw27hw0qxgq"))
> + (modules '((guix build utils)))
> + (snippet
> + '(begin
> + ;; Delete bundled jar archives.
> + (for-each delete-file (find-files "." "\\.jar$"))
> + #t))))
> + (build-system gnu-build-system)
> + (arguments
> + `(#:tests? #f ; No tests exist
> + #:modules ((guix build utils) (ice-9 match)
> + (guix build gnu-build-system))
> + #: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 (match-lambda
> + ((key . value)
> + (let* ((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))
The prepare-dependecies phase appears to expect "arduino-" prefixed
input labels, but there are no inputs specified, so it seems it'd be
useful? Am I missing something?
--
Thanks,
Maxim
next prev parent reply other threads:[~2023-09-01 18:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-03 19:42 [bug#32923] [PATCH 0/3] Add Arduino basics Danny Milosavljevic
2018-10-03 19:44 ` [bug#32923] [PATCH 1/3] gnu: Add arduino-hardware Danny Milosavljevic
2018-10-03 19:44 ` [bug#32923] [PATCH 2/3] gnu: Add arduino-libraries Danny Milosavljevic
2023-09-01 19:02 ` [bug#32923] [PATCH 0/3] Add Arduino basics Maxim Cournoyer
2018-10-03 19:44 ` [bug#32923] [PATCH 3/3] gnu: Add arduino-makefile Danny Milosavljevic
2023-09-01 18:46 ` Maxim Cournoyer [this message]
2018-10-09 7:44 ` [bug#32923] [PATCH 0/3] Add Arduino basics Björn Höfling
2018-10-09 15:26 ` Danny Milosavljevic
2018-10-09 20:42 ` Björn Höfling
2023-05-27 21:52 ` Robby Zambito
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=87o7il20kw.fsf_-_@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=32923@debbugs.gnu.org \
--cc=dannym@scratchpost.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.