busybox-sandbox-shell: fix eval for musl (#361265)

This commit is contained in:
K900
2024-12-03 11:32:54 +03:00
committed by GitHub
@@ -1,12 +1,10 @@
{ lib, stdenv, busybox, musl }:
# Minimal shell for use as basic /bin/sh in sandbox builds
busybox.override {
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
@@ -26,4 +24,6 @@ busybox.override {
CONFIG_ASH_PRINTF y
CONFIG_ASH_TEST y
'';
}
} // lib.optionalAttrs (stdenv.hostPlatform.isGnu && lib.meta.availableOn stdenv.hostPlatform musl) {
useMusl = true;
})