On Sat, 21 May 2022 20:16:06 +0200 白い熊 <help-guix_gnu....@sumou.com> wrote:
> Hello everyone: > > I'm trying to build some old apps - one of them is an emacs package > only available now via the archive.org Wayback machine. > > The problem is though that the download is an xxxx.tar.gz file in > name - in fact it is really only a tar archive. So guix build fails > with wrong file format error. Concretely - it is this file: > https://web.archive.org/web/20110104020844/http://taiyaki.org/elisp/mell/src/mell-1.0.0.tar.gz > > I think I should add some "(arguments" lines in the package recipe - > replacing the unpack phase? However not sure exactly how - am > searching but haven't found any examples fixing for such a problem. > > Could someone advise me - how to specify the file should be unpacked > as really just a tar archive so that the build can then proceed? > > Many thanks. > If I remember correctly, the source should get passed as part of the inputs alist? Try this: `(replace 'unpack (lambda args (display args)))` And look at what arguments it gets passed. The store path of the tarball should be right there.