1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-18 05:21:47 +03:00
mobile-nixos/boot/gui/default.nix
Samuel Dionne-Riel d617424ded boot/gui: review build with a proper derivation
Then, the simulator is re-tooled to use it, and the new wrapper thingy.
2020-05-31 18:54:07 -04:00

25 lines
308 B
Nix

{ stdenv
, lib
, mruby
}:
stdenv.mkDerivation {
name = "boot-gui.mrb";
src = lib.cleanSource ./.;
nativeBuildInputs = [
mruby
];
buildPhase = ''
mrbc -g -o gui.mrb \
$(find lib -type f -name '*.rb' | sort) \
main.rb
'';
installPhase = ''
mv -v gui.mrb $out
'';
}