boot/script-loader: Fix for new mruby.builder
}:
let
- mruby-lvgui-native-fragment = callPackage ./mruby-lvgui-native-fragment {
- inherit withSimulator;
- };
-in
-# We need a reference to this package for the passthru `wrap` helper.
-let loader = mruby.builder {
- pname = "mobile-nixos-script-loader";
- version = "0.2.0";
-
- src = ./.;
-
- # `main.rb` is where the magic happens.
- buildPhase = ''
- makeBin loader main.rb
- '';
-
+ mruby' = mruby.override({
# This script loader handles all "applets" and scripts that will run during
# stage-1.
gems = with mrbgems; [
@@ -53,6 +38,22 @@ let loader = mruby.builder {
# special significance during the build.
mruby-require
];
+ });
+ mruby-lvgui-native-fragment = callPackage ./mruby-lvgui-native-fragment {
+ inherit withSimulator;
+ };
+in
+# We need a reference to this package for the passthru `wrap` helper.
+let loader = mruby'.builder {
+ pname = "mobile-nixos-script-loader";
+ version = "0.2.0";
+
+ src = ./.;
+
+ # `main.rb` is where the magic happens.
+ buildPhase = ''
+ makeBin loader main.rb
+ '';
passthru = {
# Wraps an `mrb` applet into a runner script that uses this loader.
