2019-06-04 16:50:29 +00:00
|
|
|
{ config, stdenv, pkgs, callPackage, mkShell, fetchurl, fetchFromGitHub, target-os,
|
2019-07-23 20:54:17 +00:00
|
|
|
mkFilter, localMavenRepoBuilder, maven, status-go, composeXcodeWrapper, nodejs, yarn }:
|
2019-03-25 16:35:01 +00:00
|
|
|
|
|
|
|
let
|
2019-06-04 16:50:29 +00:00
|
|
|
inherit (stdenv.lib) catAttrs concatStrings optional unique;
|
|
|
|
|
2019-05-17 08:55:24 +00:00
|
|
|
platform = callPackage ../platform.nix { inherit target-os; };
|
2019-04-11 12:48:53 +00:00
|
|
|
xcodewrapperArgs = {
|
2019-10-11 04:36:49 +00:00
|
|
|
version = "11.1";
|
2019-04-11 12:48:53 +00:00
|
|
|
};
|
2019-05-17 08:55:24 +00:00
|
|
|
xcodeWrapper = composeXcodeWrapper xcodewrapperArgs;
|
2019-07-23 20:54:17 +00:00
|
|
|
androidPlatform = callPackage ./android { inherit config target-os mkShell mkFilter nodejs maven localMavenRepoBuilder projectNodePackage jsbundle; status-go = status-go.android; };
|
2019-06-04 16:50:29 +00:00
|
|
|
iosPlatform = callPackage ./ios { inherit config mkFilter mkShell xcodeWrapper projectNodePackage; status-go = status-go.ios; };
|
|
|
|
fastlane = callPackage ./fastlane { inherit stdenv target-os mkShell; };
|
|
|
|
selectedSources = [
|
|
|
|
fastlane
|
|
|
|
status-go.android
|
|
|
|
status-go.ios
|
|
|
|
] ++
|
|
|
|
optional platform.targetAndroid androidPlatform ++
|
|
|
|
optional platform.targetIOS iosPlatform;
|
|
|
|
|
2019-09-12 12:38:16 +00:00
|
|
|
projectNodePackage = callPackage ./node-package.nix { inherit pkgs nodejs yarn; inherit (stdenv.lib) importJSON; };
|
2019-06-04 16:50:29 +00:00
|
|
|
|
|
|
|
# TARGETS
|
2019-07-23 20:54:17 +00:00
|
|
|
jsbundle = pkgs.callPackage ../targets/jsbundle.nix { inherit stdenv pkgs target-os nodejs localMavenRepoBuilder mkFilter projectNodePackage; };
|
2019-06-04 16:50:29 +00:00
|
|
|
|
|
|
|
in {
|
|
|
|
buildInputs = unique (catAttrs "buildInputs" selectedSources);
|
|
|
|
shellHook = concatStrings (catAttrs "shellHook" 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-07-23 20:54:17 +00:00
|
|
|
inherit jsbundle fastlane;
|
2019-06-04 16:50:29 +00:00
|
|
|
}
|