mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 02:56:07 +00:00
Jakub Sokołowski
42fb40476c
Changes: - Fixed `nix/status-go/desktop` builds - Dropped nimbus wrapper for `status-go` for now - Split `status-go` builds into subfolders: `mobile`, `desktop` - Fixed shells for desktop builds: `linux`,`macos`,`windows` - Added `make status-go-*` targets for building them - Moved source management to `nix/status-go/source.nix` - Moved `nix/status-go/build.nix` into `nix/status-go/mobile` - Moved `nix/desktop/cmake/qtkeychain` to `nix/pkgs/qtkeychain-src` - Moved `nix/desktop/linux/linuxdeployqt` to `nix/pkgs` - Moved `nix/desktop/linux/appimagekit` to `nix/pkgs` - Dropped `nix/tools/mkShell.nix` since it did almost nothing - Dropped `nix/desktop/cmake/snorenotify` since it's broken - Moved setup from `nix/tools/mkShell.nix` to `nix/shells.nix` - Simplified `nix/mobile/ios/status-go-shell.nix` - Simplified `nix/status-go/default.nix` - Updated the `nix/DETAILS.md` and `nix/README.md` - Moved known issues to `nix/KNOWN_ISSUES.md` - Improved output of `nix/scripts/build.sh` Signed-off-by: Jakub Sokołowski <jakub@status.im>
39 lines
892 B
Nix
39 lines
892 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.mobile.android;
|
|
};
|
|
|
|
ios = callPackage ./ios {
|
|
inherit xcodeWrapper projectNodePackage fastlane;
|
|
status-go = status-go.mobile.ios;
|
|
};
|
|
|
|
selectedSources = [
|
|
status-go.mobile.android
|
|
status-go.mobile.ios
|
|
fastlane
|
|
android
|
|
ios
|
|
];
|
|
|
|
in {
|
|
buildInputs = unique (catAttrs "buildInputs" selectedSources);
|
|
|
|
shell = lib.mergeSh (mkShell {}) (catAttrs "shell" selectedSources);
|
|
|
|
# TARGETS
|
|
inherit android ios fastlane;
|
|
}
|