2020-01-08 14:41:07 +00:00
|
|
|
{ config, lib, stdenvNoCC, callPackage, status-go,
|
2019-11-29 10:20:08 +00:00
|
|
|
localMavenRepoBuilder, composeXcodeWrapper, mkShell, mergeSh }:
|
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-04-11 12:48:53 +00:00
|
|
|
xcodewrapperArgs = {
|
2020-01-13 22:27:54 +00:00
|
|
|
version = "11.3.1";
|
2019-04-11 12:48:53 +00:00
|
|
|
};
|
2019-05-17 08:55:24 +00:00
|
|
|
xcodeWrapper = composeXcodeWrapper xcodewrapperArgs;
|
2019-11-29 10:20:08 +00:00
|
|
|
fastlane = callPackage ./fastlane { };
|
|
|
|
androidPlatform = callPackage ./android {
|
|
|
|
inherit localMavenRepoBuilder projectNodePackage;
|
|
|
|
status-go = status-go.android;
|
|
|
|
};
|
|
|
|
iosPlatform = callPackage ./ios {
|
|
|
|
inherit xcodeWrapper projectNodePackage fastlane;
|
|
|
|
status-go = status-go.ios;
|
|
|
|
};
|
2019-06-04 16:50:29 +00:00
|
|
|
selectedSources = [
|
2019-11-29 10:20:08 +00:00
|
|
|
fastlane
|
|
|
|
status-go.android
|
|
|
|
status-go.ios
|
2020-01-08 14:41:07 +00:00
|
|
|
androidPlatform
|
2019-11-29 10:20:08 +00:00
|
|
|
iosPlatform
|
|
|
|
];
|
2019-06-04 16:50:29 +00:00
|
|
|
|
2019-11-29 10:20:08 +00:00
|
|
|
projectNodePackage = callPackage ./node-package.nix { inherit (lib) importJSON; };
|
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
|
|
|
# CHILD DERIVATIONS
|
|
|
|
android = androidPlatform;
|
|
|
|
ios = iosPlatform;
|
2019-04-11 12:48:53 +00:00
|
|
|
|
2019-06-04 16:50:29 +00:00
|
|
|
# TARGETS
|
2019-11-29 10:20:08 +00:00
|
|
|
inherit fastlane xcodeWrapper;
|
2019-06-04 16:50:29 +00:00
|
|
|
}
|