unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Christopher Baines <mail@cbaines.net>
Cc: 43494@debbugs.gnu.org
Subject: [bug#43494] [PATCH 1/4] gnu: Add guix-build-coordinator.
Date: Fri, 18 Sep 2020 22:08:56 +0200	[thread overview]
Message-ID: <87lfh6vodj.fsf@gnu.org> (raw)
In-Reply-To: <20200918184042.22660-1-mail@cbaines.net> (Christopher Baines's message of "Fri, 18 Sep 2020 19:40:39 +0100")

Hi!

Christopher Baines <mail@cbaines.net> skribis:

> * gnu/packages/package-management.scm (guix-build-coordinator): New variable.

[...]

> +           (lambda* (#:key inputs outputs #:allow-other-keys)
> +             (let* ((out (assoc-ref outputs "out"))
> +                    (bin (string-append out "/bin"))
> +                    (guile (assoc-ref inputs "guile"))
> +                    (guile-effective-version
> +                     (read-line
> +                      (open-pipe* OPEN_READ
> +                                  (string-append guile "/bin/guile")
> +                                  "-c" "(display (effective-version))")))

Maybe use ‘target-guile-effective-version’ from (guix build
guile-build-system).

> +                  (wrap-program (string-append bin "/" file)
> +                    `("PATH" ":" prefix
> +                      (,bin ,(assoc-ref inputs "sqitch")))
> +                    `("PERL5LIB" ":" prefix
> +                      (,(getenv "PERL5LIB")))

Do we really need PERL5LIB here?  Shouldn’t it be done in the wrapper of
‘sqitch’ directly?

> +                (scandir bin
> +                         (match-lambda
> +                           ((or "." "..") #f)
> +                           (_ #t))))

I think you could just use (find-files bin).

> +    (inputs
> +     `(("guile" ,guile-3.0-latest)

Rather ,@(assoc-ref (package-native-inputs guix) "guile").

> +       ("sqitch" ,sqitch)
> +       ("perl-dbd-sqlite" ,perl-dbd-sqlite)))

Shouldn’t perl-dbd-sqlite be a dependency of sqitch?

> +    (home-page "https://git.cbaines.net/guile/guix/build-coordinator")
> +    (synopsis "")
> +    (description
> +     "")

Missing!  :-)

LGTM with changes along these lines!

Ludo’.




  parent reply	other threads:[~2020-09-18 20:33 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-18 18:34 [bug#43494] [PATCH 0/4] Add package and services for the Guix Build Coordinator Christopher Baines
2020-09-18 18:40 ` [bug#43494] [PATCH 1/4] gnu: Add guix-build-coordinator Christopher Baines
2020-09-18 18:40   ` [bug#43494] [PATCH 2/4] services: guix: Add guix-build-coordinator-service-type Christopher Baines
2020-09-18 20:20     ` Ludovic Courtès
2020-09-19  9:13       ` Christopher Baines
2020-09-25  9:42         ` Ludovic Courtès
2020-09-26  8:43           ` Christopher Baines
2020-09-18 18:40   ` [bug#43494] [PATCH 3/4] services: guix: Add guix-build-coordinator-agent-service-type Christopher Baines
2020-09-18 20:25     ` Ludovic Courtès
2020-09-19  9:49       ` Christopher Baines
2020-09-18 18:40   ` [bug#43494] [PATCH 4/4] services: guix: Add guix-build-coordinator-queue-builds-service-type Christopher Baines
2020-09-18 20:31     ` Ludovic Courtès
2020-09-19 10:05       ` Christopher Baines
2020-09-18 20:08   ` Ludovic Courtès [this message]
2020-09-18 23:34     ` [bug#43494] [PATCH 1/4] gnu: Add guix-build-coordinator Jonathan Brielmaier
2020-09-19  9:00       ` Christopher Baines
2020-09-19  9:05     ` Christopher Baines
2020-09-19 10:10 ` [bug#43494] [PATCH v2 " Christopher Baines
2020-09-19 10:10   ` [bug#43494] [PATCH v2 2/4] services: guix: Add guix-build-coordinator-service-type Christopher Baines
2020-09-19 10:10   ` [bug#43494] [PATCH v2 3/4] services: guix: Add guix-build-coordinator-agent-service-type Christopher Baines
2020-09-19 10:10   ` [bug#43494] [PATCH v2 4/4] services: guix: Add guix-build-coordinator-queue-builds-service-type Christopher Baines
2020-10-05  8:00     ` Ludovic Courtès
2020-10-05 17:16       ` bug#43494: " Christopher Baines

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=87lfh6vodj.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=43494@debbugs.gnu.org \
    --cc=mail@cbaines.net \
    /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).