all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: guix-devel@gnu.org, Efraim Flashner <efraim@flashner.co.il>
Subject: Re: Use and abuse of ‘computed-origin-method’: the ‘rust-ring’ case
Date: Sun, 29 Dec 2024 22:39:41 +0100	[thread overview]
Message-ID: <87wmfinp7m.fsf@gnu.org> (raw)
In-Reply-To: <87ttb5hx7l.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sun, 15 Dec 2024 14:50:22 +0100")

Hey Efraim,

Ludovic Courtès <ludo@gnu.org> skribis:

>> +  (package
>> +    (name "rust-ring")
>> +    (version "0.17.8.tar.gz")   ; Hack to adjust the output name.
>> +    (source (origin
>>               (method git-fetch)
>>               (uri (git-reference
>>                      (url "https://github.com/briansmith/ring")
>> @@ -4147,182 +4148,185 @@ (define rust-ring-0.17-sources
>>               (file-name (git-file-name "rust-ring" version))
>>               (sha256
>>                (base32 "0rqfal81bf4l3dja98cajfjq2jbz1rcx7xdp2r33cxrm5y5psr28"))
>
> [...]
>
>> +    (build-system trivial-build-system)
>> +    (arguments
>> +     (list
>> +       #:modules '((guix build utils))
>> +       #:builder
>> +       #~(begin
>> +           (use-modules (guix build utils))
>> +           (setenv "PATH"
>> +                   (string-join
>> +                     (list (assoc-ref %build-inputs "clang")    ; for clang-format
>> +                           (assoc-ref %build-inputs "go")
>> +                           (assoc-ref %build-inputs "gzip")
>> +                           (assoc-ref %build-inputs "nasm")
>> +                           (assoc-ref %build-inputs "perl")
>> +                           (assoc-ref %build-inputs "python-minimal")
>> +                           (assoc-ref %build-inputs "tar"))
>
> You could use #+(this-package-native-input "clang"), etc.
>
> If it works, I’m all for it!

Do you think you could submit a patch for it?  Due to the amount of
rebuilding, I suppose we’ll have to set up a dedicated branch.

Thanks,
Ludo’.


  reply	other threads:[~2024-12-29 21:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-14 22:37 Use and abuse of ‘computed-origin-method’: the ‘rust-ring’ case Ludovic Courtès
2024-12-15  8:41 ` Efraim Flashner
2024-12-15 13:50   ` Ludovic Courtès
2024-12-29 21:39     ` Ludovic Courtès [this message]
2024-12-30 12:03       ` Efraim Flashner

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=87wmfinp7m.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=efraim@flashner.co.il \
    --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.