examples/hello: decribe libraries used
, 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
'';
