guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Registering an artifact as root


From: Liliana Marie Prikler
Subject: Re: Registering an artifact as root
Date: Sun, 23 Jul 2023 14:38:13 +0200
User-agent: Evolution 3.46.4

Am Sonntag, dem 23.07.2023 um 12:51 +0200 schrieb Hartmut Goebel:
> Hi,
> I'd like to create a symlink to a store object somewhere in my home-
> directory and register this symlink as a root, to avoid the garbage
> collector removes the store object.
> How can I achieve this with existing guix means?
(guix store) has

(define-operation (add-indirect-root (string file-name))
  "Make the symlink FILE-NAME an indirect root for the garbage collector:
whatever store item FILE-NAME points to will not be collected.  Return #t on
success.

FILE-NAME can be anywhere on the file system, but it must be an absolute file
name--it is the caller's responsibility to ensure that it is an absolute file
name."
  boolean)

Hope that helps.

Cheers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]