mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-10 08:45:58 +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>
40 lines
1.2 KiB
Nix
40 lines
1.2 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 { }) // (import ./lib {
|
|
inherit (super) lib;
|
|
inherit (self) config;
|
|
});
|
|
|
|
# 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 { };
|
|
qt5custom = callPackage ./pkgs/qt5custom { };
|
|
qtkeychain-src = callPackage ./pkgs/qtkeychain-src { };
|
|
appimagekit = callPackage ./pkgs/appimagekit { };
|
|
linuxdeployqt = callPackage ./pkgs/linuxdeployqt { inherit (self) appimagekit; };
|
|
}
|