mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 02:56:07 +00:00
Jakub Sokołowski
7b6b620ceb
Changes: - Add `nix/DETAILS.md` for more in-depth info - Rename some of `config.status-im` variables - Drop `env` argument for Android build - Use `overlays` instead of `packageOverrides` - Move the `pkgs` overlay to `nix/overlay.nix` - Move `nix/status-go/utils.nix` to `nix/tools` - Make `shell.nix` use the `shells.default` only - Use `default.nix` as target for `nix/scripts/shell.sh` - Make `nix/scripts/shell.sh` use `--attr` instead of `target` - Drop the `target` argument in favour of using `--attr` - Drop unnecessary `src` from `nix/mobile/ios/default.nix` - Move `mkShell` and `mergeSh` under `lib` - Move `patched-go` package to `nix/pkgs` directory - Move `gomobile` package to `nix/pkgs` directory - Move `ANDROID_ABI_SPLIT` to `config.status-im.android.abi-split` - Move `ANDROID_ABI_INCLUDE to `config.status-im.android.abi-include` Signed-off-by: Jakub Sokołowski <jakub@status.im>
39 lines
864 B
Nix
39 lines
864 B
Nix
{ config, lib, stdenvNoCC, callPackage, mkShell,
|
|
status-go, xcodeWrapper }:
|
|
|
|
let
|
|
inherit (lib) catAttrs concatStrings optional unique;
|
|
|
|
projectNodePackage = callPackage ./node-package.nix { };
|
|
|
|
localMavenRepoBuilder = callPackage ../tools/maven/maven-repo-builder.nix { };
|
|
|
|
fastlane = callPackage ./fastlane { };
|
|
|
|
android = callPackage ./android {
|
|
inherit localMavenRepoBuilder projectNodePackage;
|
|
status-go = status-go.android;
|
|
};
|
|
|
|
ios = callPackage ./ios {
|
|
inherit xcodeWrapper projectNodePackage fastlane;
|
|
status-go = status-go.ios;
|
|
};
|
|
|
|
selectedSources = [
|
|
status-go.android
|
|
status-go.ios
|
|
fastlane
|
|
android
|
|
ios
|
|
];
|
|
|
|
in {
|
|
buildInputs = unique (catAttrs "buildInputs" selectedSources);
|
|
|
|
shell = lib.mergeSh (mkShell {}) (catAttrs "shell" selectedSources);
|
|
|
|
# TARGETS
|
|
inherit android ios fastlane;
|
|
}
|