* nixos-build-vms/build-vms.nix: drop the "nixos" function argument,

since the path to the NixOS source tree is known.

svn path=/nixos/trunk/; revision=26989
This commit is contained in:
Eelco Dolstra 2011-04-27 13:01:42 +00:00
parent 0f544f1ea8
commit be7a7a5b78
2 changed files with 6 additions and 11 deletions

View File

@ -1,12 +1,11 @@
{ nixos
, nixpkgs
{ nixpkgs
, services ? "/etc/nixos/services"
, system ? builtins.currentSystem
, networkExpr
}:
let nodes = import networkExpr;
in
with import "${nixos}/lib/testing.nix" { inherit nixpkgs services system; };
let nodes = import networkExpr; in
with import ../../../../lib/testing.nix { inherit nixpkgs services system; };
(complete { inherit nodes; testScript = ""; }).driver

View File

@ -48,11 +48,6 @@ shift
# Validate the given options
if [ -z "$NIXOS" ]
then
NIXOS=/etc/nixos/nixos
fi
if [ "$@" = "" ]
then
echo "ERROR: A network expression must be specified!" >&2
@ -63,4 +58,5 @@ fi
# Build a network of VMs
nix-build $NIXOS/modules/installer/tools/nixos-build-vms/build-vms.nix --argstr networkExpr $networkExpr --argstr nixos $NIXOS --argstr nixpkgs $NIXPKGS_ALL $noOutLinkArg $showTraceArg
nix-build ${NIXOS:-/etc/nixos/nixos}/modules/installer/tools/nixos-build-vms/build-vms.nix \
--argstr networkExpr $networkExpr --argstr nixpkgs "${NIXPKGS_ALL:-/etc/nixos/nixpkgs}" $noOutLinkArg $showTraceArg