A modern, delicious implementation of the Nix package manager, focused on correctness, usability, and growth — and committed to doing right by its community
Find a file
Eelco Dolstra 08c53923db * A primitive operation `dependencyClosure' to do automatic dependency
determination (e.g., finding the header files dependencies of a C
  file) in Nix low-level builds automatically.

  For instance, in the function `compileC' in make/lib/default.nix, we
  find the header file dependencies of C file `main' as follows:

    localIncludes =
      dependencyClosure {
        scanner = file:
          import (findIncludes {
            inherit file;
          });
        startSet = [main];
      };

  The function works by "growing" the set of dependencies, starting
  with the set `startSet', and calling the function `scanner' for each
  file to get its dependencies (which should yield a list of strings
  representing relative paths).  For instance, when `scanner' is
  called on a file `foo.c' that includes the line

    #include "../bar/fnord.h"

  then `scanner' should yield ["../bar/fnord.h"].  This list of
  dependencies is absolutised relative to the including file and added
  to the set of dependencies.  The process continues until no more
  dependencies are found (hence its a closure).

  `dependencyClosure' yields a list that contains in alternation a
  dependency, and its relative path to the directory of the start
  file, e.g.,

    [ /bla/bla/foo.c
      "foo.c"
      /bla/bar/fnord.h
      "../bar/fnord.h"
    ]

  These relative paths are necessary for the builder that compiles
  foo.c to reconstruct the relative directory structure expected by
  foo.c.

  The advantage of `dependencyClosure' over the old approach (using
  the impure `__currentTime') is that it's completely pure, and more
  efficient because it only rescans for dependencies (i.e., by
  building the derivations yielded by `scanner') if sources have
  actually changed.  The old approach rescanned every time.
2005-08-14 12:38:47 +00:00
blacklisting * This is a better location to keep the blacklist, since it can evolve 2005-03-24 14:07:02 +00:00
corepkgs * Adhockery. 2005-07-22 20:37:39 +00:00
doc * channels -> channels-v3, catamaran -> nix.cs.uu.nl. 2005-08-01 07:30:35 +00:00
externals * Another typo. 2005-05-10 14:24:48 +00:00
make * A primitive operation `dependencyClosure' to do automatic dependency 2005-08-14 12:38:47 +00:00
misc
scripts * nix-build: default to `./default.nix' if no paths are specified. 2005-07-13 17:39:10 +00:00
src * A primitive operation `dependencyClosure' to do automatic dependency 2005-08-14 12:38:47 +00:00
tests * Added a list concatenation operator: 2005-07-25 15:05:34 +00:00
AUTHORS
bootstrap.sh * Build dynamic libraries. 2005-07-22 14:52:45 +00:00
ChangeLog
configure.ac * Build dynamic libraries. 2005-07-22 14:52:45 +00:00
COPYING
INSTALL
Makefile.am * Put build logs in $prefix/var/nix/log/drvs/. 2005-02-17 13:54:45 +00:00
NEWS * Release notes. 2005-07-19 12:00:38 +00:00
nix.conf.example * Global configuration option `env-keep-derivations' to store pointer 2005-02-14 13:07:09 +00:00
nix.spec.in * Add $prefix/lib to the RPM. 2005-07-25 10:10:24 +00:00
README
substitute.mk * Purify all corepkgs builders. 2005-03-15 12:03:15 +00:00

For installation and usage instructions, please read the manual, which
can be found in `docs/manual/manual.html', and additionally at the Nix
website at <http://www.cs.uu.nl/groups/ST/Trace/Nix>.


Acknowledgments

This product includes software developed by the OpenSSL Project for
use in the OpenSSL Toolkit (http://www.OpenSSL.org/)