aboutsummaryrefslogtreecommitdiff
path: root/nix/libstore/misc.hh
blob: edbf24047eddcde8ffdaa07e954cd6ed16f3e65d (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#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);

/* Return the path corresponding to the output identifier `id' in the
   given derivation. */
Path findOutput(const Derivation & drv, string id);

bool willBuildLocally(const Derivation & drv);

bool substitutesAllowed(const Derivation & drv);


}
)[home-page]: Likewise. * gnu/packages/gtk.scm (guile-cairo)[home-page]: Likewise. * gnu/packages/guile.scm (guile-reader, guile-lib, guile-json) (guile-redis, g-wrap)[home-page]: Likewise. * gnu/packages/libunwind.scm (libunwind)[home-page]: Likewise. * gnu/packages/lout.scm (lout)[home-page]: Likewise. * gnu/packages/mpd.scm (sonata)[home-page]: Likewise. * gnu/packages/networking.scm (quagga)[home-page]: Likewise. * gnu/packages/ratpoison.scm (ratpoison)[home-page]: Likewise. * gnu/packages/skribilo.scm (skribilo)[home-page]: Likewise. * gnu/packages/telephony.scm (exosip)[home-page]: Likewise. * gnu/packages/texinfo.scm (texi2html)[home-page]: Likewise. * gnu/packages/xdisorg.scm (xbindkeys)[home-page]: Likewise. 2017-11-09gnu: acl: Fix test regression with perl-5.26.Efraim Flashner * gnu/packages/acl.scm (acl)[source]: Add patch. * gnu/packages/patches/acl-fix-perl-regex.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. 2017-11-04gnu: acl: Fix typo.Leo Famulari This is a followup commit to 2d433b5363fecba0d63caa1844c937dec4ccc23b, fixing a typo introduced while rebasing the commit. gnu/packages/acl.scm (acl)[arguments]: Fix typo in patch-tests phase. 2017-11-04gnu: acl: Enable tests.Kei Kebreau * gnu/packages/acl.scm (acl)[arguments]: Enable tests. Add 'patch-tests' phase. 2017-10-19gnu: acl: Use 'modify-phases' syntax.Efraim Flashner * gnu/packages/acl.scm (acl)[arguments]: Use 'modify-phases' syntax.