summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-08-05 17:29:08 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-08-05 17:37:11 +0200
commit2cd7c1f19888ae73bf7ef0f41a45680cfb86334a (patch)
tree1d153e8744e4fb693b78f5a7c1ac445201b610a2 /nixos/tests
parent91e71725d49c185401f459f58062b02bcbf1651e (diff)
downloadnixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar
nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.gz
nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.bz2
nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.lz
nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.xz
nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.tar.zst
nixlib-2cd7c1f19888ae73bf7ef0f41a45680cfb86334a.zip
Unify NixOS and Nixpkgs channel structure
This is primarily to ensure that

  -I nixpkgs=https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz

and

  -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz

and

  -I nixpkgs=https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz

behave consistently.

It also allows installing packages via "nix-env -iA nixos.<pkg>"
rather than "nixos.pkgs.<pkg>". It would be even better to allow
"nixpkgs.<pkg>", but that requires a change to nix-channel.

Fixes #7659.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/containers.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/containers.nix b/nixos/tests/containers.nix
index c429f9c7b715..ce36a7e0588f 100644
--- a/nixos/tests/containers.nix
+++ b/nixos/tests/containers.nix
@@ -46,7 +46,7 @@ import ./make-test.nix ({ pkgs, ...} : {
       $machine->fail("curl --fail --connect-timeout 2 http://$ip/ > /dev/null");
 
       # Make sure we have a NixOS tree (required by ‘nixos-container create’).
-      $machine->succeed("PAGER=cat nix-env -qa -A nixos.pkgs.hello >&2");
+      $machine->succeed("PAGER=cat nix-env -qa -A nixos.hello >&2");
 
       # Create some containers imperatively.
       my $id1 = $machine->succeed("nixos-container create foo --ensure-unique-name");