2017-05-15 15:30:33 +00:00
|
|
|
{ pkgs }:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
sh = pkgs.busybox.override {
|
|
|
|
useMusl = true;
|
|
|
|
enableStatic = true;
|
|
|
|
enableMinimal = true;
|
|
|
|
extraConfig = ''
|
|
|
|
CONFIG_ASH y
|
2017-10-07 12:43:55 +00:00
|
|
|
CONFIG_ASH_ECHO y
|
|
|
|
CONFIG_ASH_TEST y
|
2017-05-15 15:30:33 +00:00
|
|
|
CONFIG_ASH_OPTIMIZE_FOR_SIZE y
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
[ "--disable-init-state"
|
|
|
|
"--enable-gc"
|
2017-05-30 13:56:15 +00:00
|
|
|
] ++ pkgs.lib.optionals pkgs.stdenv.isLinux [
|
2017-05-15 15:30:33 +00:00
|
|
|
"--with-sandbox-shell=${sh}/bin/busybox"
|
|
|
|
];
|
|
|
|
}
|