about summary refs log tree commit diff
path: root/corepkgs
diff options
context:
space:
mode:
Diffstat (limited to 'corepkgs')
-rw-r--r--corepkgs/buildenv.nix4
-rw-r--r--corepkgs/nar.nix5
2 files changed, 5 insertions, 4 deletions
diff --git a/corepkgs/buildenv.nix b/corepkgs/buildenv.nix
index 6e2bee10b1e7..641231dd9ee1 100644
--- a/corepkgs/buildenv.nix
+++ b/corepkgs/buildenv.nix
@@ -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 ];
   
diff --git a/corepkgs/nar.nix b/corepkgs/nar.nix
index 70a4af2f9ddb..5be8be10c166 100644
--- a/corepkgs/nar.nix
+++ b/corepkgs/nar.nix
@@ -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;
 }