Make nix-clean also delete `android-gradle-and-npm-modules` derivations

Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
Pedro Pombeiro 2019-09-12 11:20:23 +02:00
parent edf896f2e5
commit a69d820897
No known key found for this signature in database
GPG Key ID: C4A24185B2AA48A1
1 changed files with 3 additions and 0 deletions

View File

@ -80,3 +80,6 @@ toDelete=$(printf '%s\n' "${toDelete[@]}" | sort | uniq)
log "Deleting..."
nix-store --ignore-liveness --delete ${toDelete[@]}
log "Deleting dead Android Gradle and NPM derivations..."
nix-store --gc --print-dead | grep -E 'android-gradle-and-npm-modules(\.drv)?$' | xargs nix-store --delete