2020-11-07 20:23:14 +01:00
|
|
|
{
|
2020-05-07 21:45:55 +02:00
|
|
|
name = "posix";
|
2020-11-07 20:23:14 +01:00
|
|
|
machine = { pkgs, ... }: {
|
|
|
|
genode.init.children.posix = with pkgs;
|
|
|
|
let
|
|
|
|
script = writeTextFile {
|
|
|
|
name = "posix.sh";
|
|
|
|
text = ''
|
|
|
|
export PATH=${
|
|
|
|
lib.makeSearchPathOutput "bin" "bin" [ bash hello coreutils ]
|
|
|
|
}
|
|
|
|
set -v
|
|
|
|
time ls -lR /nix
|
|
|
|
sleep 1
|
|
|
|
hello -v
|
|
|
|
sleep 1
|
|
|
|
uname -a
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
configFile = writeText "posix.child.dhall" ''
|
|
|
|
${
|
|
|
|
./posix.dhall
|
|
|
|
} { bash = "${bash}", coreutils = "${coreutils}", script = "${script}" }
|
|
|
|
'';
|
|
|
|
inputs = [ bash hello coreutils ]
|
2020-11-07 19:16:29 +01:00
|
|
|
++ (with genodePackages; [ cached_fs_rom posix vfs vfs_pipe ]);
|
2020-11-07 20:23:14 +01:00
|
|
|
};
|
2020-05-31 11:35:24 +02:00
|
|
|
};
|
2020-05-07 21:45:55 +02:00
|
|
|
}
|