HomeSoftware Heritage

nixguix: Make nar cli consistent with guix hash cli interface

Description

nixguix: Make nar cli consistent with guix hash cli interface

This also fixes complaints about short variable names.

$ guix hash -S nar -f base32 -H sha256 -x guix-modules
bd4jxucj7hqpvjv5646rxehevbia6gnym7y4kebj4cm3eugdwpma
$ python -m nar -f base32 -H sha256 guix-modules
it6djhqnacibff47lh43haq2bnu3w6pus72chbx4gjmzl2tppkda====
$ rm -rf guix-modules/.git  # because it's ignored by defaut by guix
$ python -m nar -f base32 -H sha256 guix-modules
bd4jxucj7hqpvjv5646rxehevbia6gnym7y4kebj4cm3eugdwpma====

Related to T4538#93319

Details

Provenance
ardumontAuthored on Oct 21 2022, 11:39 AM
ardumontPushed on Oct 21 2022, 12:16 PM
Parents
rDSNIP58d139c71b58: nixguix: Add nar.py from @zimoun
Branches
Unknown
Tags
Unknown