Skip to content
Snippets Groups Projects
  1. Feb 11, 2004
  2. Feb 10, 2004
  3. Feb 09, 2004
  4. Feb 08, 2004
    • Eelco Dolstra's avatar
      * A command `--switch-generation' to switch to a specific generation · 06a75a7e
      Eelco Dolstra authored
        of the current profile, e.g.,
      
          $ nix-env --list-generations
          ...
          39   2004-02-02 17:53:53
          40   2004-02-02 17:55:18
          41   2004-02-02 17:55:41
          42   2004-02-02 17:55:50   (current)
      
          $ nix-env --switch-generation 39
      
          $ ls -l /nix/var/nix/profiles/default
          ... default -> default-39-link
      
      * Also a command `--rollback' which is just a convenience operation to
        rollback to the oldest generation younger than the current one.
      
        Note that generations properly form a tree.  E.g., if after
        switching to generation 39, we perform an installation action,
        a generation 43 is created which is a descendant of 39, not 42.  So
        a rollback from 43 ought to go back to 39.  This is not currently
        implemented; generations form a linear sequence.
      
      06a75a7e
  5. Feb 06, 2004
  6. Feb 04, 2004
  7. Feb 03, 2004
  8. Feb 02, 2004
    • Eelco Dolstra's avatar
      * Added syntactic sugar to the construction of attribute sets to · 1c9c0a5a
      Eelco Dolstra authored
        `inherit' variables from the surrounding lexical scope.
      
        E.g.,
      
          {stdenv, libfoo}: derivation {
            builder = ./bla;
            inherit stdenv libfoo;
            xyzzy = 1;
          }
      
        is equivalent to
      
          {stdenv, libfoo}: derivation {
            builder = ./bla;
            stdenv = stdenv;
            libfoo = libfoo;
            xyzzy = 1;
          }
      
        Note that for mutually recursive attribute set definitions (`rec
        {...}'), this also works, that is, `rec {inherit x;}' is equivalent
        to `let {fresh = x; body = rec {x = fresh;};}', *not*
        `rec {x = x}'.
      1c9c0a5a
    • Eelco Dolstra's avatar
      * Sort `nix-env -q' output by derivation name. · d9f30fe7
      Eelco Dolstra authored
      * `--version' flag for all commands.
      * Manual updates.
      d9f30fe7
  9. Jan 30, 2004
  10. Jan 29, 2004
  11. Jan 22, 2004
  12. Jan 21, 2004
  13. Jan 20, 2004
  14. Jan 19, 2004
  15. Jan 16, 2004
  16. Jan 15, 2004
    • Eelco Dolstra's avatar
      * Remove debug message. · 291030b9
      Eelco Dolstra authored
      291030b9
    • Eelco Dolstra's avatar
      * Catch SIGINT to terminate cleanly when the user tries to interrupt · 447089a5
      Eelco Dolstra authored
        Nix.  This is to prevent Berkeley DB from becoming wedged.
      
        Unfortunately it is not possible to throw C++ exceptions from a
        signal handler.  In fact, you can't do much of anything except
        change variables of type `volatile sig_atomic_t'.  So we set an
        interrupt flag in the signal handler and check it at various
        strategic locations in the code (by calling checkInterrupt()).
        Since this is unlikely to cover all cases (e.g., (semi-)infinite
        loops), sometimes SIGTERM may now be required to kill Nix.
      447089a5
Loading