mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 05:21:47 +03:00
28 lines
386 B
Nix
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
|
|
'';
|
|
}
|