2
0
Fork 0

Add genode-make app

A demonstration of invoking a flake function from within an app.
This commit is contained in:
Emery Hemingway 2020-03-18 18:14:46 +05:30
parent 818014787f
commit ad07de94bf
4 changed files with 24 additions and 0 deletions

View File

@ -193,6 +193,14 @@ nix build .#checks.x86_64-linux-x86_64-genode.nova-solo5-net.xml
nix build .#checks.x86_64-linux-x86_64-genode.nova-solo5-net.sotest
```
# Tips and tricks
## Build a Genode Labs Make target
```shell
nix app genodepkgs#genode-make "test/bomb"
```
# Glossary
Some of terms that follow are necessary for understanding packaging methodology,

View File

@ -43,6 +43,11 @@ let
in dhallApps // {
genode-make = {
type = "app";
program = nixpkgs.buildPackages.callPackage ./genode-make { };
};
linux-image = let
drv = import ./linux-image {
apps = self;

View File

@ -0,0 +1,6 @@
{ writeScriptBin, runtimeShell }:
writeScriptBin "genode-make" ''
#!${runtimeShell}
exec nix build -f ${./make.nix} --argstr target $@
'' + "/bin/genode-make"

View File

@ -0,0 +1,5 @@
{ target }:
let
flake = getFlake "genodepkgs";
pkgs = flake.packages."${builtins.currentSystem}-x86_64-genode";
in pkgs.genodeSources.make target