unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Use and abuse of ‘computed-origin-method’: the ‘rust-ring’ case
Date: Mon, 30 Dec 2024 14:03:26 +0200	[thread overview]
Message-ID: <Z3KMDibLs2Xy0m43@3900XT> (raw)
In-Reply-To: <87wmfinp7m.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2552 bytes --]

On Sun, Dec 29, 2024 at 10:39:41PM +0100, Ludovic Courtès wrote:
> 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.

I ended up making the changes and pushing them to the rust-team branch.
Rust-team is right after mesa-updates, so we should be landing it soon™

¹ https://git.savannah.gnu.org/cgit/guix.git/commit/?h=rust-team&id=39c1a5f48e9f7a175be7b3c22a76d3ec2d9fc840
https://git.savannah.gnu.org/cgit/guix.git/commit/?h=rust-team&id=d255743544c95e17c0868743b99169f31e5b9164
https://git.savannah.gnu.org/cgit/guix.git/commit/?h=rust-team&id=3d03ca61c62ec29ee93d1b23f9a6c6bca2f240dc
https://git.savannah.gnu.org/cgit/guix.git/commit/?h=rust-team&id=2b75efcb306ccecfa3dc5b2d16b7dd57f9f57768

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2024-12-30 12:04 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
2024-12-30 12:03       ` Efraim Flashner [this message]

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=Z3KMDibLs2Xy0m43@3900XT \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    --cc=ludo@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 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).