From 4bfdd254f9ad8d0f56dff6be6d798a41994d4bf8 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Fri, 1 Jan 2021 18:45:45 -0500 Subject: [PATCH] examples/hello: decribe libraries used --- examples/hello/app/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/examples/hello/app/default.nix b/examples/hello/app/default.nix index 812f87c8..6c30d47b 100644 --- a/examples/hello/app/default.nix +++ b/examples/hello/app/default.nix @@ -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 '';