mirror of
git://git.savannah.gnu.org/guix/data-service.git
synced 2023-12-14 03:23:03 +01:00
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-transitive-supported-systems))
|
||||
|
||||
(define (guix-store-path store)
|
||||
(let* ((guix-package (@ (gnu packages package-management)
|
||||
guix))
|
||||
(derivation (package-derivation store guix-package)))
|
||||
(build-derivations store (list derivation))
|
||||
(derivation->output-path derivation)))
|
||||
(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)
|
||||
guix))
|
||||
(derivation (package-derivation store guix-package)))
|
||||
(build-derivations store (list derivation))
|
||||
|
||||
(let ((new-store-path
|
||||
(derivation->output-path derivation)))
|
||||
(set! store-path new-store-path)
|
||||
new-store-path)))))))
|
||||
|
||||
(define (nss-certs-store-path store)
|
||||
(let* ((nss-certs-package (@ (gnu packages certs)
|
||||
|
|
Loading…
Reference in a new issue