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


}
ded....Paul Garlick 2017-01-24syscalls: Export 'read-utmpx'....Ludovic Courtès 2017-01-19syscalls: Add utmpx procedures and data structure....Ludovic Courtès 2016-11-21syscalls: Add 'add-network-route/gateway' and 'delete-network-route'....Ludovic Courtès 2016-11-16syscalls: Add bindings for SIOCGIFNETMASK and SIOCSIFNETMASK....Ludovic Courtès 2016-10-27tests: Skip 'pivot-root' test on Linux > 4.7.5....Ludovic Courtès 2016-10-19tests: Make sure child process of 'pivot-root' test exits....Ludovic Courtès 2016-05-06utils: Move 'fcntl-flock' to (guix build syscalls)....Ludovic Courtès 2016-05-03syscalls: Wrap TCSA* constants in 'tcsetattr-action' macro....Ludovic Courtès 2016-05-02syscalls: Add 'tcgetattr' and 'tcsetattr' bindings....Ludovic Courtès 2016-04-25syscalls: 'terminal-columns' catches EINVAL on the TIOCGWINSZ ioctl....Ludovic Courtès 2016-04-25syscalls: Add 'statfs'....Ludovic Courtès 2016-04-16syscalls: 'terminal-columns' ignores non-file ports....Ludovic Courtès 2016-04-15syscalls: Add TIOCGWINSZ bindings....Ludovic Courtès 2016-04-03build: Add a Guile custom test driver using SRFI-64....Mathieu Lirzin 2016-03-25syscalls: 'interface-address' can return #f....Ludovic Courtès