2020-04-22 17:05:18 +00:00
|
|
|
{ config, lib, stdenvNoCC, callPackage, mkShell,
|
|
|
|
status-go, mergeSh, xcodeWrapper }:
|
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
|
|
|
|
2020-04-22 17:05:18 +00:00
|
|
|
projectNodePackage = callPackage ./node-package.nix { };
|
|
|
|
|
|
|
|
localMavenRepoBuilder = callPackage ../tools/maven/maven-repo-builder.nix { };
|
|
|
|
|
2019-11-29 10:20:08 +00:00
|
|
|
fastlane = callPackage ./fastlane { };
|
2020-04-22 17:05:18 +00:00
|
|
|
|
|
|
|
android = callPackage ./android {
|
2019-11-29 10:20:08 +00:00
|
|
|
inherit localMavenRepoBuilder projectNodePackage;
|
|
|
|
status-go = status-go.android;
|
|
|
|
};
|
2020-04-22 17:05:18 +00:00
|
|
|
|
|
|
|
ios = callPackage ./ios {
|
2019-11-29 10:20:08 +00:00
|
|
|
inherit xcodeWrapper projectNodePackage fastlane;
|
|
|
|
status-go = status-go.ios;
|
|
|
|
};
|
2020-04-22 17:05:18 +00:00
|
|
|
|
2019-06-04 16:50:29 +00:00
|
|
|
selectedSources = [
|
2019-11-29 10:20:08 +00:00
|
|
|
status-go.android
|
|
|
|
status-go.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 {
|
|
|
|
buildInputs = unique (catAttrs "buildInputs" selectedSources);
|
2019-11-29 10:20:08 +00:00
|
|
|
|
|
|
|
shell = mergeSh (mkShell {}) (catAttrs "shell" selectedSources);
|
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
|
|
|
}
|