[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Disarchive and SHA
From: |
zimoun |
Subject: |
Re: Disarchive and SHA |
Date: |
Wed, 20 Oct 2021 19:03:22 +0200 |
Hi,
On Wed, 20 Oct 2021 at 12:23, zimoun <zimon.toutoune@gmail.com> wrote:
> --8<---------------cut here---------------start------------->8---
> (define-public zabbix-agentd
[...]
> (sha256
> (base32 "100n1rv7r4pqagxxifzpcza5bhrr2fklzx7gndxwiyq4597p1jvn"))))
> --8<---------------cut here---------------end--------------->8---
>
> it does not match the URL:
>
> <http://disarchive.guix.gnu.org/sha256/100n1rv7r4pqagxxifzpcza5bhrr2fklzx7gndxwiyq4597p1jvn>
>
> and instead, one has to convert to ’base16’. I am not aware of any tool
> to ease this transformation. Maybe, we could add an option to “guix
> hash”. WDYT?
For the interested reader, the trick is to use...
--8<---------------cut here---------------start------------->8---
$ guix hash -f base16 $(guix build zabbix-agentd -S)
76cb704f2a04fbc87bb3eff44fa71339c355d467f7bbd8fb53f8927c760e1680
--8<---------------cut here---------------end--------------->8---
> Using ’base16’, the URL matches and the file is downloaded. Neat!
>
> <http://disarchive.guix.gnu.org/sha256/76cb704f2a04fbc87bb3eff44fa71339c355d467f7bbd8fb53f8927c760e1680>
...but it must download. Instead, I propose the patch#51307 which
convert without downloading. WDYT?
1: <http://issues.guix.gnu.org/51307>
Cheers,
simon