mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
examples/hello: decribe libraries used
This commit is contained in:
parent
b50024f29b
commit
4bfdd254f9
@ -3,6 +3,19 @@
|
||||
, mruby
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (lib) concatMapStringsSep;
|
||||
|
||||
# Select libs we need from the libs folder.
|
||||
libs = concatMapStringsSep " " (name: "${../../../boot/lib}/${name}") [
|
||||
"lvgui/args.rb"
|
||||
"lvgui/fiddlier.rb"
|
||||
"lvgui/lvgl/*.rb"
|
||||
"lvgui/lvgui/*.rb"
|
||||
"lvgui/vtconsole.rb"
|
||||
];
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "hello-gui.mrb";
|
||||
|
||||
@ -15,6 +28,7 @@ stdenv.mkDerivation {
|
||||
buildPhase = ''
|
||||
mrbc \
|
||||
-o app.mrb \
|
||||
${libs} \
|
||||
$(find ./windows -type f -name '*.rb' | sort) \
|
||||
main.rb
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user