mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
import: crate: Make it clearer when a crate has been yanked.
* guix/import/crate.scm (make-crate-sexp): If a crate has been yanked then adjust the returned package's source file-name with 'yanked' as part of the name. Change-Id: Ib3d16ff2e89a75a7a0755c1f336abadba0189666
This commit is contained in:
parent
3f1b5003cc
commit
67950f46ef
1 changed files with 4 additions and 1 deletions
|
|
@ -214,7 +214,10 @@ and LICENSE."
|
|||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (crate-uri ,name version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(file-name
|
||||
,@(if yanked?
|
||||
`((string-append name "-" version "-yanked.tar.gz"))
|
||||
`((string-append name "-" version ".tar.gz"))))
|
||||
(sha256
|
||||
(base32
|
||||
,(bytevector->nix-base32-string (port-sha256 port))))))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue