1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 05:21:47 +03:00
mobile-nixos/examples/hello/app/default.nix
2020-07-25 21:56:50 -04:00

28 lines
386 B
Nix

{ stdenv
, lib
, mruby
}:
stdenv.mkDerivation {
name = "hello-gui.mrb";
src = lib.cleanSource ./.;
nativeBuildInputs = [
mruby
];
buildPhase = ''
mrbc -g -o app.mrb \
$(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
'';
}