summary refs log tree commit diff
path: root/pkgs/stdenv/nix-linux/boot.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/stdenv/nix-linux/boot.nix')
-rw-r--r--pkgs/stdenv/nix-linux/boot.nix25
1 files changed, 14 insertions, 11 deletions
diff --git a/pkgs/stdenv/nix-linux/boot.nix b/pkgs/stdenv/nix-linux/boot.nix
index c42b3f33302..cc5ab2122e8 100644
--- a/pkgs/stdenv/nix-linux/boot.nix
+++ b/pkgs/stdenv/nix-linux/boot.nix
@@ -1,13 +1,16 @@
-{system, glibc}: (import ../generic) {
-  name = "stdenv-linux-boot";
-  system = system;
-  prehook = ./prehook-boot.sh;
-  posthook = ./posthook.sh;
+{stdenv, glibc}:
+
+(import ../generic) {
+  name = "stdenv-nix-linux-boot";
+  preHook = ./prehook-boot.sh;
   initialPath = "/usr/local /usr /";
-  param1 = "";
-  param2 = "";
-  param3 = "";
-  param4 = glibc;
-  param5 = "";
-  noSysDirs = true;
+
+  inherit stdenv;
+
+  gcc = (import ../../build-support/gcc-wrapper) {
+    name = "gcc-native";
+    isNative = true;
+    nativePrefix = "/usr";
+    inherit stdenv glibc;
+  };
 }