Skip to content

Commit

Permalink
busybox-sandbox-shell: replace pkgsStatic with useMusl (#314845)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther authored Dec 2, 2024
2 parents 1af9e10 + 11472f0 commit 61237cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 4 additions & 1 deletion pkgs/os-specific/linux/busybox/sandbox-shell.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{ busybox}:
{ lib, stdenv, busybox, musl }:

# Minimal shell for use as basic /bin/sh in sandbox builds
busybox.override {
enableStatic = true;
enableMinimal = true;

useMusl = stdenv.hostPlatform.isGnu && lib.meta.availableOn stdenv.hostPlatform musl;

extraConfig = ''
CONFIG_FEATURE_FANCY_ECHO y
CONFIG_FEATURE_SH_MATH y
Expand Down
7 changes: 1 addition & 6 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12329,12 +12329,7 @@ with pkgs;
overrideCC stdenv buildPackages.llvmPackages.clangNoLibcxx
else stdenv;
};
busybox-sandbox-shell = callPackage ../os-specific/linux/busybox/sandbox-shell.nix {
# musl roadmap has RISC-V support projected for 1.1.20
busybox = if !stdenv.hostPlatform.isRiscV && !stdenv.hostPlatform.isLoongArch64 && stdenv.hostPlatform.libc != "bionic"
then pkgsStatic.busybox
else busybox;
};
busybox-sandbox-shell = callPackage ../os-specific/linux/busybox/sandbox-shell.nix { };

cm-rgb = python3Packages.callPackage ../tools/system/cm-rgb { };

Expand Down

0 comments on commit 61237cf

Please sign in to comment.