all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: zimoun <zimon.toutoune@gmail.com>
Cc: Guix Devel <guix-devel@gnu.org>
Subject: Re: How to compute SWHID? (with Guix/Disarchive)
Date: Mon, 06 Dec 2021 13:43:54 +0100	[thread overview]
Message-ID: <875ys1oqd1.fsf@gnu.org> (raw)
In-Reply-To: <CAJ3okZ1Oxi05raZPB=Mr2s8WThYNasZa+F25dGkMThqLfTAEiA@mail.gmail.com> (zimoun's message of "Wed, 1 Dec 2021 11:12:04 +0100")

Hi,

zimoun <zimon.toutoune@gmail.com> skribis:

> Giving a look at Disarchive, I found how to compute Git-based
> serialization hash and somehow serialization methods of "guix hash"
> needs some clearning; considering '--recursive' is 'nar' serialization
> which is a better name.  Anyway, see [1]. :-)

Neat!

> I would like to add SWH-based serialization hash but I do not find if
> a function already does the hard work.  Any pointer?

I think it’s ‘git-hash-directory’ in (disarchive git-hash).

The other day I learned that the Git CLI ignores empty directories, but
the Git format itself has nothing against empty directories.  Thus SWH
serializes in exactly the same way as Git.

(Can you confirm, Timothy?)

> Moreover, I would like to add* a new export format to "guix show"
> using BibTeX format proposed by SWH.  It would help when writing
> paper. ;-)

That’d be fun!  Maybe we need a separate tool set for scientific
authoring?

Thanks,
Ludo’.


  reply	other threads:[~2021-12-06 12:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-01 10:12 How to compute SWHID? (with Guix/Disarchive) zimoun
2021-12-06 12:43 ` Ludovic Courtès [this message]
2021-12-06 15:18   ` Timothy Sample
2021-12-07 17:07 ` guix show --bibtex (was: How to compute SWHID? (with Guix/Disarchive)) Liliana Marie Prikler
2021-12-07 17:39   ` zimoun
2021-12-07 18:20     ` Liliana Marie Prikler
2021-12-07 18:55       ` zimoun

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=875ys1oqd1.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /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.