1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

Merge branch 'fix/busybox-sandbox-shell-attribute' of git://github.com/dtzWill/nix

This commit is contained in:
Shea Levy 2018-02-06 14:01:22 -05:00
commit 694b6d229b
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27

View file

@ -1,7 +1,9 @@
{ pkgs }: { pkgs }:
rec { rec {
sh = pkgs.busybox.override { # Use "busybox-sandbox-shell" if present,
# if not (legacy) fallback and hope it's sufficient.
sh = pkgs.busybox-sandbox-shell or (pkgs.busybox.override {
useMusl = true; useMusl = true;
enableStatic = true; enableStatic = true;
enableMinimal = true; enableMinimal = true;
@ -11,7 +13,7 @@ rec {
CONFIG_ASH_TEST y CONFIG_ASH_TEST y
CONFIG_ASH_OPTIMIZE_FOR_SIZE y CONFIG_ASH_OPTIMIZE_FOR_SIZE y
''; '';
}; });
configureFlags = configureFlags =
[ "--disable-init-state" [ "--disable-init-state"