aboutsummaryrefslogtreecommitdiff
path: root/nix/libstore/misc.hh
blob: f70cda9fd0c87983aae5a58b2af2df41b977dd26 (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
#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);


}
42....* gnu/packages/plotutils.scm (asymptote): Update to 2.42. Tobias Geerinckx-Rice 2018-03-16gnu: All snippets report errors using exceptions, else return #t....* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm, gnu/packages/backup.scm, gnu/packages/base.scm, gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm, gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm, gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm, gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/enlightenment.scm, gnu/packages/fpga.scm, gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm, gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm, gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm, gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm, gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lxde.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm, gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm, gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm, gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm, gnu/packages/pretty-print.scm, gnu/packages/profiling.scm, gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm, gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm, gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm, gnu/packages/scribus.scm, gnu/packages/sdl.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm, gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm, gnu/packages/terminals.scm, gnu/packages/texinfo.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/tls.scm, gnu/packages/unrtf.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm, gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm: In all snippets, report errors using exceptions, or else return #t. Mark H Weaver 2017-07-02gnu: Switch guile-cairo and dependents to Guile 2.2 again....Fixes <https://bugs.gnu.org/27551>. Reported by Leo Famulari <leo@famulari.name>. This reinstates the following commits: e3ddb1e83 * gnu: guile-cairo: Switch to Guile 2.2. ae5c6ef39 * gnu: guile-gnome: Update to 2.16.5. 0fd8013fc * gnu: guile-rsvg: Update to commit 05c6a2fd. 66b9183c4 * gnu: guile-lib: Switch to Guile 2.2. and adds the following changes: * gnu/bootloader/grub.scm (svg->png): Add 'package->derivation' call for GUILE-2.2. Pass #:guile-for-build to 'gexp->derivation'. * gnu/build/svg.scm (svg->png): Add 'em' and 'ex' to the 'let-values' form to account for all the values returned by 'rsvg-handle-get-dimensions', which Guile 2.2 does not truncate. Ludovic Courtès 2017-07-01Revert "gnu: guile-cairo: Switch to Guile 2.2."...This commit caused the build of grub-image.png to fail, prevent the build of grub.cfg and reconfiguring of GuixSD: <https://bugs.gnu.org/27551> This reverts commit e3ddb1e83296c10338d35bc687772242b2f5eac6. Leo Famulari 2017-06-30gnu: guile-cairo: Switch to Guile 2.2....This patch adjusts dependent packages accordingly. * gnu/packages/gtk.scm (guile-cairo)[inputs]: Switch to GUILE-2.2 and GUILE-LIB. (guile-rsvg)[inputs]: Likewise. (guile-present)[inputs]: Likewise. (guile-gnome)[inputs]: Likewise. * gnu/packages/plotutils.scm (guile-charting)[inputs]: Switch go GUILE-2.2. Ludovic Courtès 2017-04-15gnu: asymptote: Update to 2.41...* gnu/packages/plotutils.scm (asymptote): Update to 2.41. Signed-off-by: Marius Bakke <mbakke@fastmail.com> Nicolas Goaziou 2017-03-07gnu: asymptote: Update to 2.40....* gnu/packages/plotutils.scm (asymptote): Update to 2.40. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Nicolas Goaziou 2017-01-29gnu: asymptote: Update to 2.39...* gnu/packages/plotutils.scm (asymptote): Update to 2.39. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Nicolas Goaziou 2016-09-02gnu: Use ghostscript over ghostscript-gs....* gnu/packages/engineering.scm (fastcap)[native-inputs], gnu/packages/lout.scm (lout)[native-inputs], gnu/packages/ocaml.scm (unison)[native-inputs], gnu/packages/plotutils.scm (asymptote)[native-inputs], gnu/packages/skribilo.scm (skribilo)[native-inputs]: Remove ghostscript-gs. * gnu/packages/gv.scm (gv)[propagated-inputs], gnu/packages/music.scm (lilypond)[inputs], gnu/packages/scheme.scm (chez-scheme)[native-inputs]: Use ghostscript over ghostscript-gs. Efraim Flashner 2016-07-28gnu: asymptote: Add native input gs....* gnu/packages/plotutils.scm (asymptote)[native-inputs]: Add gs. This is a follow-up to commit d8eb912132ccdff955e3318fe549c5f7f674adf8. Andreas Enge 2016-07-25gnu: Use 'ghostscript-gs' in packages that need the 'gs' command....Fixes a regression introduced in eb354bdacbf4154ec66038dac07f19bf4ced1fad. Reported by Andreas Enge <andreas@enge.fr>. * gnu/packages/gv.scm (gv)[propagated-inputs]: Change from GHOSTSCRIPT/X to GHOSTSCRIPT-GS/X. * gnu/packages/music.scm (lilypond): Use GHOSTSCRIPT-GS instead of GHOSTSCRIPT. * gnu/packages/ocaml.scm (unison): Likewise. * gnu/packages/plotutils.scm (asymptote): Likewise. * gnu/packages/scheme.scm (chez-scheme): Likewise. Ludovic Courtès 2016-06-13gnu: asymptote: Update to 2.38...* gnu/packages/plotutils.scm (asymptote): Update to 2.38. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Nicolas Goaziou 2016-05-26gnu: Rename texlive module to tex....* gnu/local.mk (GNU_SYSTEM_MODULES): Rename texlive.scm to tex.scm. * gnu/packages/texlive.scm: Rename file to tex.scm. * gnu/packages/tex.scm: Renamed from texlive.scm. * gnu/packages/algebra.scm: Adjust accordingly. * gnu/packages/docbook.scm: Likewise. * gnu/packages/engineering.scm: Likewise. * gnu/packages/gettext.scm: Likewise. * gnu/packages/gnome.scm: Likewise. * gnu/packages/lisp.scm: Likewise. * gnu/packages/maths.scm: Likewise. * gnu/packages/music.scm: Likewise. * gnu/packages/ocaml.scm: Likewise. * gnu/packages/photo.scm: Likewise. * gnu/packages/plotutils.scm: Likewise. * gnu/packages/python.scm: Likewise. * gnu/packages/scheme.scm: Likewise. Roel Janssen