Subject: [bug#74864] [PATCH] gnu: Add adl-submit.py

From: Simon Tournier <[email-masked]>
Date: Thu, 16 Jan 2025 13:27:01 +0100

Hi Denis,

CC: Python team because it’s a Python script after all. :-)

On Sat, 14 Dec 2024 at 02:25, Denis 'GNUtoo' Carikli <[email-masked]> wrote:

> * gnu/packages/calendar.scm (adl-submit.py): New variable.

Cool!  Thank you.

> +(define-public adl-submit.py

[...]

> +     (build-system gnu-build-system)
> +    (arguments
> +     (list
> +      #:tests? #f ; No tests
> +      #:phases
> +      #~(modify-phases %standard-phases
> +          (delete 'configure)
> +          (delete 'build)
> +          (replace 'install
> +            (lambda _
> +              (install-file
> +               "public/adl-submit.py" (string-append #$output "/bin"))
> +              (wrap-program (string-append #$output "/bin/adl-submit.py")
> +                `("GUIX_PYTHONPATH" ":"
> +                  prefix (,(getenv "GUIX_PYTHONPATH")))))))))

Since it “only“ copies ’public/adl-submit.py’, why not rely on
’copy-build-system’ instead?

Cheers,
simon