https://github.com/blitz/hello
The Genode Goa Hello World Example
https://github.com/blitz/hello
genode nix
Last synced: about 1 year ago
JSON representation
The Genode Goa Hello World Example
- Host: GitHub
- URL: https://github.com/blitz/hello
- Owner: blitz
- Created: 2019-12-13T20:11:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-13T20:48:04.000Z (over 6 years ago)
- Last Synced: 2025-02-16T20:44:25.408Z (over 1 year ago)
- Topics: genode, nix
- Language: Nix
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Genode Hello World with Goa
I'm tired of manually installing dependencies on all my machines and
keeping them up to date. This is what tooling is for.
This repository serves as an example for fetching Genode dependencies via Nix.
The actual packaging happens in my [genode-nix
repo](https://github.com/blitz/genode-nix). Check out `shell.nix` in
this repo as well.
**Note:** There are probably still some impurities in Goa's
dependencies. If you find that it cannot find some dependency, open
an issue on in [genode-nix](https://github.com/blitz/genode-nix).
## Building with nix-shell
Install [Nix](https://nixos.org/nix/).
```sh
~/src/hello % nix-shell
nix-shell:~/src/hello]$ goa run
download nfeske/api/base/2019-11-23.tar.xz
download nfeske/api/base/2019-11-23.tar.xz.sig
[...]
Genode 19.08-191-g951271a2b2
17592186044415 MiB RAM and 8997 caps assigned to init
[init -> hello] Hello
```
## Building with Lorri
Install [lorri](https://github.com/target/lorri). Then do nothing to
install dependencies, because they are automatically installed when
you enter the directory. (You may need to do `direnv allow` when asked
to.)
```sh
~/src % cd hello
direnv: loading .envrc
[...]
~/src/hello % goa run
download nfeske/api/base/2019-11-23.tar.xz
download nfeske/api/base/2019-11-23.tar.xz.sig
[...]
Genode 19.08-191-g951271a2b2
17592186044415 MiB RAM and 8997 caps assigned to init
[init -> hello] Hello
```
## Caching
There are pre-compiled binaries in my
[Cachix](https://github.com/cachix/cachix) repo: `cachix use blitz`