diff options
author | Nick Novitski <nick@expo.io> | 2018-10-11 12:19:42 -0800 |
---|---|---|
committer | Nick Novitski <nick@expo.io> | 2018-10-11 12:19:42 -0800 |
commit | 63ed3c8c5ebbad8f22e49d799bc88fddd74ff41c (patch) | |
tree | b62034d278106baccdbfe3821826a2dd6b181870 /pkgs/tools/admin/fastlane/default.nix | |
parent | c40ba6355e244ffc120eea12b440bed9c96fb6b4 (diff) |
fastlane: disable update check
Diffstat (limited to 'pkgs/tools/admin/fastlane/default.nix')
-rw-r--r-- | pkgs/tools/admin/fastlane/default.nix | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/pkgs/tools/admin/fastlane/default.nix b/pkgs/tools/admin/fastlane/default.nix index b9008c919bf36..8aba7524008b3 100644 --- a/pkgs/tools/admin/fastlane/default.nix +++ b/pkgs/tools/admin/fastlane/default.nix @@ -1,11 +1,27 @@ -{ lib, bundlerEnv, ruby }: +{ stdenv, bundlerEnv, ruby, makeWrapper }: -bundlerEnv rec { - inherit ruby; +stdenv.mkDerivation rec { + name = "${pname}-${version}"; pname = "fastlane"; - gemdir = ./.; + version = (import ./gemset.nix).fastlane.version; - meta = with lib; { + nativeBuildInputs = [ makeWrapper ]; + + env = bundlerEnv { + name = "${name}-gems"; + inherit pname ruby; + gemdir = ./.; + }; + + phases = [ "installPhase" ]; + + installPhase = '' + mkdir -p $out/bin + makeWrapper ${env}/bin/fastlane $out/bin/fastlane \ + --set FASTLANE_SKIP_UPDATE_CHECK 1 + ''; + + meta = with stdenv.lib; { description = "A tool to automate building and releasing iOS and Android apps"; longDescription = "fastlane is a tool for iOS and Android developers to automate tedious tasks like generating screenshots, dealing with provisioning profiles, and releasing your application."; homepage = https://github.com/fastlane/fastlane; |