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);


}
f2a9a3de7dc670'>Revert "import: cpan: Adapt for the change to guile-json version 3."...Mark H Weaver 2019-08-21import: cpan: Adapt for the change to guile-json version 3....Christopher Baines 2018-09-04Switch to Guile-Gcrypt....Ludovic Courtès 2018-08-24import: cpan: Adjust test to new URL....Ludovic Courtès 2017-10-30Revert "import: cpan: Use HTTPS for home pages."...Tobias Geerinckx-Rice 2017-10-29import: cpan: Use HTTPS for home pages....Tobias Geerinckx-Rice 2017-10-28import: cpan: Add trailing "/" on home-page....Eric Bavier 2017-10-28import: cpan: Propagate imported dependencies....Eric Bavier 2017-09-14import: cpan: Adjust expected license in tests....Ludovic Courtès 2017-06-07import: cpan: Update CPAN importer to use MetaCPAN v1 API....James Richardson