anchor.diff:      RUN_KVM -boot c
       waitForSSHD
   
  -
  -    INFO "verifying that nix-env -i works"
  -
  -    SSH_STDIN_E << EOF
  -
  -      cat >> test.nix << EOF_TEST
  -      let pkgs = import /etc/nixos/nixpkgs/pkgs/top-level/all-packages.nix {};
  -      in pkgs.stdenv.mkDerivation {
  -        name = "test";
  -        phases = "create_out";
  -        create_out = "mkdir -p $out/ok";
  -      }
  -    EOF_TEST
  -
  -      set -x
  -      nix-env -i -f test.nix
  -      [ -e ~/.nix-profile/ok ]
  -    EOF
  +    nixBuildTest
   
       SHUTDOWN_VM
   
  
positive.code: 
    # TODO test both: copyKernels = true and false. true doesn't work ?
  
  in
  
  rec {
  
negative.code:    To prevent this make these paths point to another location:
     nixosTarball = makeTarball "nixos.tar.bz2" (cleanSource ../../..);
     nixpkgsTarball = makeTarball "nixpkgs.tar.bz2" (cleanSource pkgs.path);
  
  */
  
  