mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-25 16:10:18 +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>
38 lines
1.0 KiB
Nix
38 lines
1.0 KiB
Nix
#
|
|
# Override some packages and utilities in 'pkgs'
|
|
# and make them available globally via callPackage.
|
|
#
|
|
# For more details see:
|
|
# - https://nixos.wiki/wiki/Overlays
|
|
# - https://nixos.org/nixos/nix-pills/callpackage-design-pattern.html
|
|
#
|
|
|
|
self: super:
|
|
|
|
let
|
|
inherit (super) stdenv stdenvNoCC callPackage;
|
|
in {
|
|
# Fix for MacOS
|
|
mkShell = super.mkShell.override { stdenv = stdenvNoCC; };
|
|
|
|
# Various utilities
|
|
utils = callPackage ./tools/utils.nix { };
|
|
lib = (super.lib or {}) // {
|
|
mkFilter = callPackage ./tools/mkFilter.nix { };
|
|
mergeSh = callPackage ./tools/mergeSh.nix { };
|
|
};
|
|
|
|
# Android environement
|
|
androidEnvCustom = callPackage ./mobile/android/sdk { };
|
|
androidPkgs = self.androidEnvCustom.licensedPkgs;
|
|
androidShell = self.androidEnvCustom.shell;
|
|
|
|
# Package version adjustments
|
|
xcodeWrapper = super.xcodeenv.composeXcodeWrapper { version = "11.4.1"; };
|
|
openjdk = super.pkgs.openjdk8_headless;
|
|
nodejs = super.pkgs.nodejs-12_x;
|
|
|
|
# Custom packages
|
|
gomobile = callPackage ./pkgs/gomobile { };
|
|
}
|