mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
Remove unnecessary "system" argument
This commit is contained in:
parent
e855c7e2c9
commit
ef902274fd
4 changed files with 6 additions and 6 deletions
|
@ -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 ];
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue