25 lines
541 B
Nix
25 lines
541 B
Nix
|
{
|
||
|
name = "bash";
|
||
|
machine = { pkgs, ... }: {
|
||
|
genode.init.children.bash = {
|
||
|
configFile = pkgs.writeText "bash.child.dhall" ''
|
||
|
${
|
||
|
./bash.dhall
|
||
|
} { bash = "${pkgs.genodePackages.bash}", coreutils = "${pkgs.coreutils}" }
|
||
|
'';
|
||
|
inputs = with pkgs.genodePackages; [
|
||
|
bash
|
||
|
cached_fs_rom
|
||
|
libc
|
||
|
posix
|
||
|
vfs
|
||
|
vfs_pipe
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
testScript = ''
|
||
|
start_all()
|
||
|
machine.wait_until_serial_output('child "bash" exited with exit value 0')
|
||
|
'';
|
||
|
}
|