1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-19 22:11:29 +03:00
mobile-nixos/overlay/mruby-builder/mrbgems/mruby-lvgui/default.nix
2020-07-23 18:09:06 -04:00

36 lines
687 B
Nix

{ mrbgems
, callPackage
, fetchFromGitHub
, pkg-config
, buildPackages
# Configuration
, withSimulator ? false
}:
let
# This is an implementation detail of this gem.
# Even if unusual, let's keep it private.
lvgui = (callPackage ./lvgui.nix {
inherit withSimulator;
});
in
mrbgems.mkGem {
src = fetchFromGitHub {
repo = "mruby-lvgui";
owner = "mobile-nixos";
rev = "73854c219fd975fc1e82ac582381a4a51af2d3c1";
sha256 = "0plvjn8sxgjz6n3546aqkrdqkx32mzsb0d938svpd9l223nihdh8";
};
gemBuildInputs = [
lvgui
] ++ lvgui.buildInputs;
gemNativeBuildInputs = [
buildPackages.pkg-config
];
requiredGems = with mrbgems; [
mruby-fiddle
];
}