status-react/nix/mobile/fastlane/default.nix

29 lines
578 B
Nix

{ lib, stdenv, callPackage, mkShell,
bundlerEnv, cocoapods, bundler, ruby, curl }:
let
inherit (lib) optionals optionalString unique;
fastlane = callPackage ../../../fastlane {
bundlerEnv = _:
bundlerEnv {
name = "fastlane-gems";
gemdir = ../../../fastlane;
};
};
inherit (fastlane) shellHook;
buildInputs = [ ruby bundler fastlane curl ]
++ optionals stdenv.isDarwin [ cocoapods ];
in {
# HELPERS
inherit shellHook buildInputs;
# TARGETS
drv = fastlane;
shell = mkShell {
inherit shellHook buildInputs;
};
}