help-guix
[Top][All Lists]
Advanced

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

Re: Package definition - argument, fix for wrong file format before unpa


From: Tobias Geerinckx-Rice
Subject: Re: Package definition - argument, fix for wrong file format before unpack
Date: Sun, 22 May 2022 00:15:42 +0200

白い熊,

白い熊 写道:
However seeing it how should I change the unpack now - to extract only
via tar, however from the tar.gz file which isn't a gz really?

Guix does invoke only ‘tar’, but it's tar that chokes on the misleading file extension and throws the error you see.

The easiest way to convince tar of its errant ways is to set the correct extension in the store:

 (source
   (origin
     (method url-fetch)
     (uri "https://…/mell-1.0.0.tar.gz";)
;; Despite the above extension, this is actually an uncompressed tar file. (file-name (string-append name "-" version "tar"))
     (sha256 …)))

Kind regards,

T G-R

Attachment: signature.asc
Description: PGP signature


reply via email to

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