aboutsummaryrefslogtreecommitdiff
#pragma once

#include "derivations.hh"


namespace nix {


/* Read a derivation, after ensuring its existence through
   ensurePath(). */
Derivation derivationFromPath(StoreAPI & store, const Path & drvPath);

/* Place in `paths' the set of all store paths in the file system
   closure of `storePath'; that is, all paths than can be directly or
   indirectly reached from it.  `paths' is not cleared.  If
   `flipDirection' is true, the set of paths that can reach
   `storePath' is returned; that is, the closures under the
   `referrers' relation instead of the `references' relation is
   returned. */
void computeFSClosure(StoreAPI & store, const Path & path,
    PathSet & paths, bool flipDirection = false,
    bool includeOutputs = false, bool includeDerivers = false);

bool willBuildLocally(const Derivation & drv);

bool substitutesAllowed(const Derivation & drv);


}
727e9a9e8935f5 Florian Pelz 2024-10-01nls: Update translations....Change-Id: Ic1f7216e35c17c3de07a5e56ce582c236dadafcd Florian Pelz 2024-09-04nls: Update translations....Change-Id: I069e1842da74b39124913fd2defbee6fa47eaa7e Florian Pelz 2024-09-02nls: Update translations....Change-Id: Icdee15b452c38ca885a8f202f68621916de01c03 Florian Pelz 2024-07-12nls: Update translations....Change-Id: I691cef365279ee5c50208a87ef5372a47152508e Florian Pelz