mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-10 08:45:58 +00:00
a716f4e435
fixes #18291 ## Summary Changes worth mentioning are : - More hacks/patches - Force app to use `Java 17` everywhere to compile `kotlin,java` - `gems` were upgraded after a long time - `aapt2` was bumped to `8.1.1` - `metro` is now at `0.80.4` - `xcbeautify` was bumped to `1.4.0` - `@react-native-community/clipboard` lib was replaced with `@react-native-clipboard/clipboard` - `react-native-dialogs` lib was upgraded to `1.1.2` - `react-native-gesture-handler` lib was upgraded to `2.14.1` - `react-native-navigation` was upgraded to `7.37.2` ## Platforms - Android - iOS
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
# This file controls the pinned version of nixpkgs we use for our Nix environment
|
|
# as well as which versions of package we use, including their overrides.
|
|
{ config ? { } }:
|
|
|
|
let
|
|
# For testing local version of nixpkgs
|
|
#nixpkgsSrc = (import <nixpkgs> { }).lib.cleanSource "/home/jakubgs/work/nixpkgs";
|
|
|
|
# We follow a fork of nixpkgs where we bump gradle to 8.3 and update build tools
|
|
nixpkgsSrc = builtins.fetchTarball {
|
|
url = "https://github.com/status-im/nixpkgs/archive/44d8b23ebbe40ed16ef1aecef6c5354657c48b19.tar.gz";
|
|
sha256 = "sha256:0s7kjnc8drchzp268yzbv5snc4702hswcns9hrncjq4im8cv6mf9";
|
|
};
|
|
|
|
# Status specific configuration defaults
|
|
defaultConfig = {
|
|
android_sdk.accept_license = true;
|
|
allowUnfree = true;
|
|
};
|
|
|
|
# Override some packages and utilities
|
|
pkgsOverlay = import ./overlay.nix;
|
|
|
|
# Fix for lack of Android SDK for M1 Macs.
|
|
systemOverride = let
|
|
inherit (builtins) currentSystem getEnv;
|
|
envSystemOverride = getEnv "NIXPKGS_SYSTEM_OVERRIDE";
|
|
in
|
|
if envSystemOverride != "" then
|
|
envSystemOverride
|
|
else
|
|
currentSystem;
|
|
in
|
|
# import nixpkgs with a config override
|
|
(import nixpkgsSrc) {
|
|
config = defaultConfig // config;
|
|
system = systemOverride;
|
|
overlays = [ pkgsOverlay ];
|
|
}
|