mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
examples/hello: Normalize LVGUI consumers
This commit is contained in:
parent
0a397decfe
commit
6616c46b92
@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ runCommandNoCC
|
||||
, lib
|
||||
, mruby
|
||||
}:
|
||||
@ -16,27 +16,23 @@ let
|
||||
];
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "hello-gui.mrb";
|
||||
|
||||
runCommandNoCC "hello-gui.mrb" {
|
||||
src = lib.cleanSource ./.;
|
||||
|
||||
nativeBuildInputs = [
|
||||
mruby
|
||||
];
|
||||
} ''
|
||||
cp -prf $src src
|
||||
cd src
|
||||
|
||||
buildPhase = ''
|
||||
mrbc \
|
||||
-o app.mrb \
|
||||
${libs} \
|
||||
$(find ./windows -type f -name '*.rb' | sort) \
|
||||
main.rb
|
||||
'';
|
||||
mkdir -p $out/libexec/
|
||||
mrbc \
|
||||
-o $out/libexec/app.mrb \
|
||||
${libs} \
|
||||
$(find ./windows -type f -name '*.rb' | sort) \
|
||||
main.rb
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/libexec/
|
||||
mv -v app.mrb $out/libexec/
|
||||
|
||||
mkdir -p $out/share/hello-gui
|
||||
'';
|
||||
}
|
||||
# TODO: add ressources here?
|
||||
mkdir -p $out/share/hello-gui
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user