Skip to content
Snippets Groups Projects
  1. Nov 18, 2013
  2. Jul 18, 2012
  3. Oct 04, 2010
    • Eelco Dolstra's avatar
      * Make sure that config.h is included before the system headers, · 705868a8
      Eelco Dolstra authored
        because it defines _FILE_OFFSET_BITS.  Without this, on 
        OpenSolaris the system headers define it to be 32, and then 
        the 32-bit stat() ends up being called with a 64-bit "struct 
        stat", or vice versa.
      
        This also ensures that we get 64-bit file sizes everywhere.
      
      * Remove the redundant call to stat() in parseExprFromFile().
        The file cannot be a symlink because that's the exit condition
        of the loop before.
      705868a8
  4. Apr 07, 2010
  5. Mar 31, 2010
    • Ludovic Courtès's avatar
      Make source location info in the XML output optional. · 09381ccc
      Ludovic Courtès authored
      * src/libexpr/expr-to-xml.cc (nix::showAttrs): Add `location'
        parameter.  Provide location XML attributes when it's true.  Update
        callers.
        (nix::printTermAsXML): Likewise.
      
      * src/libexpr/expr-to-xml.hh (nix::printTermAsXML): Update prototype;
        have `location' default to `false'.
      
      * src/nix-instantiate/nix-instantiate.cc (printResult, processExpr): Add
        `location' parameter; update callers.
        (run): Add support for `--no-location'.
      
      * src/nix-instantiate/help.txt: Update accordingly.
      
      * tests/lang.sh: Invoke `nix-instantiate' with `--no-location' for the
        XML tests.
      
      * tests/lang/eval-okay-toxml.exp, tests/lang/eval-okay-to-xml.nix: New
        files.
      09381ccc
  6. Mar 02, 2010
  7. Oct 16, 2006
    • Eelco Dolstra's avatar
      * Big cleanup of the semantics of paths, strings, contexts, string · d7efd763
      Eelco Dolstra authored
        concatenation and string coercion.  This was a big mess (see
        e.g. NIX-67).  Contexts are now folded into strings, so that they
        don't cause evaluation errors when they're not expected.  The
        semantics of paths has been clarified (see nixexpr-ast.def).
        toString() and coerceToString() have been merged.
      
        Semantic change: paths are now copied to the store when they're in a
        concatenation (and in most other situations - that's the
        formalisation of the meaning of a path).  So
      
          "foo " + ./bla
      
        evaluates to "foo /nix/store/hash...-bla", not "foo
        /path/to/current-dir/bla".  This prevents accidental impurities, and
        is more consistent with the treatment of derivation outputs, e.g.,
        `"foo " + bla' where `bla' is a derivation.  (Here `bla' would be
        replaced by the output path of `bla'.)
      d7efd763
  8. Oct 03, 2006
  9. Sep 04, 2006
  10. Aug 24, 2006
Loading