Try to handle the guix store item being garbage collected
This commit is contained in:
parent
0c6c413804
commit
76d6027b7c
1 changed files with 17 additions and 6 deletions
|
|
@ -170,12 +170,23 @@
|
||||||
package
|
package
|
||||||
'package-transitive-supported-systems))
|
'package-transitive-supported-systems))
|
||||||
|
|
||||||
(define (guix-store-path store)
|
(define guix-store-path
|
||||||
|
(let ((store-path #f))
|
||||||
|
(lambda (store)
|
||||||
|
(if (and store-path
|
||||||
|
(file-exists? store-path))
|
||||||
|
store-path
|
||||||
|
(begin
|
||||||
|
(invalidate-derivation-caches!)
|
||||||
(let* ((guix-package (@ (gnu packages package-management)
|
(let* ((guix-package (@ (gnu packages package-management)
|
||||||
guix))
|
guix))
|
||||||
(derivation (package-derivation store guix-package)))
|
(derivation (package-derivation store guix-package)))
|
||||||
(build-derivations store (list derivation))
|
(build-derivations store (list derivation))
|
||||||
|
|
||||||
|
(let ((new-store-path
|
||||||
(derivation->output-path derivation)))
|
(derivation->output-path derivation)))
|
||||||
|
(set! store-path new-store-path)
|
||||||
|
new-store-path)))))))
|
||||||
|
|
||||||
(define (nss-certs-store-path store)
|
(define (nss-certs-store-path store)
|
||||||
(let* ((nss-certs-package (@ (gnu packages certs)
|
(let* ((nss-certs-package (@ (gnu packages certs)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue