27 lines
768 B
Nix
27 lines
768 B
Nix
|
{ stdenv, target-os, callPackage, mkShell, makeWrapper,
|
||
|
bundlerEnv, bundler, ruby, curl }:
|
||
|
|
||
|
let
|
||
|
platform = callPackage ../../platform.nix { inherit target-os; };
|
||
|
useFastlanePkg = platform.targetAndroid && !stdenv.isDarwin;
|
||
|
fastlane = callPackage ../../../fastlane {
|
||
|
bundlerEnv = _: bundlerEnv {
|
||
|
name = "fastlane-gems";
|
||
|
gemdir = ../../../fastlane;
|
||
|
};
|
||
|
};
|
||
|
buildInputs = if useFastlanePkg then [ fastlane curl ] else stdenv.lib.optionals platform.targetMobile [ bundler ruby ]; # bundler/ruby used for fastlane on macOS
|
||
|
shellHook = stdenv.lib.optionalString useFastlanePkg fastlane.shellHook;
|
||
|
|
||
|
# TARGETS
|
||
|
shell = mkShell {
|
||
|
inherit buildInputs shellHook;
|
||
|
};
|
||
|
|
||
|
in {
|
||
|
inherit buildInputs shellHook;
|
||
|
|
||
|
# TARGETS
|
||
|
inherit shell;
|
||
|
}
|