guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use and abuse of ‘computed-origin-method’: the ‘rust-ring’ case


From: Ludovic Courtès
Subject: Re: Use and abuse of ‘computed-origin-method’: the ‘rust-ring’ case
Date: Sun, 29 Dec 2024 22:39:41 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]