1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-19 05:51:52 +03:00
mobile-nixos/overlay/mruby-builder/overlay.nix

26 lines
788 B
Nix
Raw Normal View History

final: super:
let
# Errr... nothing in the `makeStatic*` stdenv adapters allow detecting
# whether we're doing a static build or not in a sane manner.
# Let's co-opt the `dontDisableStatic` attribute it overrides into a
# derivation, let's say, hello...
static = if final.hello ? dontDisableStatic then final.hello.dontDisableStatic else false;
2020-02-28 07:45:11 +03:00
mrbgems = final.callPackage ./mrbgems {};
in
{
hello-mruby = final.callPackage ./hello-mruby {};
2020-02-28 07:45:11 +03:00
mrbgems = mrbgems // {
mruby-lvgui = final.callPackage ./mrbgems/mruby-lvgui {
mrbgems = mrbgems;
};
};
mruby = (final.callPackage ./mruby {}).overrideAttrs({passthru ? {}, ...}: {
passthru = passthru // {
builder = final.callPackage ./mruby/builder.nix {
inherit static;
};
};
});
}