Subject: Re: bug#32923: [PATCH 0/3] Add Arduino basics.

From: Maxim Cournoyer <[email-masked]>
Date: Fri, 01 Sep 2023 15:02:50 -0400

Hi,

Danny Milosavljevic <[email-masked]> writes:

> * gnu/packages/arduino.scm (arduino-libraries): New variable.
> ---
>  gnu/packages/arduino.scm | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>
> diff --git a/gnu/packages/arduino.scm b/gnu/packages/arduino.scm
> index 24f109ecd..369ca68a7 100644
> --- a/gnu/packages/arduino.scm
> +++ b/gnu/packages/arduino.scm
> @@ -104,3 +104,21 @@
>  (boards.txt etc).")
>      ;; GPL covers the main body ("app", "core").  LGPL covers the remainder.
>      (license (list license:lgpl2.1+ license:gpl3+))))
> +
> +(define-public arduino-libraries
> +  (package (inherit arduino-hardware)
> +    (name "arduino-libraries")
> +    (inputs
> +     `(("arduino-hardware" ,arduino-hardware)))
> +    (arguments
> +      (substitute-keyword-arguments
> +        (package-arguments arduino-hardware)
> +        ((#:phases phases)
> +            `(modify-phases ,phases
> +              (replace 'chdir
> +                (lambda _
> +                  (chdir "libraries")
> +                  #t))
> +              (replace 'install ,(arduino-installer "libraries"))))))
> +    ;; Note: Some parts are BSD and ASL-2.0 licensed.
> +    (license (list license:lgpl2.1+ license:gpl3+))))

This produces:

--8<---------------cut here---------------start------------->8---
/gnu/store/b3lahllwi6v5zblwjngkg4j1mq60q142-arduino-libraries-1.8.7
/gnu/store/b3lahllwi6v5zblwjngkg4j1mq60q142-arduino-libraries-1.8.7/share
/gnu/store/b3lahllwi6v5zblwjngkg4j1mq60q142-arduino-libraries-1.8.7/share/arduino
/gnu/store/b3lahllwi6v5zblwjngkg4j1mq60q142-arduino-libraries-1.8.7/share/arduino/hardware
/gnu/store/b3lahllwi6v5zblwjngkg4j1mq60q142-arduino-libraries-1.8.7/share/arduino/libraries
/gnu/store/b3lahllwi6v5zblwjngkg4j1mq60q142-arduino-libraries-1.8.7/share/arduino/libraries/.keep
/gnu/store/b3lahllwi6v5zblwjngkg4j1mq60q142-arduino-libraries-1.8.7/share/doc
/gnu/store/b3lahllwi6v5zblwjngkg4j1mq60q142-arduino-libraries-1.8.7/share/doc/arduino-libraries-1.8.7
/gnu/store/b3lahllwi6v5zblwjngkg4j1mq60q142-arduino-libraries-1.8.7/share/doc/arduino-libraries-1.8.7/license.txt
--8<---------------cut here---------------end--------------->8---

i.e., it doesn't actually ship anything other than a .keep empty file.

-- 
Thanks,
Maxim