pack: Use a declarative profile.
* guix/scripts/pack.scm (guix-pack): Use a declarative profile instead of 'profile-derivation'.
This commit is contained in:
parent
45bd91334f
commit
45c84c8f6f
1 changed files with 16 additions and 17 deletions
|
@ -1071,7 +1071,21 @@ Create a bundle of PACKAGE.\n"))
|
||||||
(localstatedir? (assoc-ref opts 'localstatedir?))
|
(localstatedir? (assoc-ref opts 'localstatedir?))
|
||||||
(entry-point (assoc-ref opts 'entry-point))
|
(entry-point (assoc-ref opts 'entry-point))
|
||||||
(profile-name (assoc-ref opts 'profile-name))
|
(profile-name (assoc-ref opts 'profile-name))
|
||||||
(gc-root (assoc-ref opts 'gc-root)))
|
(gc-root (assoc-ref opts 'gc-root))
|
||||||
|
(profile (profile
|
||||||
|
(content manifest)
|
||||||
|
|
||||||
|
;; Always produce relative symlinks for
|
||||||
|
;; Singularity (see
|
||||||
|
;; <https://bugs.gnu.org/34913>).
|
||||||
|
(relative-symlinks?
|
||||||
|
(or relocatable?
|
||||||
|
(eq? 'squashfs pack-format)))
|
||||||
|
|
||||||
|
(hooks (if bootstrap?
|
||||||
|
'()
|
||||||
|
%default-profile-hooks))
|
||||||
|
(locales? (not bootstrap?)))))
|
||||||
(define (lookup-package package)
|
(define (lookup-package package)
|
||||||
(manifest-lookup manifest (manifest-pattern (name package))))
|
(manifest-lookup manifest (manifest-pattern (name package))))
|
||||||
|
|
||||||
|
@ -1085,22 +1099,7 @@ Create a bundle of PACKAGE.\n"))
|
||||||
to your package list.")))
|
to your package list.")))
|
||||||
|
|
||||||
(run-with-store store
|
(run-with-store store
|
||||||
(mlet* %store-monad ((profile (profile-derivation
|
(mlet* %store-monad ((drv (build-image name profile
|
||||||
manifest
|
|
||||||
|
|
||||||
;; Always produce relative
|
|
||||||
;; symlinks for Singularity (see
|
|
||||||
;; <https://bugs.gnu.org/34913>).
|
|
||||||
#:relative-symlinks?
|
|
||||||
(or relocatable?
|
|
||||||
(eq? 'squashfs pack-format))
|
|
||||||
|
|
||||||
#:hooks (if bootstrap?
|
|
||||||
'()
|
|
||||||
%default-profile-hooks)
|
|
||||||
#:locales? (not bootstrap?)
|
|
||||||
#:target target))
|
|
||||||
(drv (build-image name profile
|
|
||||||
#:target
|
#:target
|
||||||
target
|
target
|
||||||
#:compressor
|
#:compressor
|
||||||
|
|
Reference in a new issue