Skip to content

busybox in bootstrap-tools doesn't work in WSL #24954

Description

@hsenag

Issue description

Windows Subsystem for Linux doesn't currently support 32-bit binaries:
microsoft/WSL#390

Since x86_64 bootstrap-tools includes the i686 busybox, any build that requires it fails:

https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/linux/bootstrap-files/x86_64.nix#L2

Could it be changed to use an x86_64 specific busybox? With that hacked locally I got a lot further using WSL with nix. I'm happy to produce a patch myself but I'm not sure what the official way to update bootstrap-files is.

Steps to reproduce

Do something that requires bootstrap-tools.

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
    Ubuntu running under WSL (Windows 10 Creators Update):
ganesh@Priory:/mnt/c/msys64/home/ganesh/nixpkgs/general$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:        14.04
Codename:       trusty

  • Nix version: (run nix-env --version)
    nix-env (Nix) 1.11.8
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
    "17.09pre105126.efe12d6658"

Metadata

Metadata

Assignees

No one assigned

    Labels

    6.topic: windowsRunning, or buiding, packages on Windows
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions