Remove unnecessary "system" argument

This commit is contained in:
Eelco Dolstra 2012-04-14 18:48:11 +02:00
parent e855c7e2c9
commit ef902274fd
4 changed files with 6 additions and 6 deletions

View file

@ -1,10 +1,10 @@
with import <nix/config.nix>;
{ system, derivations, manifest }:
{ derivations, manifest }:
derivation {
name = "user-environment";
system = system;
system = builtins.currentSystem;
builder = perl;
args = [ "-w" ./buildenv.pl ];

View file

@ -20,11 +20,12 @@ let
in
{ system, storePath, hashAlgo }:
{ storePath, hashAlgo }:
derivation {
name = "nar";
system = builtins.currentSystem;
builder = shell;
args = [ "-e" builder ];
inherit system storePath hashAlgo;
inherit storePath hashAlgo;
}

View file

@ -103,7 +103,7 @@ foreach my $storePath (@storePaths) {
# Construct a Nix expression that creates a Nix archive.
my $nixexpr =
"(import <nix/nar.nix> " .
"{ storePath = builtins.storePath \"$storePath\"; system = \"@system@\"; hashAlgo = \"$hashAlgo\"; }) ";
"{ storePath = builtins.storePath \"$storePath\"; hashAlgo = \"$hashAlgo\"; }) ";
print NIX $nixexpr;
}

View file

@ -118,7 +118,6 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
builder with the manifest as argument. */
Value args, topLevel;
state.mkAttrs(args, 3);
mkString(*state.allocAttr(args, state.sSystem), thisSystem);
mkString(*state.allocAttr(args, state.symbols.create("manifest")),
manifestFile, singleton<PathSet>(manifestFile));
args.attrs->push_back(Attr(state.symbols.create("derivations"), &manifest));