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
|
, lib
|
||||||
, mruby
|
, mruby
|
||||||
}:
|
}:
|
||||||
@ -16,27 +16,23 @@ let
|
|||||||
];
|
];
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
runCommandNoCC "hello-gui.mrb" {
|
||||||
name = "hello-gui.mrb";
|
|
||||||
|
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
mruby
|
mruby
|
||||||
];
|
];
|
||||||
|
} ''
|
||||||
|
cp -prf $src src
|
||||||
|
cd src
|
||||||
|
|
||||||
buildPhase = ''
|
mkdir -p $out/libexec/
|
||||||
mrbc \
|
mrbc \
|
||||||
-o app.mrb \
|
-o $out/libexec/app.mrb \
|
||||||
${libs} \
|
${libs} \
|
||||||
$(find ./windows -type f -name '*.rb' | sort) \
|
$(find ./windows -type f -name '*.rb' | sort) \
|
||||||
main.rb
|
main.rb
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
# TODO: add ressources here?
|
||||||
mkdir -p $out/libexec/
|
mkdir -p $out/share/hello-gui
|
||||||
mv -v app.mrb $out/libexec/
|
''
|
||||||
|
|
||||||
mkdir -p $out/share/hello-gui
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user