mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
distro: Add package that builds a tarball of the bootstrap Guile.
* distro/packages/base.scm (%guile-static-stripped): New variable.
This commit is contained in:
parent
eb1db76e34
commit
9735a7b6ea
1 changed files with 28 additions and 0 deletions
|
@ -2101,4 +2101,32 @@ (define (copy-recursively source destination)
|
|||
#t))))
|
||||
(inputs `(("guile" ,%guile-static)))))
|
||||
|
||||
(define %guile-bootstrap-tarball
|
||||
;; A tarball with the statically-linked, relocatable Guile.
|
||||
(package (inherit %guile-static)
|
||||
(name "guile-bootstrap-tarball")
|
||||
(build-system trivial-build-system)
|
||||
(inputs `(("tar" ,tar)
|
||||
("xz" ,xz)
|
||||
("guile" ,%guile-static-stripped)))
|
||||
(arguments
|
||||
(lambda (system)
|
||||
`(#:modules ((guix build utils))
|
||||
#:builder
|
||||
(begin
|
||||
(use-modules (guix build utils))
|
||||
(let ((out (assoc-ref %outputs "out"))
|
||||
(guile (assoc-ref %build-inputs "guile"))
|
||||
(tar (assoc-ref %build-inputs "tar"))
|
||||
(xz (assoc-ref %build-inputs "xz")))
|
||||
(mkdir out)
|
||||
(set-path-environment-variable "PATH" '("bin") (list tar xz))
|
||||
(with-directory-excursion guile
|
||||
(zero? (system* "tar" "cJvf"
|
||||
(string-append out "/guile-bootstrap-"
|
||||
,(package-version %guile-static)
|
||||
"-" ,system
|
||||
".tar.xz")
|
||||
"."))))))))))
|
||||
|
||||
;;; base.scm ends here
|
||||
|
|
Loading…
Reference in a new issue