Add genode-make app
A demonstration of invoking a flake function from within an app.
This commit is contained in:
parent
818014787f
commit
ad07de94bf
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{ writeScriptBin, runtimeShell }:
|
||||
|
||||
writeScriptBin "genode-make" ''
|
||||
#!${runtimeShell}
|
||||
exec nix build -f ${./make.nix} --argstr target $@
|
||||
'' + "/bin/genode-make"
|
|
@ -0,0 +1,5 @@
|
|||
{ target }:
|
||||
let
|
||||
flake = getFlake "genodepkgs";
|
||||
pkgs = flake.packages."${builtins.currentSystem}-x86_64-genode";
|
||||
in pkgs.genodeSources.make target
|
Loading…
Reference in New Issue