Genode Packages collection https://git.sr.ht/~ehmry/genodepkgs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
681 B

{
name = "hello";
machine = { pkgs, ... }:
let
hello = pkgs.stdenv.mkDerivation {
name = "hello";
dontUnpack = true;
buildPhase = ''
cat > hello.c << EOF
#include <stdio.h>
int main(int argc, char **argv) { printf("hello world!\n"); return 0; }
EOF
$CC hello.c -o hello
'';
installPhase = "install -Dt $out/bin hello";
};
in {
genode.init.children.hello = {
configFile = ./hello.dhall;
inputs = [ hello ];
};
};
testScript = ''
start_all()
machine.wait_until_serial_output("child \"init\" exited with exit value 0")
'';
}