summary refs log tree commit diff
path: root/pkgs/stdenv/darwin
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-07-15 13:24:51 +0200
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-07-15 19:54:50 +0200
commit2b692b1d9d1e650fc74d5dcab24d559be2c52dc3 (patch)
tree7a1e7b6249093a90aa8d8f04711cc82781950fdd /pkgs/stdenv/darwin
parent3368e885d8ce16ff7de272114d773a9514760358 (diff)
downloadnixpkgs-2b692b1d9d1e650fc74d5dcab24d559be2c52dc3.tar
nixpkgs-2b692b1d9d1e650fc74d5dcab24d559be2c52dc3.tar.gz
nixpkgs-2b692b1d9d1e650fc74d5dcab24d559be2c52dc3.tar.bz2
nixpkgs-2b692b1d9d1e650fc74d5dcab24d559be2c52dc3.tar.lz
nixpkgs-2b692b1d9d1e650fc74d5dcab24d559be2c52dc3.tar.xz
nixpkgs-2b692b1d9d1e650fc74d5dcab24d559be2c52dc3.tar.zst
nixpkgs-2b692b1d9d1e650fc74d5dcab24d559be2c52dc3.zip
freshBootstrapTools: fix build on darwin
Diffstat (limited to 'pkgs/stdenv/darwin')
-rw-r--r--pkgs/stdenv/darwin/make-bootstrap-tools.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/stdenv/darwin/make-bootstrap-tools.nix b/pkgs/stdenv/darwin/make-bootstrap-tools.nix
index c20684e01a3..94c61e396b6 100644
--- a/pkgs/stdenv/darwin/make-bootstrap-tools.nix
+++ b/pkgs/stdenv/darwin/make-bootstrap-tools.nix
@@ -10,14 +10,13 @@ let cross = if crossSystem != null
     custom-bootstrap = if bootstrapFiles != null
       then { stdenvStages = args:
               let args' = args // { bootstrapFiles = bootstrapFiles; };
-              in (import "${pkgspath}/pkgs/stdenv/darwin" args').stagesDarwin;
+              in (import "${pkgspath}/pkgs/stdenv/darwin" args');
            }
       else {};
 in with import pkgspath ({ inherit localSystem; } // cross // custom-bootstrap);
 
 let
   llvmPackages = llvmPackages_11;
-  storePrefixLen = builtins.stringLength builtins.storeDir;
 in rec {
   coreutils_ = coreutils.override (args: {
     # We want coreutils without ACL support.
@@ -207,8 +206,6 @@ in rec {
     '';
   };
 
-  bootstrapLlvmVersion = llvmPackages.llvm.version;
-
   bootstrapFiles = {
     tools = "${build}/pack";
   };
@@ -313,13 +310,16 @@ in rec {
   };
 
   # The ultimate test: bootstrap a whole stdenv from the tools specified above and get a package set out of it
+  # TODO: uncomment once https://github.com/NixOS/nixpkgs/issues/222717 is resolved
+  /*
   test-pkgs = import test-pkgspath {
     # if the bootstrap tools are for another platform, we should be testing
     # that platform.
     localSystem = if crossSystem != null then crossSystem else localSystem;
 
     stdenvStages = args: let
-        args' = args // { inherit bootstrapLlvmVersion bootstrapFiles; };
-      in (import (test-pkgspath + "/pkgs/stdenv/darwin") args').stagesDarwin;
+        args' = args // { inherit bootstrapFiles; };
+      in (import (test-pkgspath + "/pkgs/stdenv/darwin") args');
   };
+  */
 }