Skip to content
Snippets Groups Projects
  • Eelco Dolstra's avatar
    ef4f5ba8
    Work on Values instead of Exprs · ef4f5ba8
    Eelco Dolstra authored
    This prevents some duplicate evaluation in nix-env and
    nix-instantiate.
    
    Also, when traversing ~/.nix-defexpr, only read regular files with the
    extension .nix.  Previously it was reading files like
    .../channels/binary-caches/<name>.  The only reason this didn't cause
    problems is pure luck (namely, <name> shadows an actual Nix
    expression, the binary-caches files happen to be syntactically valid
    Nix expressions, and we iterate over the directory contents in just
    the right order).
    ef4f5ba8
    History
    Work on Values instead of Exprs
    Eelco Dolstra authored
    This prevents some duplicate evaluation in nix-env and
    nix-instantiate.
    
    Also, when traversing ~/.nix-defexpr, only read regular files with the
    extension .nix.  Previously it was reading files like
    .../channels/binary-caches/<name>.  The only reason this didn't cause
    problems is pure luck (namely, <name> shadows an actual Nix
    expression, the binary-caches files happen to be syntactically valid
    Nix expressions, and we iterate over the directory contents in just
    the right order).