2020-05-06 13:33:54 +00:00
|
|
|
{ config, lib, stdenvNoCC, callPackage, mkShell, status-go }:
|
2019-03-25 16:35:01 +00:00
|
|
|
|
|
|
|
let
|
2019-11-29 10:20:08 +00:00
|
|
|
inherit (lib) catAttrs concatStrings optional unique;
|
2019-06-04 16:50:29 +00:00
|
|
|
|
2019-11-29 10:20:08 +00:00
|
|
|
fastlane = callPackage ./fastlane { };
|
2020-04-22 17:05:18 +00:00
|
|
|
|
|
|
|
android = callPackage ./android {
|
2020-04-23 18:19:12 +00:00
|
|
|
status-go = status-go.mobile.android;
|
2019-11-29 10:20:08 +00:00
|
|
|
};
|
2020-04-22 17:05:18 +00:00
|
|
|
|
|
|
|
ios = callPackage ./ios {
|
2020-05-06 13:33:54 +00:00
|
|
|
inherit fastlane;
|
2020-04-23 18:19:12 +00:00
|
|
|
status-go = status-go.mobile.ios;
|
2019-11-29 10:20:08 +00:00
|
|
|
};
|
2020-04-22 17:05:18 +00:00
|
|
|
|
2019-06-04 16:50:29 +00:00
|
|
|
selectedSources = [
|
2020-04-23 18:19:12 +00:00
|
|
|
status-go.mobile.android
|
|
|
|
status-go.mobile.ios
|
2020-04-22 17:05:18 +00:00
|
|
|
fastlane
|
|
|
|
android
|
|
|
|
ios
|
2019-11-29 10:20:08 +00:00
|
|
|
];
|
2019-06-04 16:50:29 +00:00
|
|
|
|
|
|
|
in {
|
2020-05-05 22:48:50 +00:00
|
|
|
shell = mkShell {
|
|
|
|
inputsFrom = (catAttrs "shell" selectedSources);
|
2020-05-06 13:33:54 +00:00
|
|
|
shellHooks = ''
|
|
|
|
# create mobile node/yarn symlinks
|
|
|
|
ln -sf $STATUS_REACT_HOME/mobile/js_files/* $STATUS_REACT_HOME/
|
|
|
|
'';
|
2020-05-05 22:48:50 +00:00
|
|
|
};
|
2019-03-25 16:35:01 +00:00
|
|
|
|
2019-06-04 16:50:29 +00:00
|
|
|
# TARGETS
|
2020-04-22 17:05:18 +00:00
|
|
|
inherit android ios fastlane;
|
2019-06-04 16:50:29 +00:00
|
|
|
}
|