mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 02:56:07 +00:00
Jakub Sokołowski
d0216674da
This Go package was implemented by me to avoid having to use Mavan or Gradle to resolve all the dependencies for Nix: https://github.com/status-im/go-maven-resolver The Go tool is essentially a slightly smarter and more efficient version of the `get_urls.sh` script, which was mostly slow due to the `mvn dependency:list` calls and slow HTTP requests. This takes down the `make nix-update-gradle` target to under 2 minutes on my machine. Signed-off-by: Jakub Sokołowski <jakub@status.im>
54 lines
1.8 KiB
Nix
54 lines
1.8 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;
|
|
});
|
|
|
|
# Project dependencies
|
|
deps = {
|
|
clojure = callPackage ./deps/clojure { };
|
|
gradle = callPackage ./deps/gradle { };
|
|
nodejs = callPackage ./deps/nodejs { };
|
|
nodejs-patched = callPackage ./deps/nodejs-patched { };
|
|
react-native = callPackage ./deps/react-native { };
|
|
};
|
|
|
|
# For patching Node.js modules with Gradle repo path
|
|
patchNodeModules = callPackage ./tools/patchNodeModules.nix { };
|
|
|
|
# Package version adjustments
|
|
xcodeWrapper = super.xcodeenv.composeXcodeWrapper { version = "11.4.1"; };
|
|
openjdk = super.pkgs.openjdk8_headless;
|
|
nodejs = super.pkgs.nodejs-12_x;
|
|
|
|
# Android environement
|
|
androidEnvCustom = callPackage ./pkgs/android-sdk { };
|
|
androidPkgs = self.androidEnvCustom.licensedPkgs;
|
|
androidShell = self.androidEnvCustom.shell;
|
|
|
|
# Custom packages
|
|
aapt2 = callPackage ./pkgs/aapt2 { };
|
|
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; };
|
|
patchMavenSources = callPackage ./pkgs/patch-maven-srcs { };
|
|
goMavenResolver = callPackage ./pkgs/go-maven-resolver { };
|
|
}
|