Jakub Sokołowski 73a8992db7
nix: refactor loading of node.js modules
Changes:
- Drop `nix/mobile/android/maven-and-npm-deps/default.nix`
- Replace it with much simpler `nix/tools/patchNodeModules`
- Move Gradle patching tool to `nix/pkgs/patch-maven-srcs`
- Simplify it by using `gradle.deps` and patched node modules separately
- Change `TARGET` for `release-android` to `default`
- Move `mobile/reset-node_modules.sh` to `scripts/node_modules.sh`
- Move `nix/mobile/android/targets/release-android.nix` to `nix/mobile/android/release.nix`

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-05-15 16:19:27 +02:00
..
2020-05-14 15:43:06 +03:00

Maven dependencies Nix wrapper

Overview

This folder contains the Nix expression (maven-sources.nix) that downloads all Maven dependencies required for Gradle, as well as the scripts used to generate that file, namely:

  • generate-nix.sh: This is the main entry point script, which will use Gradle to determine the dependencies (into maven-inputs.txt), and nix/tools/maven/maven-inputs2nix.sh to generate default.nix from those dependencies.
  • fetch-maven-deps.sh: This script does the heavy work of determining Gradle dependencies and outputting a maven-inputs.txt file listing the external URLs.
  • reactnative-android-native-deps.nix: Contains the Nix attribute set used to download the React Native dependencies used in React Native Gradle scripts.
  • maven-inputs.txt: A list of Maven dependenciy URLs that can be used by nix/tools/maven/maven-inputs2nix.sh to generate maven-sources.nix.