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

29 lines
591 B
Nix

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