mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-12 17:54:32 +00:00
nix: Use a more standard name the patched Gradle and NPM package
This commit is contained in:
parent
8c7323e126
commit
061939189b
@ -75,9 +75,7 @@ if [[ -n "${nixResultPath}" ]]; then
|
||||
toDelete=$(findByResult "${nixResultPath}")
|
||||
else
|
||||
# use regular expression that should match all status-react build artifacts
|
||||
toDelete=$(findByRegex '.*-status-react-(shell|source|build).*')
|
||||
# add Android Gradle and NPM derivations
|
||||
toDelete+=$(findByRegex 'android-gradle-and-npm-modules(\.drv)?$')
|
||||
toDelete=$(findByRegex '.*-status-react-(shell|source|build|patched-npm-gradle-modules).*')
|
||||
fi
|
||||
|
||||
# remove duplicates and return
|
||||
|
@ -28,7 +28,7 @@ let
|
||||
reactNativeDepsDir = "$NIX_BUILD_TOP/deps"; # Use local writable deps, otherwise (probably due to some interaction between Nix sandboxing and Java) gradle will fail copying directly from the nix store
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "patched-android-gradle-and-npm-modules";
|
||||
name = "status-react-patched-npm-gradle-modules";
|
||||
src =
|
||||
let path = ./../../../..; # Import the root /android and /mobile/js_files folders clean of any build artifacts
|
||||
in builtins.path { # We use builtins.path so that we can name the resulting derivation, otherwise the name would be taken from the checkout directory, which is outside of our control
|
||||
|
Loading…
x
Reference in New Issue
Block a user