mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 16:28:05 +00:00
busybox-sandbox-shell: replace pkgsStatic with useMusl
This commit is contained in:
parent
47dc5232ba
commit
11472f0d1b
@ -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
|
||||
|
@ -12328,12 +12328,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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user