mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 10:42:53 +00:00
Jakub Sokołowski
1b5f08d680
This repository has been shut down a year ago: * https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/ * https://testfairy.com/blog/jcenter-and-bintray-is-shutting-down-what-to-do/ And yet we still keep references to it in the Gradle config. Resolves: https://github.com/status-im/status-react/issues/13320 Signed-off-by: Jakub Sokołowski <jakub@status.im>
19 lines
858 B
Markdown
19 lines
858 B
Markdown
# Description
|
|
|
|
This Nix derivation takes the result of the [`nix/deps/nodejs/default.nix`](../nodejs/default.nix) derivation and adjusts it for use with Gradle.
|
|
|
|
# Details
|
|
|
|
Modules provided by `yarn2nix` are normally fine, but we use `react-native-*` packages which have their own `gradle.build` files that reference external Maven repositories:
|
|
```js
|
|
repositories {
|
|
google()
|
|
maven { url "https://www.jitpack.io" }
|
|
}
|
|
```
|
|
And these need to be patched and replaced with `mavenLocal()` to make sure Gradle doesn't try to fetch dependencies from remote repos.
|
|
|
|
This derivation symlinks most of the modules found in the `yarn2nix` result and copies the ones that require patching of `gradle.build` files in `patchGradlePhase`.
|
|
|
|
It also applies other fixes like making `BuildId` static in `patchBuildIdPhase` and fixing a Hermes bug in `patchHermesPhase`.
|