snix/src/libexpr
Eelco Dolstra 9279174dde * Added an experimental feature suggested by Andres: ellipses ("...")
in attribute set pattern matches.  This allows defining a function
  that takes *at least* the listed attributes, while ignoring
  additional attributes.  For instance,

    {stdenv, fetchurl, fuse, ...}:
    
    stdenv.mkDerivation {
      ...
    };
    
  defines a function that requires an attribute set that contains the 
  specified attributes but ignores others.  The main advantage is that
  we can then write in all-packages.nix

    aefs = import ../bla/aefs pkgs;

  instead of

    aefs = import ../bla/aefs {
      inherit stdenv fetchurl fuse;
    };

  This saves a lot of typing (not to mention not having to update
  all-packages.nix with purely mechanical changes).  It saves as much
  typing as the "args: with args;" style, but has the advantage that
  the function arguments are properly declared (not implicit in what
  the body of the "with" uses).
2008-08-14 14:00:44 +00:00
..
attr-path.cc * Cleanup. 2007-01-13 14:21:49 +00:00
attr-path.hh * Use a proper namespace. 2006-09-04 21:06:23 +00:00
common-opts.cc * Option --argstr for passing string arguments easily. (NIX-75) 2007-01-14 12:32:44 +00:00
common-opts.hh * Option --argstr for passing string arguments easily. (NIX-75) 2007-01-14 12:32:44 +00:00
eval.cc * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
eval.hh * Memoize strict evaluation. 2007-01-13 15:41:54 +00:00
expr-to-xml.cc * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
expr-to-xml.hh * Big cleanup of the semantics of paths, strings, contexts, string 2006-10-16 15:55:34 +00:00
get-drvs.cc * nix-env: allow ~/.nix-defexpr to be a directory. If it is, then the 2007-09-17 16:08:24 +00:00
get-drvs.hh * nix-env -i: instead of breaking package ties by version, break them 2007-05-01 20:33:18 +00:00
lexer.l * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
Makefile.am * Export the nix-env derivation name parsing and version comparison 2008-07-01 10:10:32 +00:00
names.cc * Export the nix-env derivation name parsing and version comparison 2008-07-01 10:10:32 +00:00
names.hh * Export the nix-env derivation name parsing and version comparison 2008-07-01 10:10:32 +00:00
nix.sdf First attempt to update Nix SDF grammar to match the actual bison grammar 2008-06-04 14:36:46 +00:00
nixexpr-ast.def * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
nixexpr.cc * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
nixexpr.hh * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
parser.hh * Use a proper namespace. 2006-09-04 21:06:23 +00:00
parser.y * Added an experimental feature suggested by Andres: ellipses ("...") 2008-08-14 14:00:44 +00:00
primops.cc * Refactoring: combine functions that take an attribute set and 2008-08-14 10:04:22 +00:00